NewLauncher.st
author tz
Thu, 02 Apr 1998 21:04:45 +0200
changeset 1527 58d10367b84d
parent 1515 293aa84c6b80
child 1531 9cc7272b9162
permissions -rw-r--r--
syntax coloring
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
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
    16
	instanceVariableNames:'transcript isMainLauncher settingsSelection aspects helpIsOn'
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
    17
	classVariableNames:'OpenLaunchers NotifyingEmergencyHandler'
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
    18
	poolDictionaries:''
1469
415d35e62db6 class category changed
tz
parents: 1467
diff changeset
    19
	category:'Interface-Smalltalk'
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
    20
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
    21
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
    22
!NewLauncher class methodsFor:'documentation'!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
    23
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
    24
copyright
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
    25
"
1430
c3a8341ecd43 copyright changed
tz
parents: 1429
diff changeset
    26
 COPYRIGHT (c) 1997 by eXept Software AG
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
    27
              All Rights Reserved
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
    28
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
    29
 This software is furnished under a license and may be used
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
    30
 only in accordance with the terms of that license and with the
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
    31
 inclusion of the above copyright notice. This software may not
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
    32
 be provided or otherwise made available to, or used by, any
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
    33
 other person. No title to or ownership of the software is
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
    34
 hereby transferred.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
    35
"
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
documentation
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
    41
"
1411
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
    42
    The future launcher.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
    43
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
    44
    [start with:]
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
    45
        NewLauncher open
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
    46
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
    47
    [see also:]
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
    48
        Launcher
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
    49
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
    50
    [author:]
1453
6abe92727df3 info bars redesigned
tz
parents: 1449
diff changeset
    51
        Thomas Zwick, eXept Software AG
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
    52
"
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
    53
! !
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
    54
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
    55
!NewLauncher class methodsFor:'accessing'!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
    56
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
    57
current
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
    58
    "return the launcher running on the current screen.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
    59
     (for access via addMenu/ removeMenu)"
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
    60
1434
8746ba3896d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1433
diff changeset
    61
    OpenLaunchers notNil ifTrue:[
8746ba3896d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1433
diff changeset
    62
        OpenLaunchers do:[:aLauncher |
8746ba3896d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1433
diff changeset
    63
            aLauncher window graphicsDevice == Screen current ifTrue:[
8746ba3896d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1433
diff changeset
    64
                ^ aLauncher
8746ba3896d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1433
diff changeset
    65
            ]
8746ba3896d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1433
diff changeset
    66
        ].
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
    67
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
    68
    ^ nil
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
    69
1434
8746ba3896d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1433
diff changeset
    70
    "Modified: / 29.1.1998 / 22:08:12 / cg"
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
    71
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
    72
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
    73
label
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
    74
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
    75
    ^'Launcher'
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
    76
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
    77
1434
8746ba3896d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1433
diff changeset
    78
!
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
openLaunchers
8746ba3896d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1433
diff changeset
    81
8746ba3896d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1433
diff changeset
    82
    ^OpenLaunchers ? (OpenLaunchers := OrderedCollection new)
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
    83
! !
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
    84
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
    85
!NewLauncher class methodsFor:'defaults'!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
    86
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
    87
notifyingEmergencyHandler
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
    88
    "return a block (used as an emergency handler
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
    89
     for exceptions), which does errorNotification before going
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
    90
     into the debugger."
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
    91
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
    92
    "Remember the handlerBlock, to be able to determine if the current
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
    93
     handler is the notifying one."
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
    94
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
    95
    ^ NotifyingEmergencyHandler ? (NotifyingEmergencyHandler := Exception notifyingEmergencyHandler)
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
    96
! !
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
    97
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
    98
!NewLauncher class methodsFor:'interface specs'!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
    99
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   100
windowSpec
1527
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
   101
    "This resource specification was automatically generated
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
   102
     by the UIPainter of ST/X."
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
   103
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
   104
    "Do not manually edit this!! If it is corrupted,
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
   105
     the UIPainter may not be able to read the specification."
1406
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
1527
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
   110
     NewLauncher open
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   111
    "
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
1527
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
   118
          #window: 
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   119
           #(#WindowSpec
1527
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
   120
              #name: 'Launcher'
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
   121
              #layout: #(#LayoutFrame 407 0 353 0 697 0 554 0)
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
   122
              #label: 'Launcher'
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
   123
              #min: #(#Point 374 240)
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
   124
              #max: #(#Point 1152 900)
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
   125
              #bounds: #(#Rectangle 407 353 698 555)
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
   126
              #menu: #menu
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
   127
              #usePreferredExtent: false
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
   128
              #icon: #stxIcon
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   129
          )
1527
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
   130
          #component: 
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   131
           #(#SpecCollection
1527
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
   132
              #collection: 
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   133
               #(
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   134
                 #(#MenuPanelSpec
1527
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
   135
                    #name: 'menuToolbarView'
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
   136
                    #layout: #(#LayoutFrame 0 0.0 0 0 0 1.0 38 0)
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
   137
                    #menu: #menuToolbar
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
   138
                    #style: #(#FontDescription #helvetica #medium #roman 10)
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   139
                )
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   140
                 #(#ArbitraryComponentSpec
1527
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
   141
                    #name: 'transcriptView'
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
   142
                    #layout: #(#LayoutFrame 0 0.0 40 0.0 0 1.0 -26 1.0)
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
   143
                    #hasHorizontalScrollBar: true
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
   144
                    #hasVerticalScrollBar: true
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
   145
                    #miniScrollerHorizontal: true
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
   146
                    #component: #TextCollector
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
   147
                    #hasBorder: false
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   148
                )
1422
bd1798d4454c exit dialog changed + info bar as subSpec to class ToolApplicationModel moved
tz
parents: 1420
diff changeset
   149
                 #(#UISubSpecification
1527
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
   150
                    #name: 'infoBarSubSpec'
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
   151
                    #layout: #(#LayoutFrame 0 0.0 -24 1 0 1.0 0 1.0)
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
   152
                    #majorKey: #ToolApplicationModel
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
   153
                    #minorKey: #windowSpecForInfoBarWithClock
1406
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
1411
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   160
windowSpecForStyleSettings
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   161
    "this window spec was automatically generated by the ST/X UIPainter"
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   162
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   163
    "do not manually edit this - the painter/builder may not be able to
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   164
     handle the specification if its corrupted."
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   165
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   166
    "
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   167
     UIPainter new openOnClass:NewLauncher andSelector:#windowSpecForStyleSettings
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   168
     NewLauncher new openInterface:#windowSpecForStyleSettings
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   169
    "
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   170
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   171
    <resource: #canvas>
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   172
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   173
    ^
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   174
     
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   175
       #(#FullSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   176
          #'window:' 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   177
           #(#WindowSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   178
              #'name:' 'Style Settings'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   179
              #'layout:' #(#LayoutFrame 238 0 252 0 675 0 678 0)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   180
              #'label:' 'Style Settings'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   181
              #'min:' #(#Point 420 220)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   182
              #'max:' #(#Point 1152 900)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   183
              #'bounds:' #(#Rectangle 238 252 676 679)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   184
              #'usePreferredExtent:' false
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   185
          )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   186
          #'component:' 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   187
           #(#SpecCollection
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   188
              #'collection:' 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   189
               #(
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   190
                 #(#NoteBookViewSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   191
                    #'name:' 'noteBookView_Temporal'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   192
                    #'layout:' #(#LayoutFrame 2 0.0 0 0.0 -2 1.0 -47 1.0)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   193
                    #'model:' #selectionOfSettings
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   194
                    #'menu:' 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   195
                     #('Views'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   196
                        'Fonts' 'Language'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   197
                        'Keyboard' 'Misc'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   198
                    )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   199
                    #'backgroundColor:' #(#Color 66.9993 66.9993 66.9993)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   200
                    #'level:' 1
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   201
                    #'canvas:' #settingsCanvas
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   202
                )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   203
                 #(#HorizontalPanelViewSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   204
                    #'name:' 'horizontalPanelView_Temporal'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   205
                    #'layout:' #(#LayoutFrame 1 0.0 -47 1 1 1.0 0 1.0)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   206
                    #'component:' 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   207
                     #(#SpecCollection
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   208
                        #'collection:' 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   209
                         #(
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   210
                           #(#ActionButtonSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   211
                              #'name:' 'helpButton_Temporal'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   212
                              #'label:' 'Help'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   213
                              #'style:' #(#FontDescription #helvetica #bold #roman 12)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   214
                              #'model:' #'doForCurrentSettings:'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   215
                              #'actionValue:' #help
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   216
                              #'extent:' #(#Point 213 24)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   217
                          )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   218
                           #(#ActionButtonSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   219
                              #'name:' 'closeButton_Temporal'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   220
                              #'label:' 'Close'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   221
                              #'style:' #(#FontDescription #helvetica #bold #roman 12)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   222
                              #'model:' #accept
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   223
                              #'extent:' #(#Point 214 24)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   224
                          )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   225
                        )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   226
                    )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   227
                    #'level:' 1
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   228
                    #'horizontalLayout:' #fitSpace
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   229
                    #'verticalLayout:' #center
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   230
                    #'horizontalSpace:' 3
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   231
                    #'verticalSpace:' 3
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   232
                )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   233
              )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   234
          )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   235
      )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   236
!
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   237
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   238
windowSpecForSystemSettings
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   239
    "this window spec was automatically generated by the ST/X UIPainter"
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   240
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   241
    "do not manually edit this - the painter/builder may not be able to
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   242
     handle the specification if its corrupted."
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   243
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   244
    "
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   245
     UIPainter new openOnClass:NewLauncher andSelector:#windowSpecForSystemSettings
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   246
     NewLauncher new openInterface:#windowSpecForSystemSettings
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   247
    "
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   248
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   249
    <resource: #canvas>
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   250
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   251
    ^
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   252
     
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   253
       #(#FullSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   254
          #'window:' 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   255
           #(#WindowSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   256
              #'name:' 'Style Settings'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   257
              #'layout:' #(#LayoutFrame 96 0 317 0 533 0 743 0)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   258
              #'label:' 'Style Settings'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   259
              #'min:' #(#Point 420 220)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   260
              #'max:' #(#Point 1152 900)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   261
              #'bounds:' #(#Rectangle 96 317 534 744)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   262
              #'usePreferredExtent:' false
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   263
          )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   264
          #'component:' 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   265
           #(#SpecCollection
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   266
              #'collection:' 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   267
               #(
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   268
                 #(#NoteBookViewSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   269
                    #'name:' 'noteBookView_Temporal'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   270
                    #'layout:' #(#LayoutFrame 2 0.0 0 0.0 -2 1.0 -47 1.0)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   271
                    #'model:' #selectionOfSettings
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   272
                    #'menu:' 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   273
                     #('Sources'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   274
                        'Messages' 'Memory'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   275
                        'Screen' 'Printer'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   276
                    )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   277
                    #'backgroundColor:' #(#Color 66.9993 66.9993 66.9993)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   278
                    #'level:' 1
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   279
                    #'canvas:' #settingsCanvas
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   280
                )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   281
                 #(#HorizontalPanelViewSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   282
                    #'name:' 'horizontalPanelView_Temporal'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   283
                    #'layout:' #(#LayoutFrame 1 0.0 -47 1 1 1.0 0 1.0)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   284
                    #'component:' 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   285
                     #(#SpecCollection
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   286
                        #'collection:' 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   287
                         #(
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   288
                           #(#ActionButtonSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   289
                              #'name:' 'helpButton_Temporal'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   290
                              #'label:' 'Help'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   291
                              #'style:' #(#FontDescription #helvetica #bold #roman 12)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   292
                              #'model:' #'doForCurrentSettings:'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   293
                              #'actionValue:' #help
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   294
                              #'extent:' #(#Point 213 24)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   295
                          )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   296
                           #(#ActionButtonSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   297
                              #'name:' 'closeButton_Temporal'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   298
                              #'label:' 'Close'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   299
                              #'style:' #(#FontDescription #helvetica #bold #roman 12)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   300
                              #'model:' #accept
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   301
                              #'extent:' #(#Point 214 24)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   302
                          )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   303
                        )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   304
                    )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   305
                    #'level:' 1
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   306
                    #'horizontalLayout:' #fitSpace
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   307
                    #'verticalLayout:' #center
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   308
                    #'horizontalSpace:' 3
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   309
                    #'verticalSpace:' 3
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   310
                )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   311
              )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   312
          )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   313
      )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   314
!
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   315
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   316
windowSpecOfFontsSettings
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   317
    "this window spec was automatically generated by the ST/X UIPainter"
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   318
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   319
    "do not manually edit this - the painter/builder may not be able to
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   320
     handle the specification if its corrupted."
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   321
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   322
    "
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   323
     UIPainter new openOnClass:NewLauncher andSelector:#windowSpecOfFontsSettings
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   324
     NewLauncher new openInterface:#windowSpecOfFontsSettings
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   325
    "
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   326
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   327
    <resource: #canvas>
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   328
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   329
    ^
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   330
     
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   331
       #(#FullSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   332
          #'window:' 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   333
           #(#WindowSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   334
              #'name:' 'Smalltalk/X'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   335
              #'layout:' #(#LayoutFrame 234 0 432 0 671 0 811 0)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   336
              #'label:' 'Smalltalk/X'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   337
              #'min:' #(#Point 420 220)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   338
              #'max:' #(#Point 1152 900)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   339
              #'bounds:' #(#Rectangle 234 432 672 812)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   340
              #'usePreferredExtent:' false
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   341
          )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   342
          #'component:' 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   343
           #(#SpecCollection
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   344
              #'collection:' 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   345
               #(
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   346
                 #(#FramedBoxSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   347
                    #'name:' 'preViewFramedBox_Temporal'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   348
                    #'layout:' #(#LayoutFrame 0 0.0 -80 1 0 1.0 0 1.0)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   349
                    #'component:' 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   350
                     #(#SpecCollection
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   351
                        #'collection:' 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   352
                         #(
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   353
                           #(#LabelSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   354
                              #'name:' 'previewFontLabel_Temporal'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   355
                              #'layout:' #(#LayoutFrame 16 0.0 18 0.0 16 1.0 13 1.0)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   356
                              #'adjust:' #left
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   357
                          )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   358
                        )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   359
                    )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   360
                    #'label:' 'Font Preview'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   361
                    #'labelPosition:' #topLeft
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   362
                )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   363
                 #(#FramedBoxSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   364
                    #'name:' 'fontDescriptionFramedBox_Temporal'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   365
                    #'layout:' #(#LayoutFrame 0 0.5 95 0.0 0 1 -80 1.0)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   366
                    #'component:' 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   367
                     #(#SpecCollection
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   368
                        #'collection:' 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   369
                         #(
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   370
                           #(#LabelSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   371
                              #'name:' 'fontFamilyLabel_Temporal'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   372
                              #'layout:' #(#LayoutFrame 15 0.0 22 0 15 1.0 44 0)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   373
                              #'level:' -1
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   374
                              #'adjust:' #left
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   375
                          )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   376
                           #(#LabelSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   377
                              #'name:' 'fontFaceLabel_Temporal'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   378
                              #'layout:' #(#LayoutFrame 15 0.0 49 0 15 1.0 71 0)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   379
                              #'level:' -1
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   380
                              #'adjust:' #left
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   381
                          )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   382
                           #(#LabelSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   383
                              #'name:' 'fontStyleLabel_Temporal'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   384
                              #'layout:' #(#LayoutFrame 15 0.0 77 0 15 1.0 99 0)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   385
                              #'level:' -1
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   386
                              #'adjust:' #left
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   387
                          )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   388
                           #(#LabelSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   389
                              #'name:' 'fontSizeLabel_Temporal'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   390
                              #'layout:' #(#LayoutFrame 15 0.0 105 0 15 1.0 127 0)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   391
                              #'level:' -1
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   392
                              #'adjust:' #left
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   393
                          )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   394
                           #(#LabelSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   395
                              #'name:' 'fontEncodingLabel_Temporal'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   396
                              #'layout:' #(#LayoutFrame 15 0.0 133 0 15 1.0 155 0)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   397
                              #'level:' -1
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   398
                              #'adjust:' #left
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   399
                          )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   400
                        )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   401
                    )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   402
                    #'label:' 'Font Description'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   403
                    #'labelPosition:' #topLeft
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   404
                )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   405
                 #(#ActionButtonSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   406
                    #'name:' 'changeAllButton_Temporal'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   407
                    #'layout:' #(#LayoutFrame 5 0.5 36 0 -5 1 60 0)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   408
                    #'label:' 'Change for all View Classes...'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   409
                    #'translateLabel:' true
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   410
                    #'model:' #'changeFontFor:'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   411
                    #'actionValue:' 'All'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   412
                )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   413
                 #(#ActionButtonSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   414
                    #'name:' 'defaultButton_Temporal'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   415
                    #'layout:' #(#LayoutFrame 5 0.5 64 0 -5 1 88 0)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   416
                    #'label:' 'Set Default Fonts'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   417
                    #'translateLabel:' true
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   418
                    #'model:' #'changeFontFor:'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   419
                    #'actionValue:' 'Default'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   420
                )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   421
                 #(#ActionButtonSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   422
                    #'name:' 'changeFontButton_Temporal'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   423
                    #'layout:' #(#LayoutFrame 5 0.5 8 0 -5 1.0 32 0)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   424
                    #'label:' 'Change Font...'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   425
                    #'translateLabel:' true
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   426
                    #'model:' #changeFont
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   427
                    #'actionValue:' ''
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   428
                )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   429
                 #(#FramedBoxSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   430
                    #'name:' 'viewClassesFramedBox_Temporal'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   431
                    #'layout:' #(#LayoutFrame 0 0.0 3 0.0 0 0.5 -80 1.0)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   432
                    #'component:' 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   433
                     #(#SpecCollection
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   434
                        #'collection:' 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   435
                         #(
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   436
                           #(#SelectionInTreeViewSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   437
                              #'name:' 'viewClassesListView_Temporal'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   438
                              #'layout:' #(#LayoutFrame 15 0.0 17 0.0 15 1.0 17 1.0)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   439
                              #'model:' #selectionOfViewClass
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   440
                              #'hasHorizontalScrollBar:' true
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   441
                              #'hasVerticalScrollBar:' true
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   442
                              #'miniScrollerHorizontal:' true
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   443
                              #'miniScrollerVertical:' true
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   444
                              #'valueChangeSelector:' #updatePreviewFontLabel
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   445
                              #'hierarchicalList:' #listOfViewClasses
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   446
                          )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   447
                        )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   448
                    )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   449
                    #'label:' 'View Classes'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   450
                    #'labelPosition:' #topLeft
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   451
                )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   452
              )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   453
          )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   454
      )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   455
!
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   456
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   457
windowSpecOfKeyboardSettings
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   458
    "this window spec was automatically generated by the ST/X UIPainter"
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   459
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   460
    "do not manually edit this - the painter/builder may not be able to
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   461
     handle the specification if its corrupted."
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   462
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   463
    "
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   464
     UIPainter new openOnClass:NewLauncher andSelector:#windowSpecOfKeyboardSettings
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   465
     NewLauncher new openInterface:#windowSpecOfKeyboardSettings
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   466
    "
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   467
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   468
    <resource: #canvas>
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   469
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   470
    ^
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   471
     
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   472
       #(#FullSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   473
          #'window:' 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   474
           #(#WindowSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   475
              #'name:' 'Smalltalk/X'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   476
              #'layout:' #(#LayoutFrame 71 0 497 0 508 0 894 0)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   477
              #'label:' 'Smalltalk/X'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   478
              #'min:' #(#Point 420 220)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   479
              #'max:' #(#Point 1152 900)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   480
              #'bounds:' #(#Rectangle 71 497 509 895)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   481
              #'usePreferredExtent:' false
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   482
          )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   483
          #'component:' 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   484
           #(#SpecCollection
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   485
              #'collection:' 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   486
               #(
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   487
                 #(#SequenceViewSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   488
                    #'name:' 'rawKeysListView_Temporal'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   489
                    #'layout:' #(#LayoutFrame 0 0.0 0 0.0 0 0.5 0 0.6)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   490
                    #'model:' #listOfRawKeys
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   491
                    #'hasHorizontalScrollBar:' true
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   492
                    #'hasVerticalScrollBar:' true
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   493
                    #'miniScrollerHorizontal:' true
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   494
                    #'useIndex:' false
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   495
                )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   496
                 #(#SequenceViewSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   497
                    #'name:' 'functionsListView_Temporal'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   498
                    #'layout:' #(#LayoutFrame 0 0.5 0 0.0 0 1.0 0 0.6)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   499
                    #'model:' #listOfFunctions
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   500
                    #'hasHorizontalScrollBar:' true
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   501
                    #'hasVerticalScrollBar:' true
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   502
                    #'miniScrollerHorizontal:' true
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   503
                    #'useIndex:' false
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   504
                )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   505
                 #(#TextEditorSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   506
                    #'name:' 'keyMacroTextEditor_Temporal'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   507
                    #'layout:' #(#LayoutFrame 0 0.0 0 0.6 0 1.0 0 1.0)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   508
                    #'model:' #keyMacroText
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   509
                    #'hasHorizontalScrollBar:' true
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   510
                    #'hasVerticalScrollBar:' true
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   511
                    #'miniScrollerHorizontal:' true
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   512
                    #'isReadOnly:' true
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   513
                )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   514
              )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   515
          )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   516
      )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   517
!
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   518
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   519
windowSpecOfLanguageSettings
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   520
    "this window spec was automatically generated by the ST/X UIPainter"
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   521
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   522
    "do not manually edit this - the painter/builder may not be able to
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   523
     handle the specification if its corrupted."
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   524
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   525
    "
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   526
     UIPainter new openOnClass:NewLauncher andSelector:#windowSpecOfLanguageSettings
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   527
     NewLauncher new openInterface:#windowSpecOfLanguageSettings
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   528
    "
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   529
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   530
    <resource: #canvas>
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   531
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   532
    ^
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   533
     
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   534
       #(#FullSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   535
          #'window:' 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   536
           #(#WindowSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   537
              #'name:' 'Smalltalk/X'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   538
              #'layout:' #(#LayoutFrame 255 0 459 0 692 0 838 0)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   539
              #'label:' 'Smalltalk/X'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   540
              #'min:' #(#Point 420 220)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   541
              #'max:' #(#Point 1152 900)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   542
              #'bounds:' #(#Rectangle 255 459 693 839)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   543
              #'usePreferredExtent:' false
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   544
          )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   545
          #'component:' 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   546
           #(#SpecCollection
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   547
              #'collection:' 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   548
               #(
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   549
                 #(#SequenceViewSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   550
                    #'name:' 'languagesListView_Temporal'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   551
                    #'layout:' #(#LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   552
                    #'model:' #selectionOfLanguage
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   553
                    #'hasHorizontalScrollBar:' true
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   554
                    #'hasVerticalScrollBar:' true
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   555
                    #'miniScrollerHorizontal:' true
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   556
                    #'useIndex:' false
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   557
                    #'sequenceList:' #listOfLanguages
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
      )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   562
!
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   563
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   564
windowSpecOfMemorySettings
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   565
    "this window spec was automatically generated by the ST/X UIPainter"
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   566
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   567
    "do not manually edit this - the painter/builder may not be able to
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   568
     handle the specification if its corrupted."
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   569
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   570
    "
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   571
     UIPainter new openOnClass:NewLauncher andSelector:#windowSpecOfMiscSettings
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   572
     NewLauncher new openInterface:#windowSpecOfMiscSettings
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
    <resource: #canvas>
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   576
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   577
    ^
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   578
     
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   579
       #(#FullSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   580
          #'window:' 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   581
           #(#WindowSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   582
              #'name:' 'Smalltalk/X'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   583
              #'layout:' #(#LayoutFrame 9 0 394 0 446 0 773 0)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   584
              #'label:' 'Smalltalk/X'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   585
              #'min:' #(#Point 420 220)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   586
              #'max:' #(#Point 1152 900)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   587
              #'bounds:' #(#Rectangle 9 394 447 774)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   588
              #'usePreferredExtent:' false
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   589
          )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   590
          #'component:' 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   591
           #(#SpecCollection
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   592
              #'collection:' 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   593
               #(
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   594
                 #(#CheckBoxSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   595
                    #'name:' 'checkBox1_Temporal'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   596
                    #'layout:' #(#LayoutFrame 5 0.0 15 0 -5 1.0 37 0)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   597
                    #'model:' #shadowsUnderPopupViews
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   598
                    #'label:' 'Shadows under popup views'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   599
                )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   600
                 #(#CheckBoxSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   601
                    #'name:' 'checkBox2_Temporal'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   602
                    #'layout:' #(#LayoutFrame 5 0.0 43 0 -5 1.0 65 0)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   603
                    #'model:' #boxesReturnsFocus
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   604
                    #'label:' 'Boxes returns focus to previously active view'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   605
                )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   606
                 #(#CheckBoxSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   607
                    #'name:' 'checkBox3_Temporal'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   608
                    #'layout:' #(#LayoutFrame 5 0.0 71 0 -5 1.0 93 0)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   609
                    #'model:' #viewsCatchFocus
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   610
                    #'label:' 'Views catch focus when mapped'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   611
                )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   612
                 #(#CheckBoxSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   613
                    #'name:' 'checkBox4_Temporal'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   614
                    #'layout:' #(#LayoutFrame 5 0.0 99 0 -5 1.0 121 0)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   615
                    #'model:' #hostnameInWindowLabels
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   616
                    #'label:' 'Hostname in window labels.'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   617
                )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   618
                 #(#CheckBoxSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   619
                    #'name:' 'checkBox5_Temporal'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   620
                    #'layout:' #(#LayoutFrame 5 0.0 127 0 -5 1.0 149 0)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   621
                    #'model:' #showAccelerators
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   622
                    #'label:' 'Show accelerator keys in menus'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   623
                )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   624
              )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   625
          )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   626
      )
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   627
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   628
1411
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   629
windowSpecOfMessagesSettings
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   630
    "this window spec was automatically generated by the ST/X UIPainter"
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   631
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   632
    "do not manually edit this - the painter/builder may not be able to
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   633
     handle the specification if its corrupted."
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
     UIPainter new openOnClass:NewLauncher andSelector:#windowSpecOfMiscSettings
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   637
     NewLauncher new openInterface:#windowSpecOfMiscSettings
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   638
    "
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   639
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   640
    <resource: #canvas>
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   641
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   642
    ^
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   643
     
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   644
       #(#FullSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   645
          #'window:' 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   646
           #(#WindowSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   647
              #'name:' 'Smalltalk/X'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   648
              #'layout:' #(#LayoutFrame 9 0 394 0 446 0 773 0)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   649
              #'label:' 'Smalltalk/X'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   650
              #'min:' #(#Point 420 220)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   651
              #'max:' #(#Point 1152 900)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   652
              #'bounds:' #(#Rectangle 9 394 447 774)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   653
              #'usePreferredExtent:' false
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   654
          )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   655
          #'component:' 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   656
           #(#SpecCollection
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   657
              #'collection:' 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   658
               #(
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   659
                 #(#CheckBoxSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   660
                    #'name:' 'checkBox1_Temporal'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   661
                    #'layout:' #(#LayoutFrame 5 0.0 15 0 -5 1.0 37 0)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   662
                    #'model:' #shadowsUnderPopupViews
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   663
                    #'label:' 'Shadows under popup views'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   664
                )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   665
                 #(#CheckBoxSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   666
                    #'name:' 'checkBox2_Temporal'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   667
                    #'layout:' #(#LayoutFrame 5 0.0 43 0 -5 1.0 65 0)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   668
                    #'model:' #boxesReturnsFocus
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   669
                    #'label:' 'Boxes returns focus to previously active view'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   670
                )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   671
                 #(#CheckBoxSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   672
                    #'name:' 'checkBox3_Temporal'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   673
                    #'layout:' #(#LayoutFrame 5 0.0 71 0 -5 1.0 93 0)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   674
                    #'model:' #viewsCatchFocus
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   675
                    #'label:' 'Views catch focus when mapped'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   676
                )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   677
                 #(#CheckBoxSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   678
                    #'name:' 'checkBox4_Temporal'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   679
                    #'layout:' #(#LayoutFrame 5 0.0 99 0 -5 1.0 121 0)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   680
                    #'model:' #hostnameInWindowLabels
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   681
                    #'label:' 'Hostname in window labels.'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   682
                )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   683
                 #(#CheckBoxSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   684
                    #'name:' 'checkBox5_Temporal'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   685
                    #'layout:' #(#LayoutFrame 5 0.0 127 0 -5 1.0 149 0)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   686
                    #'model:' #showAccelerators
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   687
                    #'label:' 'Show accelerator keys in menus'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   688
                )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   689
              )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   690
          )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   691
      )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   692
!
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   693
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   694
windowSpecOfMiscSettings
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   695
    "this window spec was automatically generated by the ST/X UIPainter"
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   696
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   697
    "do not manually edit this - the painter/builder may not be able to
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   698
     handle the specification if its corrupted."
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   699
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   700
    "
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   701
     UIPainter new openOnClass:NewLauncher andSelector:#windowSpecOfMiscSettings
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   702
     NewLauncher new openInterface:#windowSpecOfMiscSettings
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   703
    "
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   704
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   705
    <resource: #canvas>
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   706
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   707
    ^
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   708
     
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   709
       #(#FullSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   710
          #'window:' 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   711
           #(#WindowSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   712
              #'name:' 'Smalltalk/X'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   713
              #'layout:' #(#LayoutFrame 9 0 394 0 446 0 773 0)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   714
              #'label:' 'Smalltalk/X'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   715
              #'min:' #(#Point 420 220)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   716
              #'max:' #(#Point 1152 900)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   717
              #'bounds:' #(#Rectangle 9 394 447 774)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   718
              #'usePreferredExtent:' false
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   719
          )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   720
          #'component:' 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   721
           #(#SpecCollection
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   722
              #'collection:' 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   723
               #(
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   724
                 #(#CheckBoxSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   725
                    #'name:' 'checkBox1_Temporal'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   726
                    #'layout:' #(#LayoutFrame 5 0.0 15 0 -5 1.0 37 0)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   727
                    #'model:' #shadowsUnderPopupViews
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   728
                    #'label:' 'Shadows under popup views'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   729
                )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   730
                 #(#CheckBoxSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   731
                    #'name:' 'checkBox2_Temporal'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   732
                    #'layout:' #(#LayoutFrame 5 0.0 43 0 -5 1.0 65 0)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   733
                    #'model:' #boxesReturnsFocus
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   734
                    #'label:' 'Boxes returns focus to previously active view'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   735
                )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   736
                 #(#CheckBoxSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   737
                    #'name:' 'checkBox3_Temporal'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   738
                    #'layout:' #(#LayoutFrame 5 0.0 71 0 -5 1.0 93 0)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   739
                    #'model:' #viewsCatchFocus
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   740
                    #'label:' 'Views catch focus when mapped'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   741
                )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   742
                 #(#CheckBoxSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   743
                    #'name:' 'checkBox4_Temporal'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   744
                    #'layout:' #(#LayoutFrame 5 0.0 99 0 -5 1.0 121 0)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   745
                    #'model:' #hostnameInWindowLabels
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   746
                    #'label:' 'Hostname in window labels.'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   747
                )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   748
                 #(#CheckBoxSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   749
                    #'name:' 'checkBox5_Temporal'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   750
                    #'layout:' #(#LayoutFrame 5 0.0 127 0 -5 1.0 149 0)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   751
                    #'model:' #showAccelerators
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   752
                    #'label:' 'Show accelerator keys in menus'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   753
                )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   754
              )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   755
          )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   756
      )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   757
!
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   758
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   759
windowSpecOfPrinterSettings
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   760
    "this window spec was automatically generated by the ST/X UIPainter"
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   761
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   762
    "do not manually edit this - the painter/builder may not be able to
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   763
     handle the specification if its corrupted."
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   764
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   765
    "
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   766
     UIPainter new openOnClass:NewLauncher andSelector:#windowSpecOfMiscSettings
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   767
     NewLauncher new openInterface:#windowSpecOfMiscSettings
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   768
    "
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   769
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   770
    <resource: #canvas>
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   771
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   772
    ^
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   773
     
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   774
       #(#FullSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   775
          #'window:' 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   776
           #(#WindowSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   777
              #'name:' 'Smalltalk/X'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   778
              #'layout:' #(#LayoutFrame 9 0 394 0 446 0 773 0)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   779
              #'label:' 'Smalltalk/X'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   780
              #'min:' #(#Point 420 220)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   781
              #'max:' #(#Point 1152 900)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   782
              #'bounds:' #(#Rectangle 9 394 447 774)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   783
              #'usePreferredExtent:' false
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   784
          )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   785
          #'component:' 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   786
           #(#SpecCollection
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   787
              #'collection:' 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   788
               #(
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   789
                 #(#CheckBoxSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   790
                    #'name:' 'checkBox1_Temporal'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   791
                    #'layout:' #(#LayoutFrame 5 0.0 15 0 -5 1.0 37 0)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   792
                    #'model:' #shadowsUnderPopupViews
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   793
                    #'label:' 'Shadows under popup views'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   794
                )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   795
                 #(#CheckBoxSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   796
                    #'name:' 'checkBox2_Temporal'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   797
                    #'layout:' #(#LayoutFrame 5 0.0 43 0 -5 1.0 65 0)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   798
                    #'model:' #boxesReturnsFocus
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   799
                    #'label:' 'Boxes returns focus to previously active view'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   800
                )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   801
                 #(#CheckBoxSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   802
                    #'name:' 'checkBox3_Temporal'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   803
                    #'layout:' #(#LayoutFrame 5 0.0 71 0 -5 1.0 93 0)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   804
                    #'model:' #viewsCatchFocus
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   805
                    #'label:' 'Views catch focus when mapped'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   806
                )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   807
                 #(#CheckBoxSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   808
                    #'name:' 'checkBox4_Temporal'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   809
                    #'layout:' #(#LayoutFrame 5 0.0 99 0 -5 1.0 121 0)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   810
                    #'model:' #hostnameInWindowLabels
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   811
                    #'label:' 'Hostname in window labels.'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   812
                )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   813
                 #(#CheckBoxSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   814
                    #'name:' 'checkBox5_Temporal'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   815
                    #'layout:' #(#LayoutFrame 5 0.0 127 0 -5 1.0 149 0)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   816
                    #'model:' #showAccelerators
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   817
                    #'label:' 'Show accelerator keys in menus'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   818
                )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   819
              )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   820
          )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   821
      )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   822
!
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   823
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   824
windowSpecOfScreenSettings
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   825
    "this window spec was automatically generated by the ST/X UIPainter"
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   826
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   827
    "do not manually edit this - the painter/builder may not be able to
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   828
     handle the specification if its corrupted."
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   829
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   830
    "
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   831
     UIPainter new openOnClass:NewLauncher andSelector:#windowSpecOfMiscSettings
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   832
     NewLauncher new openInterface:#windowSpecOfMiscSettings
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   833
    "
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   834
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   835
    <resource: #canvas>
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
       #(#FullSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   840
          #'window:' 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   841
           #(#WindowSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   842
              #'name:' 'Smalltalk/X'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   843
              #'layout:' #(#LayoutFrame 9 0 394 0 446 0 773 0)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   844
              #'label:' 'Smalltalk/X'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   845
              #'min:' #(#Point 420 220)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   846
              #'max:' #(#Point 1152 900)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   847
              #'bounds:' #(#Rectangle 9 394 447 774)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   848
              #'usePreferredExtent:' false
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   849
          )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   850
          #'component:' 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   851
           #(#SpecCollection
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   852
              #'collection:' 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   853
               #(
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   854
                 #(#CheckBoxSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   855
                    #'name:' 'checkBox1_Temporal'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   856
                    #'layout:' #(#LayoutFrame 5 0.0 15 0 -5 1.0 37 0)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   857
                    #'model:' #shadowsUnderPopupViews
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   858
                    #'label:' 'Shadows under popup views'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   859
                )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   860
                 #(#CheckBoxSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   861
                    #'name:' 'checkBox2_Temporal'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   862
                    #'layout:' #(#LayoutFrame 5 0.0 43 0 -5 1.0 65 0)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   863
                    #'model:' #boxesReturnsFocus
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   864
                    #'label:' 'Boxes returns focus to previously active view'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   865
                )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   866
                 #(#CheckBoxSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   867
                    #'name:' 'checkBox3_Temporal'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   868
                    #'layout:' #(#LayoutFrame 5 0.0 71 0 -5 1.0 93 0)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   869
                    #'model:' #viewsCatchFocus
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   870
                    #'label:' 'Views catch focus when mapped'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   871
                )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   872
                 #(#CheckBoxSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   873
                    #'name:' 'checkBox4_Temporal'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   874
                    #'layout:' #(#LayoutFrame 5 0.0 99 0 -5 1.0 121 0)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   875
                    #'model:' #hostnameInWindowLabels
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   876
                    #'label:' 'Hostname in window labels.'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   877
                )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   878
                 #(#CheckBoxSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   879
                    #'name:' 'checkBox5_Temporal'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   880
                    #'layout:' #(#LayoutFrame 5 0.0 127 0 -5 1.0 149 0)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   881
                    #'model:' #showAccelerators
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   882
                    #'label:' 'Show accelerator keys in menus'
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
!
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   888
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   889
windowSpecOfSourcesSettings
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   890
    "this window spec was automatically generated by the ST/X UIPainter"
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   891
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   892
    "do not manually edit this - the painter/builder may not be able to
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   893
     handle the specification if its corrupted."
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   894
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   895
    "
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   896
     UIPainter new openOnClass:NewLauncher andSelector:#windowSpecOfSourcesSettings
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   897
     NewLauncher new openInterface:#windowSpecOfSourcesSettings
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   898
    "
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   899
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   900
    <resource: #canvas>
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   901
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   902
    ^
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   903
     
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   904
       #(#FullSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   905
          #'window:' 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   906
           #(#WindowSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   907
              #'name:' 'Smalltalk/X'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   908
              #'layout:' #(#LayoutFrame 42 0 472 0 479 0 851 0)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   909
              #'label:' 'Smalltalk/X'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   910
              #'min:' #(#Point 420 220)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   911
              #'max:' #(#Point 1152 900)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   912
              #'bounds:' #(#Rectangle 42 472 480 852)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   913
              #'usePreferredExtent:' false
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   914
          )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   915
          #'component:' 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   916
           #(#SpecCollection
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   917
              #'collection:' 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   918
               #(
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   919
                 #(#FramedBoxSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   920
                    #'name:' 'framedBox1_Temporal'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   921
                    #'layout:' #(#LayoutFrame 0 0.0 3 0.0 0 1.0 159 0)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   922
                    #'component:' 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   923
                     #(#SpecCollection
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   924
                        #'collection:' 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   925
                         #(
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   926
                           #(#CheckBoxSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   927
                              #'name:' 'checkBox1_Temporal'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   928
                              #'layout:' #(#LayoutFrame 17 0.0 21 0 7 1.0 43 0)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   929
                              #'model:' #rememberChangedMethods
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   930
                              #'label:' 'Remember changed methods (for previous method in browser)'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   931
                          )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   932
                           #(#CheckBoxSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   933
                              #'name:' 'checkBox2_Temporal'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   934
                              #'layout:' #(#LayoutFrame 17 0.0 49 0 7 1.0 71 0)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   935
                              #'model:' #logCompilesInChangesFile
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   936
                              #'label:' 'Log compiles in changes file'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   937
                          )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   938
                           #(#CheckBoxSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   939
                              #'name:' 'checkBox3_Temporal'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   940
                              #'layout:' #(#LayoutFrame 17 0.0 77 0 7 1.0 99 0)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   941
                              #'model:' #logDoItsInChangesFile
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   942
                              #'label:' 'Log doIts in changes file'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   943
                          )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   944
                           #(#LabelSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   945
                              #'name:' 'label1_Temporal'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   946
                              #'layout:' #(#AlignmentOrigin 230 0 123 0 1 0.5)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   947
                              #'label:' 'Name of changes file:'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   948
                              #'adjust:' #right
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   949
                          )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   950
                           #(#InputFieldSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   951
                              #'name:' 'inputField1_Temporal'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   952
                              #'layout:' #(#LayoutFrame 233 0.0 109 0 13 1.0 131 0)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   953
                              #'model:' #nameOfChangesFile
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   954
                          )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   955
                        )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   956
                    )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   957
                    #'label:' 'Changes Log'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   958
                    #'labelPosition:' #topLeft
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   959
                )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   960
                 #(#FramedBoxSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   961
                    #'name:' 'framedBox2_Temporal'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   962
                    #'layout:' #(#LayoutFrame 0 0.0 159 0 0 1.0 0 1.0)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   963
                    #'component:' 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   964
                     #(#SpecCollection
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   965
                        #'collection:' 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   966
                         #(
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   967
                           #(#CheckBoxSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   968
                              #'name:' 'checkBox4_Temporal'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   969
                              #'layout:' #(#LayoutFrame 17 0.0 26 0 7 1.0 48 0)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   970
                              #'enableChannel:' #hasSourceCodeManager
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   971
                              #'model:' #sourceCodeFromSourceCodeManagement
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   972
                              #'label:' 'Source code from Source Code Management'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   973
                          )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   974
                           #(#LabelSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   975
                              #'name:' 'label3_Temporal'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   976
                              #'layout:' #(#AlignmentOrigin 230 0 95 0 1 0.5)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   977
                              #'label:' 'Directory of source code cache:'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   978
                              #'adjust:' #right
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   979
                          )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   980
                           #(#LabelSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   981
                              #'name:' 'label2_Temporal'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   982
                              #'layout:' #(#AlignmentOrigin 230 0 69 0 1 0.5)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   983
                              #'label:' 'Directory of repository:'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   984
                              #'adjust:' #right
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   985
                          )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   986
                           #(#InputFieldSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   987
                              #'name:' 'inputField2_Temporal'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   988
                              #'layout:' #(#LayoutFrame 233 0 55 0 13 1.0 77 0)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   989
                              #'enableChannel:' #hasSourceCodeManager
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   990
                              #'model:' #directoryOfRepository
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   991
                          )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   992
                           #(#InputFieldSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   993
                              #'name:' 'inputField3_Temporal'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   994
                              #'layout:' #(#LayoutFrame 233 0 81 0 13 1.0 103 0)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   995
                              #'model:' #directoryOfSourceCodeCache
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   996
                          )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   997
                           #(#CheckBoxSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   998
                              #'name:' 'checkBox5_Temporal'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
   999
                              #'layout:' #(#LayoutFrame 17 0.0 120 0 7 1.0 142 0)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1000
                              #'enableChannel:' #hasSourceCodeManager
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1001
                              #'model:' #useLocalSourceCode
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1002
                              #'label:' 'If present, use local source code (suppress checking out)'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1003
                          )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1004
                        )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1005
                    )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1006
                    #'label:' 'Source Code Management'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1007
                    #'labelPosition:' #topLeft
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1008
                )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1009
              )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1010
          )
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
windowSpecOfViewsSettings
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1015
    "this window spec was automatically generated by the ST/X UIPainter"
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1016
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1017
    "do not manually edit this - the painter/builder may not be able to
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1018
     handle the specification if its corrupted."
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1019
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1020
    "
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1021
     UIPainter new openOnClass:NewLauncher andSelector:#windowSpecOfViewsSettings
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1022
     NewLauncher new openInterface:#windowSpecOfViewsSettings
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1023
    "
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1024
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1025
    <resource: #canvas>
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
     
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1029
       #(#FullSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1030
          #'window:' 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1031
           #(#WindowSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1032
              #'name:' 'Smalltalk/X'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1033
              #'layout:' #(#LayoutFrame 68 0 262 0 505 0 641 0)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1034
              #'label:' 'Smalltalk/X'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1035
              #'min:' #(#Point 420 220)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1036
              #'max:' #(#Point 1152 900)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1037
              #'bounds:' #(#Rectangle 68 262 506 642)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1038
              #'usePreferredExtent:' false
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1039
          )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1040
          #'component:' 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1041
           #(#SpecCollection
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1042
              #'collection:' 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1043
               #(
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1044
                 #(#FramedBoxSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1045
                    #'name:' 'styleFramedBox_Temporal'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1046
                    #'layout:' #(#LayoutFrame 0 0.0 0 0.0 0 1.0 -130 1)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1047
                    #'component:' 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1048
                     #(#SpecCollection
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1049
                        #'collection:' 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1050
                         #(
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1051
                           #(#SequenceViewSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1052
                              #'name:' 'viewStylesListView_Temporal'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1053
                              #'layout:' #(#LayoutFrame 17 0.0 19 0.0 17 1.0 19 1.0)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1054
                              #'model:' #listOfViewStyles
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1055
                              #'hasHorizontalScrollBar:' true
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1056
                              #'hasVerticalScrollBar:' true
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1057
                              #'miniScrollerHorizontal:' true
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1058
                              #'useIndex:' true
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1059
                          )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1060
                        )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1061
                    )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1062
                    #'label:' 'Style:'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1063
                    #'labelPosition:' #topLeft
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1064
                )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1065
                 #(#FramedBoxSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1066
                    #'name:' 'descriptionFramedBox_Temporal'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1067
                    #'layout:' #(#LayoutFrame 0 0.0 -130 1 -120 1.0 0 1)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1068
                    #'component:' 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1069
                     #(#SpecCollection
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1070
                        #'collection:' 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1071
                         #(
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1072
                           #(#LabelSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1073
                              #'name:' 'infoLabel_Temporal'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1074
                              #'layout:' #(#LayoutFrame 16 0.0 17 0.0 16 1.0 17 1.0)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1075
                              #'labelChannel:' #infoLabel
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1076
                              #'level:' -1
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1077
                              #'adjust:' #left
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
                    #'label:' 'Description'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1082
                    #'labelPosition:' #topLeft
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1083
                )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1084
                 #(#ViewSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1085
                    #'name:' 'applyButtonView_Temporal'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1086
                    #'layout:' #(#LayoutFrame -120 1 -130 1 0 1.0 0 1.0)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1087
                    #'component:' 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1088
                     #(#SpecCollection
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1089
                        #'collection:' 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1090
                         #(
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1091
                           #(#ActionButtonSpec
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1092
                              #'name:' 'applyButton_Temporal'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1093
                              #'layout:' #(#LayoutFrame -113 1.0 -125 1 -6 1.0 -97 1)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1094
                              #'label:' 'Apply'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1095
                              #'model:' #'doForCurrentSettings:'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1096
                              #'actionValue:' 'apply'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1097
                          )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1098
                        )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1099
                    )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1100
                )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1101
              )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1102
          )
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  1103
      )
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  1104
! !
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  1105
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1106
!NewLauncher class methodsFor:'menu specs'!
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1107
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1108
menu
1515
293aa84c6b80 application builder stuff moved to a separate class
tz
parents: 1497
diff changeset
  1109
    "This resource specification was automatically generated
293aa84c6b80 application builder stuff moved to a separate class
tz
parents: 1497
diff changeset
  1110
     by the MenuEditor of ST/X."
293aa84c6b80 application builder stuff moved to a separate class
tz
parents: 1497
diff changeset
  1111
293aa84c6b80 application builder stuff moved to a separate class
tz
parents: 1497
diff changeset
  1112
    "Do not manually edit this!! If it is corrupted,
293aa84c6b80 application builder stuff moved to a separate class
tz
parents: 1497
diff changeset
  1113
     the MenuEditor may not be able to read the specification."
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1114
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1115
    "
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1116
     MenuEditor new openOnClass:NewLauncher andSelector:#menu
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1117
     (Menu new fromLiteralArrayEncoding:(NewLauncher menu)) startUp
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1118
    "
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1119
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1120
    <resource: #menu>
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1121
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1122
    ^
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1123
     
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1124
       #(#Menu
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1125
          
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1126
           #(
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1127
             #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1128
                #label: 'about'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1129
                #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1130
                #labelImage: #(#ResourceRetriever nil #menuIcon)
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1131
                #submenuChannel: #menuAbout
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1132
            )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1133
             #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1134
                #label: 'File'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1135
                #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1136
                #submenu: 
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1137
                 #(#Menu
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1138
                    
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1139
                     #(
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1140
                       #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1141
                          #label: 'File Browser'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1142
                          #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1143
                          #value: #openApplication:
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1144
                          #argument: 'FileBrowser'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1145
                          #labelImage: #(#ResourceRetriever nil #startFileBrowserIcon 'File Browser')
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1146
                      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1147
                       #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1148
                          #label: '-'
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1149
                      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1150
                       #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1151
                          #label: 'Modules...'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1152
                          #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1153
                          #value: #objectModuleDialog
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1154
                          #enabled: #enableDangerousMenuItemsInRemoteLauncher
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1155
                      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1156
                       #(#MenuItem
1527
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  1157
                          #label: '-'
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  1158
                      )
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  1159
                       #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1160
                          #label: 'Build Library...'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1161
                          #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1162
                          #value: #openApplication:
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1163
                          #argument: 'LibraryBuilder'
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1164
                      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1165
                       #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1166
                          #label: 'Build Application...'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1167
                          #translateLabel: true
1515
293aa84c6b80 application builder stuff moved to a separate class
tz
parents: 1497
diff changeset
  1168
                          #value: #openApplication:
293aa84c6b80 application builder stuff moved to a separate class
tz
parents: 1497
diff changeset
  1169
                          #argument: 'ApplicationBuilder'
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1170
                      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1171
                       #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1172
                          #label: '-'
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1173
                      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1174
                       #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1175
                          #label: 'Save Image'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1176
                          #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1177
                          #value: #saveImage
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1178
                          #enabled: #enableDangerousMenuItemsInRemoteLauncher
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1179
                          #labelImage: #(#ResourceRetriever nil #saveIcon 'Save Image')
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1180
                      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1181
                       #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1182
                          #label: 'Save Image As...'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1183
                          #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1184
                          #value: #saveImageAs
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1185
                          #enabled: #enableDangerousMenuItemsInRemoteLauncher
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1186
                          #labelImage: #(#ResourceRetriever nil #saveIcon 'Save Image As...')
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1187
                      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1188
                       #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1189
                          #label: '-'
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1190
                      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1191
                       #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1192
                          #label: 'Exit...'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1193
                          #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1194
                          #value: #exit
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1195
                          #enabled: #enableDangerousMenuItemsInRemoteLauncher
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1196
                      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1197
                    ) nil
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1198
                    nil
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1199
                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1200
            )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1201
             #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1202
                #label: 'Classes'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1203
                #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1204
                #submenu: 
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1205
                 #(#Menu
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1206
                    
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1207
                     #(
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1208
                       #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1209
                          #label: 'System Browser'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1210
                          #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1211
                          #value: #openApplication:
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1212
                          #argument: 'SystemBrowser'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1213
                          #labelImage: #(#ResourceRetriever nil #startSystemBrowserIcon 'System Browser')
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1214
                      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1215
                       #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1216
                          #label: '-'
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1217
                      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1218
                       #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1219
                          #label: 'Class Browser...'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1220
                          #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1221
                          #value: #startClassBrowser
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1222
                      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1223
                       #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1224
                          #label: 'Full Class Browser...'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1225
                          #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1226
                          #value: #startFullClassBrowser
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1227
                      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1228
                       #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1229
                          #label: 'Class Hierarchy Browser...'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1230
                          #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1231
                          #value: #startClassHierarchyBrowser
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1232
                      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1233
                       #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1234
                          #label: 'Class Tree'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1235
                          #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1236
                          #value: #openApplication:
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1237
                          #argument: 'ClassTreeGraphView'
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1238
                      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1239
                       #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1240
                          #label: '-'
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1241
                      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1242
                       #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1243
                          #label: 'Implementors...'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1244
                          #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1245
                          #value: #browseImplementors
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1246
                      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1247
                       #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1248
                          #label: 'Senders...'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1249
                          #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1250
                          #value: #browseSenders
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1251
                      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1252
                       #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1253
                          #label: '-'
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1254
                      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1255
                       #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1256
                          #label: 'Special'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1257
                          #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1258
                          #value: #special
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1259
                          #submenu: 
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1260
                           #(#Menu
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1261
                              
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1262
                               #(
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1263
                                 #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1264
                                    #label: 'References To Undeclared'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1265
                                    #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1266
                                    #value: #browseUndeclared
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1267
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1268
                                 #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1269
                                    #label: 'Resource Methods...'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1270
                                    #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1271
                                    #value: #browseResources
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1272
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1273
                                 #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1274
                                    #label: 'Show Break/Trace Points'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1275
                                    #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1276
                                    #value: #browseAllBreakAndTracePoints
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1277
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1278
                                 #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1279
                                    #label: '-'
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1280
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1281
                                 #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1282
                                    #label: 'Remove All Break/Trace Points'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1283
                                    #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1284
                                    #value: #removeAllBreakAndTracePoints
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1285
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1286
                              ) nil
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1287
                              nil
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1288
                          )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1289
                      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1290
                    ) nil
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1291
                    nil
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1292
                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1293
            )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1294
             #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1295
                #label: 'Tools'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1296
                #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1297
                #submenu: 
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1298
                 #(#Menu
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1299
                    
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1300
                     #(
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1301
                       #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1302
                          #label: 'Workspace'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1303
                          #value: #openApplication:
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1304
                          #argument: 'Workspace'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1305
                          #labelImage: #(#ResourceRetriever nil #startWorkspaceIcon 'Workspace')
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1306
                      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1307
                       #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1308
                          #label: '-'
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1309
                      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1310
                       #(#MenuItem
1480
9d80831a1df4 *** empty log message ***
tz
parents: 1479
diff changeset
  1311
                          #label: 'GUI Painter'
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1312
                          #value: #openApplication:
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1313
                          #argument: 'UIPainter'
1480
9d80831a1df4 *** empty log message ***
tz
parents: 1479
diff changeset
  1314
                          #labelImage: #(#ResourceRetriever nil #startUIPainterIcon 'GUI Painter')
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1315
                      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1316
                       #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1317
                          #label: 'Menu Editor'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1318
                          #value: #openApplication:
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1319
                          #argument: 'MenuEditor'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1320
                          #labelImage: #(#ResourceRetriever nil #startMenuEditorIcon 'Menu Editor')
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1321
                      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1322
                       #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1323
                          #label: 'Image Editor'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1324
                          #value: #openApplication:
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1325
                          #argument: 'ImageEditor'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1326
                          #labelImage: #(#ResourceRetriever nil #startImageEditorIcon 'Image Editor')
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1327
                      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1328
                       #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1329
                          #label: '-'
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1330
                      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1331
                       #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1332
                          #label: 'Changes Browser'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1333
                          #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1334
                          #value: #openApplication:
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1335
                          #argument: 'ChangesBrowser'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1336
                          #labelImage: #(#ResourceRetriever nil #startChangesBrowserIcon 'Changes Browser')
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1337
                      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1338
                       #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1339
                          #label: '-'
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1340
                      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1341
                       #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1342
                          #label: 'Old Launcher'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1343
                          #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1344
                          #value: #startOldLauncher
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1345
                      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1346
                       #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1347
                          #label: '-'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1348
                      )
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1349
                       #(#MenuItem
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1350
                          #label: 'Monitors'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1351
                          #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1352
                          #submenu: 
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1353
                           #(#Menu
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1354
                              
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1355
                               #(
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1356
                                 #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1357
                                    #label: 'Processes'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1358
                                    #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1359
                                    #value: #openApplication:
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1360
                                    #argument: 'ProcessMonitor'
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1361
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1362
                                 #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1363
                                    #label: 'Semaphores'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1364
                                    #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1365
                                    #value: #openApplication:
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1366
                                    #argument: 'SemaphoreMonitor'
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1367
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1368
                                 #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1369
                                    #label: 'Memory'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1370
                                    #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1371
                                    #value: #openApplication:
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1372
                                    #argument: 'MemoryMonitor'
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1373
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1374
                                 #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1375
                                    #label: 'Irq Latency'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1376
                                    #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1377
                                    #value: #startLatencyMonitor
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1378
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1379
                                 #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1380
                                    #label: 'Event View'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1381
                                    #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1382
                                    #value: #openApplication:
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1383
                                    #argument: 'EventMonitor'
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1384
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1385
                                 #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1386
                                    #label: 'Event Trace'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1387
                                    #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1388
                                    #value: #startStopEventTrace
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1389
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1390
                                 #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1391
                                    #label: '-'
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1392
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1393
                                 #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1394
                                    #label: 'Memory Usage'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1395
                                    #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1396
                                    #value: #openApplication:
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1397
                                    #argument: 'MemoryUsageView'
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1398
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1399
                              ) nil
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1400
                              nil
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1401
                          )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1402
                      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1403
                       #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1404
                          #label: '-'
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1405
                      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1406
                       #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1407
                          #label: 'Views'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1408
                          #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1409
                          #submenu: 
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1410
                           #(#Menu
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1411
                              
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1412
                               #(
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1413
                                 #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1414
                                    #label: 'Iconify All'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1415
                                    #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1416
                                    #value: #iconifyAllWindows
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1417
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1418
                                 #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1419
                                    #label: 'De-iconify All'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1420
                                    #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1421
                                    #value: #deIconifyAllWindows
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1422
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1423
                                 #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1424
                                    #label: '-'
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1425
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1426
                                 #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1427
                                    #label: 'Find And Raise...'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1428
                                    #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1429
                                    #value: #findAndRaiseWindow
1441
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
                                 #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1432
                                    #label: '-'
1441
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
                                 #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1435
                                    #label: 'View Tree (all views)'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1436
                                    #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1437
                                    #value: #openApplication:
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1438
                                    #argument: 'WindowTreeView'
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1439
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1440
                                 #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1441
                                    #label: 'View Tree'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1442
                                    #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1443
                                    #value: #startWindowTreeView
1441
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
                                 #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1446
                                    #label: '-'
1441
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
                                 #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1449
                                    #label: 'Select And Inspect View'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1450
                                    #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1451
                                    #value: #viewInspect
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1452
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1453
                                 #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1454
                                    #label: '-'
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1455
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1456
                                 #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1457
                                    #label: 'Select And Destroy View'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1458
                                    #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1459
                                    #value: #viewDestroy
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1460
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1461
                                 #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1462
                                    #label: 'Find And Destroy...'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1463
                                    #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1464
                                    #value: #findAndDestroyWindow
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1465
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1466
                              ) nil
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1467
                              nil
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1468
                          )
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
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1471
                          #label: '-'
1441
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
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1474
                          #label: 'Hardcopy'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1475
                          #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1476
                          #submenu: 
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1477
                           #(#Menu
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
                               #(
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1480
                                 #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1481
                                    #label: 'Screen'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1482
                                    #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1483
                                    #value: #fullScreenHardcopy
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1484
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1485
                                 #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1486
                                    #label: 'Area'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1487
                                    #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1488
                                    #value: #screenHardcopy
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1489
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1490
                                 #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1491
                                    #label: 'View'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1492
                                    #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1493
                                    #value: #viewHardcopy
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1494
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1495
                              ) nil
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1496
                              nil
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1497
                          )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1498
                      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1499
                       #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1500
                          #label: '-'
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1501
                      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1502
                       #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1503
                          #label: 'Misc'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1504
                          #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1505
                          #submenu: 
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1506
                           #(#Menu
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1507
                              
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1508
                               #(
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1509
                                 #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1510
                                    #label: 'Garbage Collect'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1511
                                    #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1512
                                    #value: #garbageCollect
1441
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
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1515
                                    #label: 'Garbage Collect And Compress'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1516
                                    #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1517
                                    #value: #compressingGarbageCollect
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1518
                                )
1476
ddcfe70b729e added optional reInit-java item
Claus Gittinger <cg@exept.de>
parents: 1475
diff changeset
  1519
                                 #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1520
                                    #label: '-'
1489
7fb50b2351a5 also make last sep-line invisible in tools-misc menu
Claus Gittinger <cg@exept.de>
parents: 1488
diff changeset
  1521
                                    #isVisible: #javaSupportPresent
1476
ddcfe70b729e added optional reInit-java item
Claus Gittinger <cg@exept.de>
parents: 1475
diff changeset
  1522
                                )
ddcfe70b729e added optional reInit-java item
Claus Gittinger <cg@exept.de>
parents: 1475
diff changeset
  1523
                                 #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1524
                                    #label: 'Reinit Java VM'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1525
                                    #isVisible: #javaSupportPresent
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1526
                                    #value: #initJavaVM
1476
ddcfe70b729e added optional reInit-java item
Claus Gittinger <cg@exept.de>
parents: 1475
diff changeset
  1527
                                )
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1528
                              ) nil
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1529
                              nil
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
                    ) nil
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1533
                    nil
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1534
                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1535
            )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1536
             #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1537
                #label: 'Projects'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1538
                #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1539
                #submenu: 
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1540
                 #(#Menu
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
                     #(
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1543
                       #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1544
                          #label: 'New Project'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1545
                          #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1546
                          #value: #newProject
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1547
                      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1548
                       #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1549
                          #label: '-'
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1550
                      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1551
                       #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1552
                          #label: 'Select Project...'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1553
                          #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1554
                          #value: #selectProject
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1555
                      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1556
                    ) nil
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1557
                    nil
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1558
                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1559
            )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1560
             #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1561
                #label: 'Settings'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1562
                #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1563
                #submenuChannel: #menuSettings
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1564
            )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1565
             #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1566
                #label: 'Demos'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1567
                #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1568
                #submenu: 
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1569
                 #(#Menu
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
                     #(
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1572
                       #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1573
                          #label: 'Goodies'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1574
                          #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1575
                          #submenu: 
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1576
                           #(#Menu
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1577
                              
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
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1580
                                    #label: 'Clock'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1581
                                    #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1582
                                    #value: #openDemo:
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1583
                                    #argument: 'Clock'
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1584
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1585
                                 #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1586
                                    #label: 'Digital Clock'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1587
                                    #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1588
                                    #value: #openDemo:
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1589
                                    #argument: 'DigitalClockView'
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1590
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1591
                                 #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1592
                                    #label: 'Calendar'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1593
                                    #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1594
                                    #value: #openDemo:
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1595
                                    #argument: 'Calendar'
1441
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
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1598
                                    #label: 'Calculator'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1599
                                    #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1600
                                    #value: #openDemo:
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1601
                                    #argument: 'CalculatorView'
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1602
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1603
                                 #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1604
                                    #label: '-'
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1605
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1606
                                 #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1607
                                    #label: 'Mail Tool'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1608
                                    #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1609
                                    #value: #openDemo:
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1610
                                    #argument: 'MailView'
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1611
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1612
                                 #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1613
                                    #label: 'News Tool'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1614
                                    #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1615
                                    #value: #openDemo:
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1616
                                    #argument: 'NewsView'
1441
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
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1619
                                    #label: 'FTP Tool'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1620
                                    #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1621
                                    #value: #openDemo:
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1622
                                    #argument: 'FTPTool'
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1623
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1624
                              ) nil
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1625
                              nil
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1626
                          )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1627
                      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1628
                       #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1629
                          #label: 'Games'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1630
                          #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1631
                          #submenu: 
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1632
                           #(#Menu
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1633
                              
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
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1636
                                    #label: 'Tetris'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1637
                                    #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1638
                                    #value: #openDemo:
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1639
                                    #argument: 'Games::Tetris'
1441
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
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1642
                                    #label: 'Tic Tac Toe'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1643
                                    #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1644
                                    #value: #openDemo:
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1645
                                    #argument: 'TicTacToeGame'
1441
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
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1648
                                    #label: 'Tic Tac Toe (2 players)'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1649
                                    #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1650
                                    #value: #startTicTacToe2
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1651
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1652
                              ) nil
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1653
                              nil
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1654
                          )
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
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1657
                          #label: 'Geometric Designs'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1658
                          #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1659
                          #submenu: 
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1660
                           #(#Menu
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1661
                              
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
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1664
                                    #label: 'Pen Demo'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1665
                                    #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1666
                                    #value: #openDemo:
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1667
                                    #argument: 'PenDemo'
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1668
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1669
                                 #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1670
                                    #label: 'Commander Demo'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1671
                                    #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1672
                                    #value: #openDemo:
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1673
                                    #argument: 'CommanderDemo'
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1674
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1675
                                 #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1676
                                    #label: '-'
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1677
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1678
                                 #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1679
                                    #label: 'Fractal Plants Demo'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1680
                                    #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1681
                                    #value: #openDemo:
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1682
                                    #argument: 'FractalPlantsDemo'
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1683
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1684
                                 #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1685
                                    #label: 'Fractal Patterns Demo'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1686
                                    #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1687
                                    #value: #openDemo:
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1688
                                    #argument: 'FractalPatternsDemo'
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1689
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1690
                                 #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1691
                                    #label: 'More Fractal Patterns Demo'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1692
                                    #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1693
                                    #value: #openDemo:
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1694
                                    #argument: 'ArmchairUniverseDemo'
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1695
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1696
                              ) nil
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1697
                              nil
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1698
                          )
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
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1701
                          #label: 'Simple Animations'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1702
                          #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1703
                          #submenu: 
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1704
                           #(#Menu
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1705
                              
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1706
                               #(
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1707
                                 #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1708
                                    #label: 'Walking Man'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1709
                                    #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1710
                                    #value: #openDemo:
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1711
                                    #argument: 'Animation'
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1712
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1713
                                 #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1714
                                    #label: 'Globe Demo'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1715
                                    #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1716
                                    #value: #openDemo:
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1717
                                    #argument: 'GlobeDemo'
1441
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
                              ) nil
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1720
                              nil
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1721
                          )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1722
                      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1723
                       #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1724
                          #label: '3D Graphics'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1725
                          #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1726
                          #submenu: 
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1727
                           #(#Menu
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
                               #(
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1730
                                 #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1731
                                    #label: 'Plane'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1732
                                    #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1733
                                    #value: #openDemo:
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1734
                                    #argument: 'GLPlaneDemoView2'
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1735
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1736
                                 #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1737
                                    #label: 'Tetra'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1738
                                    #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1739
                                    #value: #openDemo:
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1740
                                    #argument: 'GLTetraDemoView'
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1741
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1742
                                 #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1743
                                    #label: 'Cube (wireframe)'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1744
                                    #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1745
                                    #value: #openDemo:
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1746
                                    #argument: 'GLWireCubeDemoView'
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1747
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1748
                                 #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1749
                                    #label: 'Cube (solid)'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1750
                                    #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1751
                                    #value: #openDemo:
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1752
                                    #argument: 'GLCubeDemoView'
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1753
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1754
                                 #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1755
                                    #label: 'Sphere (wireframe)'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1756
                                    #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1757
                                    #value: #openDemo:
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1758
                                    #argument: 'GLWireSphereDemoView'
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1759
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1760
                                 #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1761
                                    #label: 'Doughnut (wireframe)'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1762
                                    #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1763
                                    #value: #openDemo:
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1764
                                    #argument: 'GLDoughnutDemoView'
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1765
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1766
                                 #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1767
                                    #label: 'Planet'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1768
                                    #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1769
                                    #value: #openDemo:
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1770
                                    #argument: 'GLPlanetDemoView'
1441
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
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1773
                                    #label: 'Teapot'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1774
                                    #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1775
                                    #value: #openDemo:
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1776
                                    #argument: 'GLTeapotDemo'
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1777
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1778
                                 #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1779
                                    #label: 'Logo'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1780
                                    #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1781
                                    #value: #openDemo:
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1782
                                    #argument: 'Logo3DView1'
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1783
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1784
                                 #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1785
                                    #label: 'Rubics Cube'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1786
                                    #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1787
                                    #value: #openDemo:
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1788
                                    #argument: 'RubicsCubeView'
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1789
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1790
                                 #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1791
                                    #label: 'X/Y Graph'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1792
                                    #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1793
                                    #value: #openDemo:
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1794
                                    #argument: 'GLXYGraph'
1441
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
                                 #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1797
                                    #label: '-'
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1798
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1799
                                 #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1800
                                    #label: 'Cube (light)'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1801
                                    #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1802
                                    #value: #openDemo:
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1803
                                    #argument: 'GLCubeDemoView2'
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1804
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1805
                                 #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1806
                                    #label: 'Cube (light && texture)'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1807
                                    #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1808
                                    #value: #openDemo:
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1809
                                    #accessCharacterPosition: 13
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1810
                                    #argument: 'GLBrickCubeDemoView'
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1811
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1812
                                 #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1813
                                    #label: 'Sphere (light)'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1814
                                    #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1815
                                    #value: #openDemo:
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1816
                                    #argument: 'GLSphereDemoView2'
1441
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
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1819
                                    #label: 'Colored Octahedron'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1820
                                    #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1821
                                    #value: #openDemo:
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1822
                                    #argument: 'GLOctaHedronDemoView'
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1823
                                )
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
                              nil
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
                      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1828
                       #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1829
                          #label: 'Graphic Editors'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1830
                          #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1831
                          #submenu: 
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1832
                           #(#Menu
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1833
                              
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1834
                               #(
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1835
                                 #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1836
                                    #label: 'Draw Tool'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1837
                                    #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1838
                                    #value: #openDemo:
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1839
                                    #argument: 'DrawTool'
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1840
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1841
                                 #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1842
                                    #label: 'Logic Tool'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1843
                                    #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1844
                                    #value: #openDemo:
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1845
                                    #argument: 'LogicTool'
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1846
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1847
                                 #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1848
                                    #label: 'Paint Demo'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1849
                                    #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1850
                                    #value: #openDemo:
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1851
                                    #argument: 'ColorDrawDemo3'
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1852
                                )
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
                              nil
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
                      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1857
                       #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1858
                          #label: 'GUI'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1859
                          #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1860
                          #submenu: 
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1861
                           #(#Menu
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
                               #(
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1864
                                 #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1865
                                    #label: 'Widget Gallery'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1866
                                    #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1867
                                    #value: #openDemo:
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1868
                                    #argument: 'CodingExamples_GUI::GUIDemo'
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1869
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1870
                                 #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1871
                                    #label: '-'
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1872
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1873
                                 #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1874
                                    #label: 'Calculator'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1875
                                    #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1876
                                    #value: #openDemo:
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1877
                                    #argument: 'CodingExamples_GUI::GUIDemoCalculator'
1441
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
                              ) nil
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1880
                              nil
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1881
                          )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1882
                      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1883
                    ) nil
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1884
                    nil
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1885
                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1886
            )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1887
             #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1888
                #label: 'Help'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1889
                #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1890
                #startGroup: #right
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1891
                #submenu: 
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1892
                 #(#Menu
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1893
                    
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1894
                     #(
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1895
                       #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1896
                          #label: 'What''s New'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1897
                          #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1898
                          #value: #startWhatsNewDocumentation
1441
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
                       #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1901
                          #label: 'Index'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1902
                          #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1903
                          #value: #startDocumentationIndex
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1904
                      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1905
                       #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1906
                          #label: '-'
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1907
                      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1908
                       #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1909
                          #label: 'ST/X Online Documentation'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1910
                          #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1911
                          #value: #startDocumentationTool
1441
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
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1914
                          #label: 'Class Documentation'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1915
                          #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1916
                          #value: #startClassDocumentation
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1917
                      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1918
                       #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1919
                          #label: '-'
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1920
                      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1921
                       #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1922
                          #label: 'Print Documentation...'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1923
                          #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1924
                          #value: #showBookPrintDocument
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1925
                      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1926
                       #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1927
                          #label: '-'
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1928
                      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1929
                       #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1930
                          #label: 'Active Help'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1931
                          #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1932
                          #value: #toggleActiveHelp:
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1933
                          #indication: #activeHelp
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1934
                      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1935
                    ) nil
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1936
                    nil
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1937
                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1938
            )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1939
          ) nil
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1940
          nil
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1941
      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1942
!
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1943
1462
dcd1444dcc27 need licence conditions in menu
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  1944
menuAbout
1527
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  1945
    "This resource specification was automatically generated
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  1946
     by the MenuEditor of ST/X."
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  1947
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  1948
    "Do not manually edit this!! If it is corrupted,
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  1949
     the MenuEditor may not be able to read the specification."
1462
dcd1444dcc27 need licence conditions in menu
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  1950
dcd1444dcc27 need licence conditions in menu
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  1951
    "
dcd1444dcc27 need licence conditions in menu
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  1952
     MenuEditor new openOnClass:NewLauncher andSelector:#menuAbout
dcd1444dcc27 need licence conditions in menu
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  1953
     (Menu new fromLiteralArrayEncoding:(NewLauncher menuAbout)) startUp
dcd1444dcc27 need licence conditions in menu
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  1954
    "
dcd1444dcc27 need licence conditions in menu
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  1955
dcd1444dcc27 need licence conditions in menu
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  1956
    <resource: #menu>
dcd1444dcc27 need licence conditions in menu
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  1957
dcd1444dcc27 need licence conditions in menu
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  1958
    ^
dcd1444dcc27 need licence conditions in menu
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  1959
     
dcd1444dcc27 need licence conditions in menu
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  1960
       #(#Menu
dcd1444dcc27 need licence conditions in menu
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  1961
          
dcd1444dcc27 need licence conditions in menu
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  1962
           #(
dcd1444dcc27 need licence conditions in menu
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  1963
             #(#MenuItem
1527
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  1964
                #label: 'About Smalltalk/X...'
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  1965
                #translateLabel: true
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  1966
                #value: #openAbout
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  1967
                #activeHelpKey: #aboutSTX
1462
dcd1444dcc27 need licence conditions in menu
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  1968
            )
dcd1444dcc27 need licence conditions in menu
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  1969
             #(#MenuItem
1527
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  1970
                #label: 'Licence Conditions'
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  1971
                #translateLabel: true
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  1972
                #value: #openLicenceConditions
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  1973
                #activeHelpKey: #licenceConditions
1462
dcd1444dcc27 need licence conditions in menu
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  1974
            )
dcd1444dcc27 need licence conditions in menu
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  1975
             #(#MenuItem
1527
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  1976
                #label: '-'
1462
dcd1444dcc27 need licence conditions in menu
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  1977
            )
dcd1444dcc27 need licence conditions in menu
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  1978
             #(#MenuItem
1527
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  1979
                #label: 'About This Application...'
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  1980
                #translateLabel: true
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  1981
                #value: #openAboutThisApplication
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  1982
                #activeHelpKey: #aboutThisAppliaction
1462
dcd1444dcc27 need licence conditions in menu
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  1983
            )
dcd1444dcc27 need licence conditions in menu
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  1984
          ) nil
dcd1444dcc27 need licence conditions in menu
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  1985
          nil
dcd1444dcc27 need licence conditions in menu
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  1986
      )
dcd1444dcc27 need licence conditions in menu
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  1987
!
dcd1444dcc27 need licence conditions in menu
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  1988
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1989
menuNewSettings
1527
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  1990
    "This resource specification was automatically generated
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  1991
     by the MenuEditor of ST/X."
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  1992
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  1993
    "Do not manually edit this!! If it is corrupted,
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  1994
     the MenuEditor may not be able to read the specification."
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1995
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1996
    "
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1997
     MenuEditor new openOnClass:NewLauncher andSelector:#menuNewSettings
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1998
     (Menu new fromLiteralArrayEncoding:(NewLauncher menuNewSettings)) startUp
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1999
    "
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2000
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2001
    <resource: #menu>
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2002
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2003
    ^
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2004
     
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2005
       #(#Menu
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2006
          
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
1527
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2009
                #label: 'Style...'
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2010
                #translateLabel: true
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2011
                #value: #openSettingsFor:
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2012
                #argument: 'StyleSettings'
1441
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
1527
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2015
                #label: 'System...'
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2016
                #translateLabel: true
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2017
                #value: #openSettingsFor:
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2018
                #argument: 'SystemSettings'
1441
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
             #(#MenuItem
1527
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2021
                #label: 'Compilation...'
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2022
                #translateLabel: true
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2023
                #value: #openSettingsFor:
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2024
                #argument: 'CompilationSettings'
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2025
                #labelImage: #(#ResourceRetriever nil #'```````````````')
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2026
            )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2027
             #(#MenuItem
1527
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2028
                #label: '-'
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2029
            )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2030
             #(#MenuItem
1527
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2031
                #label: 'Save Settings...'
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2032
                #translateLabel: true
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2033
                #value: #saveSettings
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2034
            )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2035
             #(#MenuItem
1527
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2036
                #label: 'Restore Settings...'
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2037
                #translateLabel: true
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2038
                #value: #restoreSettings
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2039
                #enabled: #enableDangerousMenuItemsInRemoteLauncher
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2040
            )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2041
          ) nil
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2042
          nil
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
!
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2045
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2046
menuSettings
1527
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2047
    "This resource specification was automatically generated
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2048
     by the MenuEditor of ST/X."
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2049
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2050
    "Do not manually edit this!! If it is corrupted,
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2051
     the MenuEditor may not be able to read the specification."
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2052
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2053
    "
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2054
     MenuEditor new openOnClass:NewLauncher andSelector:#menuSettings
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2055
     (Menu new fromLiteralArrayEncoding:(NewLauncher menuSettings)) startUp
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2056
    "
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2057
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2058
    <resource: #menu>
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2059
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2060
    ^
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
       #(#Menu
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2063
          
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2064
           #(
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2065
             #(#MenuItem
1527
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2066
                #label: 'View Style...'
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2067
                #translateLabel: true
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2068
                #value: #viewStyleSetting
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2069
                #enabled: #enableDangerousMenuItemsInRemoteLauncher
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2070
            )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2071
             #(#MenuItem
1527
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2072
                #label: 'Fonts...'
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2073
                #translateLabel: true
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2074
                #value: #fontSettings
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2075
                #enabled: #enableDangerousMenuItemsInRemoteLauncher
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2076
            )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2077
             #(#MenuItem
1527
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2078
                #label: 'Language...'
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2079
                #translateLabel: true
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2080
                #value: #languageSetting
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2081
                #enabled: #enableDangerousMenuItemsInRemoteLauncher
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2082
            )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2083
             #(#MenuItem
1527
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2084
                #label: 'Keyboard Mappings...'
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2085
                #translateLabel: true
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2086
                #value: #keyboardSetting
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2087
            )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2088
             #(#MenuItem
1527
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2089
                #label: '-'
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2090
            )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2091
             #(#MenuItem
1527
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2092
                #label: 'Messages...'
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2093
                #translateLabel: true
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2094
                #value: #messageSettings
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2095
                #enabled: #enableDangerousMenuItemsInRemoteLauncher
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2096
            )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2097
             #(#MenuItem
1527
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2098
                #label: 'Compilation...'
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2099
                #translateLabel: true
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2100
                #value: #compilerSettings
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2101
                #enabled: #enableDangerousMenuItemsInRemoteLauncher
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2102
            )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2103
             #(#MenuItem
1527
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2104
                #label: 'Object Memory...'
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2105
                #translateLabel: true
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2106
                #value: #memorySettings
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2107
                #enabled: #enableDangerousMenuItemsInRemoteLauncher
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2108
            )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2109
             #(#MenuItem
1527
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2110
                #label: 'Source And Debugger...'
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2111
                #translateLabel: true
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2112
                #value: #sourceAndDebuggerSettings
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2113
                #enabled: #enableDangerousMenuItemsInRemoteLauncher
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2114
            )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2115
             #(#MenuItem
1527
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2116
                #label: '-'
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2117
            )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2118
             #(#MenuItem
1527
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2119
                #label: 'Printer...'
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2120
                #translateLabel: true
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2121
                #value: #printerSettings
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2122
                #enabled: #enableDangerousMenuItemsInRemoteLauncher
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2123
            )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2124
             #(#MenuItem
1527
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2125
                #label: 'Screen...'
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2126
                #translateLabel: true
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2127
                #value: #displaySettings
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2128
                #enabled: #enableDangerousMenuItemsInRemoteLauncher
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2129
            )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2130
             #(#MenuItem
1527
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2131
                #label: '-'
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2132
            )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2133
             #(#MenuItem
1527
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2134
                #label: 'Misc...'
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2135
                #translateLabel: true
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2136
                #value: #miscSettings
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2137
                #enabled: #enableDangerousMenuItemsInRemoteLauncher
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2138
            )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2139
             #(#MenuItem
1527
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2140
                #label: '-'
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2141
            )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2142
             #(#MenuItem
1527
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2143
                #label: 'Save Settings...'
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2144
                #translateLabel: true
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2145
                #value: #saveSettings
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2146
            )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2147
             #(#MenuItem
1527
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2148
                #label: 'Restore Settings...'
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2149
                #translateLabel: true
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2150
                #value: #restoreSettings
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2151
                #enabled: #enableDangerousMenuItemsInRemoteLauncher
1441
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
          ) nil
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2154
          nil
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2155
      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2156
!
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2157
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2158
menuToolbar
1527
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2159
    "This resource specification was automatically generated
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2160
     by the MenuEditor of ST/X."
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2161
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2162
    "Do not manually edit this!! If it is corrupted,
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2163
     the MenuEditor may not be able to read the specification."
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2164
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2165
    "
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2166
     MenuEditor new openOnClass:NewLauncher andSelector:#menuToolbar
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2167
     (Menu new fromLiteralArrayEncoding:(NewLauncher menuToolbar)) startUp
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2168
    "
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
    <resource: #menu>
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2171
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2172
    ^
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2173
     
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2174
       #(#Menu
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2175
          
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
1527
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2178
                #label: 'open workspace'
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2179
                #isButton: true
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2180
                #value: #openApplication:
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2181
                #argument: 'Workspace'
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2182
                #labelImage: #(#ResourceRetriever nil #startWorkspaceIcon)
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2183
            )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2184
             #(#MenuItem
1527
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2185
                #label: 'open file browser'
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2186
                #isButton: true
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2187
                #value: #openApplication:
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2188
                #argument: 'FileBrowser'
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2189
                #labelImage: #(#ResourceRetriever nil #startFileBrowserIcon)
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2190
            )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2191
             #(#MenuItem
1527
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2192
                #label: 'save image'
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2193
                #isButton: true
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2194
                #value: #saveImageAs
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2195
                #labelImage: #(#ResourceRetriever nil #saveImageIcon)
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2196
            )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2197
             #(#MenuItem
1527
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2198
                #label: ''
1441
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
             #(#MenuItem
1527
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2201
                #label: 'open system browser'
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2202
                #isButton: true
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2203
                #value: #openApplication:
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2204
                #activeHelpKey: #'#startSystemBrowser'
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2205
                #argument: 'SystemBrowser'
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2206
                #labelImage: #(#ResourceRetriever nil #startSystemBrowserIcon)
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2207
            )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2208
             #(#MenuItem
1527
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2209
                #label: 'open changes browser'
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2210
                #isButton: true
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2211
                #value: #openApplication:
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2212
                #argument: 'ChangesBrowser'
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2213
                #labelImage: #(#ResourceRetriever nil #startChangesBrowserIcon)
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2214
            )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2215
             #(#MenuItem
1527
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2216
                #label: ''
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2217
            )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2218
             #(#MenuItem
1527
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2219
                #label: 'open GUI Builder'
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2220
                #isButton: true
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2221
                #value: #openApplication:
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2222
                #argument: 'UIPainter'
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2223
                #labelImage: #(#ResourceRetriever nil #startUIPainterIcon)
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2224
            )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2225
             #(#MenuItem
1527
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2226
                #label: 'open menu editor'
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2227
                #isButton: true
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2228
                #value: #openApplication:
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2229
                #argument: 'MenuEditor'
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2230
                #labelImage: #(#ResourceRetriever nil #startMenuEditorIcon)
1441
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
             #(#MenuItem
1527
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2233
                #label: 'open image editor'
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2234
                #isButton: true
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2235
                #value: #openApplication:
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2236
                #argument: 'ImageEditor'
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2237
                #labelImage: #(#ResourceRetriever nil #startImageEditorIcon)
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2238
            )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2239
             #(#MenuItem
1527
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2240
                #label: ''
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2241
            )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2242
             #(#MenuItem
1527
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2243
                #label: 'garbage collect'
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2244
                #isButton: true
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2245
                #value: #compressingGarbageCollect
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2246
                #labelImage: #(#ResourceRetriever nil #garbageCollectIcon)
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2247
            )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2248
          ) nil
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2249
          nil
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
! !
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  2252
1424
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2253
!NewLauncher class methodsFor:'resources'!
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2254
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2255
garbageCollectIcon
1527
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2256
    "This resource specification was automatically generated
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2257
     by the ImageEditor of ST/X."
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2258
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2259
    "Do not manually edit this!! If it is corrupted,
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2260
     the ImageEditor may not be able to read the specification."
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2261
1424
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2262
    "
1527
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2263
     ImageEditor openOnClass:self andSelector:#garbageCollectIcon
1424
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2264
    "
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2265
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2266
    <resource: #image>
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2267
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2268
    ^Icon
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2269
        constantNamed:#'NewLauncher garbageCollectIcon'
1527
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2270
        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') ; colorMapFromArray:#[0 0 0 255 255 255 127 127 127 170 170 170 255 0 0 0 255 0 0 0 255 0 255 255 255 255 0 255 0 255 127 0 0 0 127 0 0 0 127 0 127 127 127 127 0 127 0 127]; 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
  2271
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2272
saveImageIcon
1527
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2273
    "This resource specification was automatically generated
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2274
     by the ImageEditor of ST/X."
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2275
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2276
    "Do not manually edit this!! If it is corrupted,
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2277
     the ImageEditor may not be able to read the specification."
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2278
1424
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2279
    "
1527
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2280
     ImageEditor openOnClass:self andSelector:#saveImageIcon
1424
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2281
    "
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2282
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2283
    <resource: #image>
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2284
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2285
    ^Icon
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2286
        constantNamed:#'NewLauncher saveImageIcon'
1527
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2287
        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') ; colorMapFromArray:#[255 255 255 0 0 0 127 127 127 170 170 170]; 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]!
1424
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2288
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2289
startChangesBrowserIcon
1527
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2290
    "This resource specification was automatically generated
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2291
     by the ImageEditor of ST/X."
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2292
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2293
    "Do not manually edit this!! If it is corrupted,
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2294
     the ImageEditor may not be able to read the specification."
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2295
1424
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2296
    "
1527
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2297
     ImageEditor openOnClass:self andSelector:#startChangesBrowserIcon
1424
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2298
    "
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2299
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2300
    <resource: #image>
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2301
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2302
    ^Icon
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2303
        constantNamed:#'NewLauncher startChangesBrowserIcon'
1527
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2304
        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') ; colorMapFromArray:#[0 0 0 255 255 255 127 127 127 170 170 170]; 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]!
1424
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2305
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2306
startFileBrowserIcon
1527
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2307
    "This resource specification was automatically generated
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2308
     by the ImageEditor of ST/X."
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2309
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2310
    "Do not manually edit this!! If it is corrupted,
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2311
     the ImageEditor may not be able to read the specification."
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2312
1424
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2313
    "
1527
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2314
     ImageEditor openOnClass:self andSelector:#startFileBrowserIcon
1424
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2315
    "
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2316
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2317
    <resource: #image>
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2318
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2319
    ^Icon
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2320
        constantNamed:#'NewLauncher startFileBrowserIcon'
1527
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2321
        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') ; colorMapFromArray:#[0 0 0 255 255 255 255 0 0 0 255 0 0 0 255 0 255 255 255 255 0 255 0 255 127 0 0 0 127 0 0 0 127 0 127 127 127 127 0 127 0 127 127 127 127 170 170 170]; 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]!
1424
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2322
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2323
startImageEditorIcon
1527
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2324
    "This resource specification was automatically generated
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2325
     by the ImageEditor of ST/X."
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2326
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2327
    "Do not manually edit this!! If it is corrupted,
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2328
     the ImageEditor may not be able to read the specification."
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2329
1424
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2330
    "
1527
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2331
     ImageEditor openOnClass:self andSelector:#startImageEditorIcon
1424
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2332
    "
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2333
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2334
    <resource: #image>
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2335
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2336
    ^Icon
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2337
        constantNamed:#'NewLauncher startImageEditorIcon'
1527
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2338
        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') ; colorMapFromArray:#[0 0 0 255 255 255 170 170 170 127 127 127 255 0 0 0 255 0 0 0 255 0 255 255 255 255 0 255 0 255 127 0 0 0 127 0 0 0 127 0 127 127 127 127 0 127 0 127]; 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]!
1424
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2339
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2340
startMenuEditorIcon
1527
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2341
    "This resource specification was automatically generated
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2342
     by the ImageEditor of ST/X."
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2343
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2344
    "Do not manually edit this!! If it is corrupted,
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2345
     the ImageEditor may not be able to read the specification."
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2346
1424
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2347
    "
1527
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2348
     ImageEditor openOnClass:self andSelector:#startMenuEditorIcon
1424
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2349
    "
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2350
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2351
    <resource: #image>
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2352
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2353
    ^Icon
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2354
        constantNamed:#'NewLauncher startMenuEditorIcon'
1527
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2355
        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') ; colorMapFromArray:#[0 0 0 255 255 255 170 170 170 255 255 0 0 127 127 127 127 127 255 0 0 0 255 0 0 0 255 0 255 255 255 0 255 127 0 0 0 127 0 0 0 127 127 127 0 127 0 0]; 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]!
1424
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2356
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2357
startSystemBrowserIcon
1527
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2358
    "This resource specification was automatically generated
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2359
     by the ImageEditor of ST/X."
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2360
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2361
    "Do not manually edit this!! If it is corrupted,
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2362
     the ImageEditor may not be able to read the specification."
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2363
1424
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2364
    "
1527
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2365
     ImageEditor openOnClass:self andSelector:#startSystemBrowserIcon
1424
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2366
    "
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2367
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2368
    <resource: #image>
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2369
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2370
    ^Icon
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2371
        constantNamed:#'NewLauncher startSystemBrowserIcon'
1527
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2372
        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') ; colorMapFromArray:#[0 0 0 255 255 255 255 0 0 0 255 0 0 0 255 0 255 255 255 255 0 255 0 255 127 0 0 0 127 0 0 0 127 0 127 127 127 127 0 127 0 127 127 127 127 170 170 170]; 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]!
1424
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2373
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2374
startUIPainterIcon
1527
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2375
    "This resource specification was automatically generated
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2376
     by the ImageEditor of ST/X."
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2377
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2378
    "Do not manually edit this!! If it is corrupted,
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2379
     the ImageEditor may not be able to read the specification."
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2380
1424
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2381
    "
1527
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2382
     ImageEditor openOnClass:self andSelector:#startUIPainterIcon
1424
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2383
    "
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2384
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2385
    <resource: #image>
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2386
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2387
    ^Icon
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2388
        constantNamed:#'NewLauncher startUIPainterIcon'
1527
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2389
        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') ; colorMapFromArray:#[0 0 0 255 255 255 170 170 170 255 255 0 0 127 127 127 127 127 255 0 0 0 255 0 0 0 255 0 255 255 255 0 255 127 0 0 0 127 0 0 0 127 127 127 0 127 0 0]; 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]!
1424
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2390
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2391
startWorkspaceIcon
1527
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2392
    "This resource specification was automatically generated
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2393
     by the ImageEditor of ST/X."
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2394
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2395
    "Do not manually edit this!! If it is corrupted,
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2396
     the ImageEditor may not be able to read the specification."
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2397
1424
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2398
    "
1527
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2399
     ImageEditor openOnClass:self andSelector:#startWorkspaceIcon
1424
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2400
    "
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2401
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2402
    <resource: #image>
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2403
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2404
    ^Icon
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2405
        constantNamed:#'NewLauncher startWorkspaceIcon'
1527
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  2406
        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') ; colorMapFromArray:#[0 0 0 255 255 255 170 170 170 127 127 127 255 0 0 0 255 0 0 0 255 0 255 255 255 255 0 255 0 255 127 0 0 0 127 0 0 0 127 0 127 127 127 127 0 127 0 127]; 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]! !
1424
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  2407
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  2408
!NewLauncher methodsFor:'actions - classes'!
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2409
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2410
browseAllBreakAndTracePoints
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2411
    "open a browser showing all breakPointed/traced methods
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2412
     (but, to get rid of them, there is also a menu itme to remove them all)"
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2413
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2414
    SystemBrowser browseMethods: WrappedMethod allInstances title:'all breakPointed/traced methods'
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2415
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2416
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2417
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2418
browseImplementors
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2419
    "open an implementors- browser after asking for a selector"
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2420
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2421
    |enterBox selector|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2422
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2423
    enterBox := EnterBox 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2424
                    title:(resources at:'Browse implementors of:') withCRs
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2425
                    okText:(resources at:'browse')
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2426
                    action:[:acceptedString | selector := acceptedString].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2427
    enterBox showAtPointer.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2428
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2429
    selector notNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2430
        self withWaitCursorDo:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2431
            SystemBrowser browseImplementorsOf:selector
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2432
        ]  
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2433
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2434
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2435
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2436
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2437
browseResources
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2438
    "open a resource- browser after asking for a resource string"
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2439
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2440
    |box resourceHolder valueHolder component rsrc value t anyString|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2441
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2442
    anyString := resources string:'* any *'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2443
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2444
    resourceHolder := ValueHolder newString.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2445
    valueHolder := '*' asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2446
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2447
    box := DialogBox new.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2448
    box label:(resources at:'Resource search:').
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2449
    component := box addTextLabel:(resources at:'Search for methods which contain a\particular resource specification') withCRs.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2450
    component adjust:#left.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2451
    box addVerticalSpace:10.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2452
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2453
    component := box addTextLabel:(resources at:'Resource symbol (empty for any; no matchPattern allowed):') withCRs.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2454
    component adjust:#left.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2455
    component :=  box addComboBoxOn:resourceHolder tabable:true.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2456
    component list:((Array with:anyString) , #('canvas' 'menu' 'keyboard' 'style' 'image' 'programMenu' nil 'needsFix')).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2457
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2458
    component := box addTextLabel:(resources at:'Resource value (* for any; matchPattern is allowed):') withCRs.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2459
    component adjust:#left.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2460
    box addInputFieldOn:valueHolder tabable:true.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2461
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2462
    box addVerticalSpace:10.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2463
    box addHelpButtonFor:'programming/language.html#RESOURCEDEFS'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2464
    box addAbortButton; addOkButton.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2465
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2466
    box showAtPointer.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2467
    box destroy.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2468
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2469
    box accepted ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2470
        rsrc := resourceHolder value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2471
        value := valueHolder value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2472
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2473
        (rsrc isNil or:[rsrc isEmpty or:[rsrc = '*' or:[rsrc = anyString]]]) ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2474
            t := 'methods with any resource'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2475
            rsrc := nil
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2476
        ] ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2477
            t := 'methods with #' , rsrc , '-resource'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2478
            rsrc := rsrc withoutSeparators asSymbol
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2479
        ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2480
        (value isNil or:[value isEmpty or:[value = '*']]) ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2481
            t := t , ' and any value'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2482
            value := nil
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2483
        ] ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2484
            t := t , ' and value ' , value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2485
        ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2486
        self withWaitCursorDo:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2487
            SystemBrowser browseForResource:rsrc
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2488
                          containing:value
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2489
                          in:(Smalltalk allClasses)
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2490
                          title:t
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2491
        ]  
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2492
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2493
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2494
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2495
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2496
browseSenders
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2497
    "open a senders- browser after asking for a selector"
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2498
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2499
    |enterBox selector|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2500
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2501
    enterBox := EnterBox 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2502
                    title:(resources at:'Browse senders of:') withCRs
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2503
                    okText:(resources at:'browse')
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2504
                    action:[:acceptedString | selector := acceptedString].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2505
    enterBox showAtPointer.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2506
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2507
    selector notNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2508
        self withWaitCursorDo:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2509
            SystemBrowser browseAllCallsOn:selector
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2510
        ]  
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2511
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2512
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2513
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2514
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2515
browseUndeclared
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2516
    "open a browser on methods refering to undeclared variables"
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2517
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2518
    self withWaitCursorDo:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2519
        SystemBrowser 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2520
            browseReferendsOf:(Smalltalk underclaredPrefix , '*')
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2521
            title:(resources string:'references to undeclared variables')
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2522
            warnIfNone:true
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2523
    ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2524
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2525
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2526
1467
59bf087a0423 missing call added + using own extent calc routine for opening
tz
parents: 1466
diff changeset
  2527
removeAllBreakAndTracePoints
59bf087a0423 missing call added + using own extent calc routine for opening
tz
parents: 1466
diff changeset
  2528
    "remove all break- and trace points"
59bf087a0423 missing call added + using own extent calc routine for opening
tz
parents: 1466
diff changeset
  2529
59bf087a0423 missing call added + using own extent calc routine for opening
tz
parents: 1466
diff changeset
  2530
    MessageTracer cleanup
59bf087a0423 missing call added + using own extent calc routine for opening
tz
parents: 1466
diff changeset
  2531
59bf087a0423 missing call added + using own extent calc routine for opening
tz
parents: 1466
diff changeset
  2532
!
59bf087a0423 missing call added + using own extent calc routine for opening
tz
parents: 1466
diff changeset
  2533
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2534
startClassBrowser
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2535
    "open a classBrowser; asks for class"
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2536
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2537
    SystemBrowser askThenBrowseClass
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2538
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2539
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2540
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2541
startClassHierarchyBrowser
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2542
    "open a classHierarchyBrowser; asks for class"
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2543
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2544
    SystemBrowser askThenBrowseClassHierarchy
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2545
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2546
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2547
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2548
startFullClassBrowser
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2549
    "open a fullClass systemBrowser; asks for class"
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2550
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2551
    SystemBrowser askThenBrowseFullClassProtocol
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2552
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2553
! !
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2554
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  2555
!NewLauncher methodsFor:'actions - demos'!
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2556
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2557
openDemo:className
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2558
    "open a demo, given its name.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2559
     Looks in both the Smalltalk- and the Demos-Namespace
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2560
     for that class."
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2561
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2562
    self openApplication:className nameSpace:Demos
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2563
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2564
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2565
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2566
startTicTacToe2
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2567
    "opens a 2-user ticTacToe game"
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2568
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2569
    self openApplication:'TicTacToeGame' nameSpace:Games with:#open2UserGame
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2570
! !
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2571
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  2572
!NewLauncher methodsFor:'actions - file'!
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2573
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2574
exit
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2575
    "saves a snapshot image and exits, after asking for a fileName"
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2576
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2577
    |fileName saveAndExit box|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2578
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2579
    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
  2580
        okText:' Save & Exit ' 
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2581
        abortText:'Cancel'
1422
bd1798d4454c exit dialog changed + info bar as subSpec to class ToolApplicationModel moved
tz
parents: 1420
diff changeset
  2582
        action:[:str|fileName := str. saveAndExit := true].
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2583
    box label: 'Exiting ST/X'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2584
    box initialText: ObjectMemory nameForSnapshot.
1422
bd1798d4454c exit dialog changed + info bar as subSpec to class ToolApplicationModel moved
tz
parents: 1420
diff changeset
  2585
    box okText2:'Exit' action2:[:str|saveAndExit := false]; showAtPointer.
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2586
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2587
    saveAndExit notNil
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2588
    ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2589
        saveAndExit
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2590
        ifTrue:
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2591
        [
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2592
            self saveImageAs: fileName
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2593
        ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2594
        Smalltalk exit
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2595
    ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2596
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2597
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2598
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2599
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2600
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2601
objectModuleDialog
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2602
    "opens a moduleInfo dialog"
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2603
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2604
    |allModules moduleNames
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2605
     allObjects methodObjects methodNames 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2606
     cObjects cObjectNames
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2607
     otherObjects otherObjectNames
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2608
     box l handles unloadButton
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2609
     list1 list2 listView1 listView2
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2610
     y panel 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2611
     showBuiltIn showModules showMethods showCObjects showOthers
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2612
     moduleListUpdater check canDoIt menu|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2613
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2614
    showBuiltIn := true asValue. 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2615
    canDoIt := ObjectFileLoader notNil and:[ObjectFileLoader canLoadObjectFiles].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2616
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2617
    showModules := canDoIt asValue. 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2618
    showMethods := canDoIt asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2619
    showCObjects := canDoIt asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2620
    showOthers := canDoIt asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2621
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2622
    list1 := SelectionInList new.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2623
    list2 := SelectionInList new.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2624
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2625
    moduleListUpdater := [
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2626
            |l|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2627
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2628
            list2 list:nil.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2629
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2630
            l := Array new.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2631
            handles := Array new.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2632
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2633
            (showModules value or:[showBuiltIn value]) ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2634
                allModules := ObjectMemory binaryModuleInfo asOrderedCollection.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2635
                (showBuiltIn value and:[showModules value]) ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2636
                    allModules := allModules select:[:i |
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2637
                        |wantToSee|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2638
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2639
                        wantToSee := i dynamic.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2640
                        showBuiltIn value ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2641
                            wantToSee := wantToSee not
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2642
                        ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2643
                        wantToSee
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2644
                    ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2645
                ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2646
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2647
                "/ sorting by reverse id brings newest ones to the top (a side effect)
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2648
                allModules sort:[:a :b | (a id) > (b id)].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2649
                moduleNames := allModules collect:[:entry | entry name].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2650
                l := l , moduleNames.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2651
                handles := handles , allModules.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2652
            ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2653
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2654
            showMethods value ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2655
                allObjects := ObjectFileLoader loadedObjectHandles.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2656
                methodObjects := (allObjects select:[:h | h isMethodHandle]) asArray.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2657
                methodNames := methodObjects collect:[:mH | mH method isNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2658
                                                                'compiled method - removed' , ' (in ' , mH pathName , ')'
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2659
                                                            ] ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2660
                                                                'compiled method ' , mH method whoString , ' (in ' , mH pathName , ')'
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2661
                                                            ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2662
                                                     ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2663
                l := l , methodNames.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2664
                handles := handles , methodObjects.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2665
            ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2666
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2667
            showCObjects value ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2668
                allObjects := ObjectFileLoader loadedObjectHandles.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2669
                cObjects := (allObjects select:[:h | h isFunctionObjectHandle]) asArray.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2670
                cObjectNames := cObjects collect:[:entry | entry pathName].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2671
                l := l , cObjectNames.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2672
                handles := handles , cObjects.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2673
            ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2674
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2675
            showOthers value ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2676
                allObjects := ObjectFileLoader loadedObjectHandles.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2677
                otherObjects := (allObjects select:[:h | (h isFunctionObjectHandle
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2678
                                                         or:[h isMethodHandle
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2679
                                                         or:[h isClassLibHandle]]) not]) asArray.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2680
                otherObjectNames := otherObjects collect:[:entry | entry pathName].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2681
                l := l , otherObjectNames.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2682
                handles := handles , otherObjects.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2683
            ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2684
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2685
            list1 list:l.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2686
            unloadButton disable.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2687
        ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2688
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2689
    showBuiltIn onChangeSend:#value to:moduleListUpdater.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2690
    showModules onChangeSend:#value to:moduleListUpdater.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2691
    showMethods onChangeSend:#value to:moduleListUpdater.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2692
    showCObjects onChangeSend:#value to:moduleListUpdater.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2693
    showOthers onChangeSend:#value to:moduleListUpdater.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2694
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2695
    box := Dialog new.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2696
    box label:(resources string:'Module dialog').
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2697
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2698
    listView1 := HVScrollableView for:SelectionInListView miniScrollerH:true.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2699
    listView1 model:list1.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2700
    listView1 origin:0.0@0.0 corner:1.0@0.4. "/ ; inset:2.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2701
    listView1 action:[:sel |
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2702
        |info classNames tabs module|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2703
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2704
        listView1 middleButtonMenu:nil.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2705
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2706
        box withWaitCursorDo:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2707
            |nm fileName addr entry1 entry2 entry3 method|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2708
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2709
            tabs := TabulatorSpecification unit:#inch positions:#(0 2.6).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2710
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2711
            (showModules value or:[showBuiltIn value]) ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2712
                info := allModules at:sel ifAbsent:nil.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2713
            ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2714
            info isNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2715
                "/ selected a method, cObject or unknown
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2716
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2717
                module := handles at:sel.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2718
                fileName := module pathName.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2719
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2720
                module isMethodHandle ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2721
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2722
                    (method := module method) isNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2723
                        nm := '** removed **'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2724
                    ] ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2725
                        menu := PopUpMenu
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2726
                                    labels:#('inspect' 'browse')
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2727
                                    selectors:#(inspect browse).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2728
                        menu actionAt:#inspect put:[ method inspect ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2729
                        menu actionAt:#browse put:[ |who|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2730
                                                    who := method who.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2731
                                                    SystemBrowser 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2732
                                                        openInClass:(who methodClass) 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2733
                                                        selector:(who methodSelector) 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2734
                                                  ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2735
                        listView1 middleButtonMenu:menu.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2736
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2737
                        nm := (method whoString) asText emphasizeAllWith:(#color->Color blue).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2738
                    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2739
                    entry1 := MultiColListEntry new:2 tabulatorSpecification:tabs.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2740
                    entry1 colAt:1 put:'compiled method'; colAt:2 put:nm.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2741
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2742
                    entry2 := MultiColListEntry new:2 tabulatorSpecification:tabs.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2743
                    entry2 colAt:1 put:'path'; colAt:2 put:fileName.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2744
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2745
                    entry3 := MultiColListEntry new:2 tabulatorSpecification:tabs.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2746
                    entry3 colAt:1 put:'address'; colAt:2 put:('(16r) ' , (method code hexPrintString leftPaddedTo:8 with:$0)).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2747
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2748
                    list2 list:(Array with:entry1 with:entry2 with:entry3).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2749
                ] ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2750
                    (module isFunctionObjectHandle 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2751
                    and:[module functions notEmpty]) ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2752
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2753
                        menu := PopUpMenu
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2754
                                    labels:#('inspect')
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2755
                                    selectors:#(inspect).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2756
                        menu actionAt:#inspect put:[ module functions inspect  ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2757
                        listView1 middleButtonMenu:menu.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2758
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2759
                        list2 list:((module functions select:[:f | f notNil])
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2760
                                        collect:[:f | |entry|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2761
                                                        entry := MultiColListEntry new:2 tabulatorSpecification:tabs.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2762
                                                        entry colAt:1 put:(f name asText emphasizeAllWith:(#color->Color blue)).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2763
                                                        entry colAt:2 put:('address: (16r) ' , (f code hexPrintString leftPaddedTo:8 with:$0)).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2764
                                                        entry
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2765
                                                ]).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2766
                    ] ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2767
                        list2 list:#('nothing known about contents (no functions have been extracted)').    
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
                unloadButton enable.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2772
            ] ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2773
                "/ selected a package
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2774
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2775
                "/ fill bottom list with class-info
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2776
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2777
                classNames := info classNames asSortedCollection.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2778
                classNames := classNames collect:[:cName |
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2779
                                |cls entry rev listEntry|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2780
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2781
                                listEntry := MultiColListEntry new:2 tabulatorSpecification:tabs.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2782
                                listEntry colAt:1 put:cName.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2783
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2784
                                cls := Smalltalk classNamed:cName.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2785
                                cls isNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2786
                                    listEntry colAt:2 put:'(class removed)'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2787
                                ] ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2788
                                    rev := cls binaryRevision.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2789
                                    rev notNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2790
                                        cls isLoaded ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2791
                                            entry := '(stub for: ' , rev.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2792
                                        ] ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2793
                                            entry :='(bin: ' , rev.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2794
                                        ].    
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2795
                                        cls revision ~= rev ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2796
                                            entry := entry , ' / src: ' , cls revision    
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2797
                                        ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2798
                                        listEntry colAt:2 put:entry , ')'
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2799
                                    ] ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2800
                                       cls revision notNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2801
                                            listEntry colAt:2 put:'(overloaded by: ' , cls revision , ')' 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2802
                                       ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2803
                                    ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2804
                                ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2805
                                listEntry
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2806
                              ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2807
                list2 list:classNames.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2808
                info dynamic ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2809
                    unloadButton enable.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2810
                ] ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2811
                    unloadButton disable.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2812
                ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2813
            ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2814
        ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2815
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2816
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2817
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2818
    panel := HorizontalPanelView new.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2819
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2820
    panel add:(l := Label label:'show:').
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2821
    l adjust:#left; borderWidth:0.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2822
    panel add:(check := CheckBox label:'builtin' model:showBuiltIn).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2823
    box makeTabable:check.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2824
    panel add:(check := CheckBox label:'classLibs' model:showModules).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2825
    canDoIt ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2826
        check disable
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2827
    ] ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2828
        box makeTabable:check.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2829
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2830
    panel add:(check := CheckBox label:'methods' model:showMethods).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2831
    canDoIt ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2832
        check disable
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2833
    ] ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2834
        box makeTabable:check.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2835
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2836
    panel add:(check := CheckBox label:'c-objects' model:showCObjects).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2837
    canDoIt ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2838
        check disable
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2839
    ] ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2840
        box makeTabable:check.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2841
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2842
    panel add:(check := CheckBox label:'others' model:showOthers).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2843
    canDoIt ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2844
        check disable
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2845
    ] ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2846
        box makeTabable:check.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2847
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2848
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2849
    panel horizontalLayout:#fitSpace.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2850
    "/ panel horizontalLayout:#leftSpace.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2851
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2852
    box addComponent:panel tabable:false.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2853
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2854
    box addVerticalSpace.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2855
    box addComponent:listView1 tabable:true.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2856
    listView1 topInset:(View viewSpacing + panel preferredExtent y).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2857
    listView1 origin:0.0@0.0 corner:1.0@0.4. "/ ; inset:2.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2858
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2859
    l := box addTextLabel:(resources string:'contained classes/subsets:').
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2860
    l adjust:#left; borderWidth:0.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2861
    l origin:0.0@0.4 corner:1.0@0.4.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2862
    l topInset:(View viewSpacing).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2863
    l bottomInset:((l preferredExtent y) negated - View viewSpacing).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2864
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2865
    listView2 := HVScrollableView for:SelectionInListView  miniScrollerH:true.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2866
    listView2 model:list2; printItems:false.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2867
    box addComponent:listView2 tabable:true.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2868
    listView2 origin:0.0@0.4 corner:1.0@1.0. "/ ; inset:2.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2869
    listView2 disable.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2870
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2871
    unloadButton := Button label:(resources string:'unload').
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2872
    unloadButton action:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2873
        self withWaitCursorDo:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2874
            box withWaitCursorDo:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2875
                |info idx pathName|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2876
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2877
                idx := list1 selectionIndex.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2878
                info := allModules at:idx ifAbsent:nil.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2879
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2880
                list1 selectionIndex:nil.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2881
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2882
                info isNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2883
                    "/ selected a method
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2884
                    "/ idx := idx - allModules size.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2885
                    pathName := (handles at:idx) pathName.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2886
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2887
                ] ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2888
                    "/ selected a package
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2889
                    pathName := info pathName.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2890
                ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2891
                ObjectFileLoader unloadObjectFile:pathName.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2892
                moduleListUpdater value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2893
                unloadButton disable.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2894
            ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2895
        ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2896
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2897
    moduleListUpdater value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2898
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2899
    box addButton:unloadButton.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2900
    box addAbortButtonLabelled:(resources string:'dismiss').
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2901
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2902
    y := box yPosition.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2903
    listView2 topInset:(l preferredExtent y + 5).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2904
    listView2 bottomInset:(box preferredExtent y - y).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2905
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2906
"/    box width:(400 min:(box device width * 2 // 3)); 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2907
"/        height:(450 min:(box device height - 50)); 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2908
"/        sizeFixed:true.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2909
    box open.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2910
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2911
    box destroy.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2912
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2913
    "Modified: 17.9.1995 / 16:47:50 / claus"
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2914
    "Modified: 18.10.1997 / 03:43:39 / cg"
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2915
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2916
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2917
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2918
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2919
saveImage
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2920
    "save image"
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2921
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2922
    self showCursor:Cursor write.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2923
    [
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2924
        (ObjectMemory snapShotOn:ObjectMemory nameForSnapshot) ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2925
            self warn:(resources string:'Failed to save snapshot image (disk full or not writable)').
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2926
        ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2927
    ] valueNowOrOnUnwindDo:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2928
        self restoreCursors.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2929
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2930
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2931
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2932
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2933
saveImageAs
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2934
    "save image, after asking for a file name"
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2935
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2936
    self saveImageAs: (
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2937
        FileSelectionBrowser 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2938
            request: 'Save Image As' 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2939
            fileName: ObjectMemory nameForSnapshot
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2940
            inDirectory: Filename currentDirectory name
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2941
            withFileFilters: #('*.img'))
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2942
 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2943
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2944
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2945
saveImageAs: aFileName
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2946
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2947
    aFileName notNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2948
        self showCursor:Cursor write.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2949
        [       
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2950
            (ObjectMemory snapShotOn:aFileName) ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2951
                self warn:(resources string:'Failed to save snapshot image (disk full or not writable)').
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2952
            ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2953
        ] valueNowOrOnUnwindDo:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2954
            self restoreCursors.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2955
        ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2956
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2957
! !
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2958
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  2959
!NewLauncher methodsFor:'actions - help'!
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2960
1429
aa6ce97097dc NewLauncher has got its own (global) active help
tz
parents: 1424
diff changeset
  2961
activeHelp
aa6ce97097dc NewLauncher has got its own (global) active help
tz
parents: 1424
diff changeset
  2962
aa6ce97097dc NewLauncher has got its own (global) active help
tz
parents: 1424
diff changeset
  2963
    ^helpIsOn ? (helpIsOn := false)
aa6ce97097dc NewLauncher has got its own (global) active help
tz
parents: 1424
diff changeset
  2964
!
aa6ce97097dc NewLauncher has got its own (global) active help
tz
parents: 1424
diff changeset
  2965
1462
dcd1444dcc27 need licence conditions in menu
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  2966
openLicenceConditions
dcd1444dcc27 need licence conditions in menu
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  2967
    "open an HTML browser on the 'LICENCE' document"
dcd1444dcc27 need licence conditions in menu
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  2968
1488
1e2b835c0d96 show waitCursor while opening doc-viewer
Claus Gittinger <cg@exept.de>
parents: 1480
diff changeset
  2969
    self withWaitCursorDo:[
1e2b835c0d96 show waitCursor while opening doc-viewer
Claus Gittinger <cg@exept.de>
parents: 1480
diff changeset
  2970
        |lang doc|
1e2b835c0d96 show waitCursor while opening doc-viewer
Claus Gittinger <cg@exept.de>
parents: 1480
diff changeset
  2971
1e2b835c0d96 show waitCursor while opening doc-viewer
Claus Gittinger <cg@exept.de>
parents: 1480
diff changeset
  2972
        ((lang := Smalltalk language) = 'de'
1e2b835c0d96 show waitCursor while opening doc-viewer
Claus Gittinger <cg@exept.de>
parents: 1480
diff changeset
  2973
        or:[lang = 'german']) ifTrue:[
1e2b835c0d96 show waitCursor while opening doc-viewer
Claus Gittinger <cg@exept.de>
parents: 1480
diff changeset
  2974
            doc := 'german/LICENCE_STX.html'
1e2b835c0d96 show waitCursor while opening doc-viewer
Claus Gittinger <cg@exept.de>
parents: 1480
diff changeset
  2975
        ] ifFalse:[
1e2b835c0d96 show waitCursor while opening doc-viewer
Claus Gittinger <cg@exept.de>
parents: 1480
diff changeset
  2976
            doc := 'english/LICENCE_STX.html'
1e2b835c0d96 show waitCursor while opening doc-viewer
Claus Gittinger <cg@exept.de>
parents: 1480
diff changeset
  2977
        ].
1e2b835c0d96 show waitCursor while opening doc-viewer
Claus Gittinger <cg@exept.de>
parents: 1480
diff changeset
  2978
        doc := resources at:'LICENCEFILE' default:doc.
1e2b835c0d96 show waitCursor while opening doc-viewer
Claus Gittinger <cg@exept.de>
parents: 1480
diff changeset
  2979
        self showDocumentation:('../' , doc)
1e2b835c0d96 show waitCursor while opening doc-viewer
Claus Gittinger <cg@exept.de>
parents: 1480
diff changeset
  2980
    ]
1462
dcd1444dcc27 need licence conditions in menu
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  2981
dcd1444dcc27 need licence conditions in menu
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  2982
    "Created: / 5.2.1998 / 21:43:19 / cg"
1488
1e2b835c0d96 show waitCursor while opening doc-viewer
Claus Gittinger <cg@exept.de>
parents: 1480
diff changeset
  2983
    "Modified: / 25.2.1998 / 21:23:41 / cg"
1462
dcd1444dcc27 need licence conditions in menu
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  2984
!
dcd1444dcc27 need licence conditions in menu
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  2985
1411
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  2986
showBookPrintDocument
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  2987
    "open an HTML browser on the 'book'-printing document"
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  2988
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  2989
    self showDocumentation:'BOOK.html'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  2990
!
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  2991
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2992
showDocumentation:aRelativeDocFilePath
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2993
    "open an HTML browser on some document"
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2994
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2995
    "
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2996
     although that one is not yet finished,
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2997
     its better than nothing ...
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2998
    "
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2999
    HTMLDocumentView notNil ifTrue:[
1488
1e2b835c0d96 show waitCursor while opening doc-viewer
Claus Gittinger <cg@exept.de>
parents: 1480
diff changeset
  3000
        self withWaitCursorDo:[
1e2b835c0d96 show waitCursor while opening doc-viewer
Claus Gittinger <cg@exept.de>
parents: 1480
diff changeset
  3001
            "
1e2b835c0d96 show waitCursor while opening doc-viewer
Claus Gittinger <cg@exept.de>
parents: 1480
diff changeset
  3002
             temporary kludge;
1e2b835c0d96 show waitCursor while opening doc-viewer
Claus Gittinger <cg@exept.de>
parents: 1480
diff changeset
  3003
             not all machines can autoload binaries;
1e2b835c0d96 show waitCursor while opening doc-viewer
Claus Gittinger <cg@exept.de>
parents: 1480
diff changeset
  3004
             however, on my SGI (which can) we want it
1e2b835c0d96 show waitCursor while opening doc-viewer
Claus Gittinger <cg@exept.de>
parents: 1480
diff changeset
  3005
             to load automatically.
1e2b835c0d96 show waitCursor while opening doc-viewer
Claus Gittinger <cg@exept.de>
parents: 1480
diff changeset
  3006
            "
1e2b835c0d96 show waitCursor while opening doc-viewer
Claus Gittinger <cg@exept.de>
parents: 1480
diff changeset
  3007
            HTMLDocumentView isLoaded ifFalse:[
1e2b835c0d96 show waitCursor while opening doc-viewer
Claus Gittinger <cg@exept.de>
parents: 1480
diff changeset
  3008
                ErrorSignal catch:[HTMLDocumentView autoload]
1e2b835c0d96 show waitCursor while opening doc-viewer
Claus Gittinger <cg@exept.de>
parents: 1480
diff changeset
  3009
            ].
1e2b835c0d96 show waitCursor while opening doc-viewer
Claus Gittinger <cg@exept.de>
parents: 1480
diff changeset
  3010
            HTMLDocumentView isLoaded ifTrue:[
1e2b835c0d96 show waitCursor while opening doc-viewer
Claus Gittinger <cg@exept.de>
parents: 1480
diff changeset
  3011
                HTMLDocumentView openFullOnDocumentationFile:aRelativeDocFilePath. 
1e2b835c0d96 show waitCursor while opening doc-viewer
Claus Gittinger <cg@exept.de>
parents: 1480
diff changeset
  3012
                ^ self
1e2b835c0d96 show waitCursor while opening doc-viewer
Claus Gittinger <cg@exept.de>
parents: 1480
diff changeset
  3013
            ].
1e2b835c0d96 show waitCursor while opening doc-viewer
Claus Gittinger <cg@exept.de>
parents: 1480
diff changeset
  3014
        ]
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3015
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3016
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3017
    self warn:'Sorry, the ST/X HTML reader is not
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3018
included in this release.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3019
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3020
Please use Mosaic, netscape, chimera or any
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3021
other HTML viewer to see the documentation.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3022
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3023
The documentation is found in the ''doc/online'' directory.'.
1488
1e2b835c0d96 show waitCursor while opening doc-viewer
Claus Gittinger <cg@exept.de>
parents: 1480
diff changeset
  3024
1e2b835c0d96 show waitCursor while opening doc-viewer
Claus Gittinger <cg@exept.de>
parents: 1480
diff changeset
  3025
    "Modified: / 25.2.1998 / 21:24:20 / cg"
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3026
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3027
1411
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3028
startClassDocumentation
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3029
    "open an HTML browser on the 'classDoc/TOP' document"
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3030
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3031
    self showDocumentation:'classDoc/TOP.html'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3032
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3033
!
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3034
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3035
startDocumentationIndex
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3036
    "open an HTML browser on the 'index' document"
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3037
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3038
    self showDocumentation:'index.html'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3039
!
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3040
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3041
startDocumentationTool
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3042
    "open an HTML browser on the 'TOP' document"
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3043
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3044
    self showDocumentation:'TOP.html'
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3045
1411
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3046
!
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3047
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3048
startWhatsNewDocumentation
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3049
    "open an HTML browser on the 'whatsNew.html' document"
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3050
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3051
    self showDocumentation:'whatsNew.html'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3052
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3053
!
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3054
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3055
toggleActiveHelp:aBoolean
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3056
    "turn on/off active help"
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3057
1429
aa6ce97097dc NewLauncher has got its own (global) active help
tz
parents: 1424
diff changeset
  3058
    ActiveHelp notNil ifTrue:[
aa6ce97097dc NewLauncher has got its own (global) active help
tz
parents: 1424
diff changeset
  3059
        helpIsOn := aBoolean.
aa6ce97097dc NewLauncher has got its own (global) active help
tz
parents: 1424
diff changeset
  3060
        helpIsOn ifTrue:[
aa6ce97097dc NewLauncher has got its own (global) active help
tz
parents: 1424
diff changeset
  3061
            ActiveHelp start
aa6ce97097dc NewLauncher has got its own (global) active help
tz
parents: 1424
diff changeset
  3062
        ] ifFalse:[
aa6ce97097dc NewLauncher has got its own (global) active help
tz
parents: 1424
diff changeset
  3063
            ActiveHelp stop
aa6ce97097dc NewLauncher has got its own (global) active help
tz
parents: 1424
diff changeset
  3064
        ]
aa6ce97097dc NewLauncher has got its own (global) active help
tz
parents: 1424
diff changeset
  3065
    ].
1411
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3066
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3067
! !
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3068
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  3069
!NewLauncher methodsFor:'actions - old settings'!
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3070
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3071
compilerSettings
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3072
    "open a dialog on compiler related settings"
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3073
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3074
    |box warnings warnSTX warnUnderscore warnDollar warnOldStyle 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3075
     allowDollar allowUnderscore immutableArrays
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3076
     warnSTXBox warnUnderscoreBox warnOldStyleBox warnCommonMistakes warnCommonMistakesBox
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3077
     warnCompatibility warnCompatibilityBox warnDollarBox
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3078
     stcCompilation compilationList stcCompilationOptions stcIncludes stcDefines stcOptions
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3079
     stcLibraries stcLibraryPath cc ccOptions historyLines fullHistoryUpdate catchRedefs keepSourceOptions keepSource  
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3080
     constantFoldingOptions constantFolding justInTimeCompilation 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3081
     warnEnabler check component oldIndent t supportsJustInTimeCompilation y
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3082
     y2 fullDebugSupport yMax
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3083
     compileLazy loadBinaries canLoadBinaries|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3084
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3085
    canLoadBinaries := ObjectFileLoader notNil and:[ObjectFileLoader canLoadObjectFiles].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3086
    loadBinaries := Smalltalk loadBinaries asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3087
    compileLazy := Autoload compileLazy asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3088
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3089
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3090
    warnings := Compiler warnings asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3091
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3092
    warnSTX := Compiler warnSTXSpecials asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3093
    warnUnderscore := Compiler warnUnderscoreInIdentifier asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3094
    warnDollar := Compiler warnDollarInIdentifier asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3095
    warnOldStyle := Compiler warnOldStyleAssignment asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3096
    warnCommonMistakes := Compiler warnCommonMistakes asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3097
    warnCompatibility := Compiler warnPossibleIncompatibilities asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3098
    allowUnderscore := Compiler allowUnderscoreInIdentifier asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3099
    allowDollar := Compiler allowDollarInIdentifier asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3100
    immutableArrays := Compiler arraysAreImmutable asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3101
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3102
    constantFoldingOptions := #( nil #level1 #level2 #full ).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3103
    constantFolding := SelectionInList new list:(resources array:#('disabled' 'level1 (always safe)' 'level2 (usually safe)' 'full')).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3104
    constantFolding selectionIndex:3.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3105
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3106
    stcCompilationOptions := #( always default never).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3107
    stcCompilation := SelectionInList new 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3108
                        list:(resources array:#('always' 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3109
                                                'primitive code only' 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3110
                                                'never'
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3111
                                               )).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3112
    stcCompilation selectionIndex:2.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3113
    (supportsJustInTimeCompilation := ObjectMemory supportsJustInTimeCompilation)
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3114
    ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3115
        justInTimeCompilation := ObjectMemory justInTimeCompilation:nil.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3116
        fullDebugSupport := ObjectMemory fullSingleStepSupport:nil.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3117
    ] ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3118
        justInTimeCompilation := false.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3119
        fullDebugSupport := (Compiler lineNumberInfo == #full) asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3120
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3121
    justInTimeCompilation := justInTimeCompilation asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3122
    fullDebugSupport := fullDebugSupport asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3123
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3124
    stcIncludes := Compiler stcCompilationIncludes asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3125
    stcDefines := Compiler stcCompilationDefines asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3126
    stcOptions := Compiler stcCompilationOptions asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3127
    ccOptions := Compiler ccCompilationOptions asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3128
    cc := Compiler ccPath asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3129
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3130
    ObjectFileLoader notNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3131
        (t := ObjectFileLoader searchedLibraries) notNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3132
            stcLibraries := (String fromStringCollection:t separatedBy:' ') asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3133
        ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3134
        (t := ObjectFileLoader libPath) notNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3135
            stcLibraryPath := t asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3136
        ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3137
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3138
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3139
    catchRedefs := Class catchMethodRedefinitions asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3140
    historyLines := HistoryManager notNil and:[HistoryManager isLoaded and:[HistoryManager isActive]].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3141
    historyLines ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3142
        fullHistoryUpdate := false    
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3143
    ] ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3144
        fullHistoryUpdate := HistoryManager fullHistoryUpdate asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3145
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3146
    historyLines := historyLines asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3147
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3148
    keepSourceOptions := #( keep reference absReference sourceReference discard ).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3149
    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
  3150
    keepSource selectionIndex:1.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3151
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3152
    warnEnabler := [
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3153
              warnings value ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3154
                warnSTXBox enable. 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3155
                warnOldStyleBox enable.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3156
                warnCommonMistakesBox enable.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3157
                warnCompatibilityBox enable.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3158
                allowUnderscore value ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3159
                    warnUnderscoreBox enable.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3160
                ] ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3161
                    warnUnderscoreBox disable.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3162
                ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3163
                allowDollar value ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3164
                    warnDollarBox enable.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3165
                ] ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3166
                    warnDollarBox disable.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3167
                ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3168
              ] ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3169
                warnSTXBox disable. 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3170
                warnUnderscoreBox disable.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3171
                warnDollarBox disable.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3172
                warnOldStyleBox disable.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3173
                warnCommonMistakesBox disable.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3174
                warnCompatibilityBox disable.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3175
              ]].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3176
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3177
    warnings onChangeSend:#value to:warnEnabler.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3178
    allowUnderscore onChangeSend:#value to:warnEnabler.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3179
    allowDollar onChangeSend:#value to:warnEnabler.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3180
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3181
    box := DialogBox new.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3182
    box label:(resources string:'Compiler settings').
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3183
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3184
    box addCheckBox:(resources string:'catch method redefinitions') on:catchRedefs.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3185
    y := box yPosition.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3186
    check := box addCheckBox:(resources string:'keep history line in methods') on:historyLines.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3187
    HistoryManager isNil ifTrue:[check disable].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3188
    box yPosition:y.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3189
    check := box addCheckBox:(resources string:'keep full class history') on:fullHistoryUpdate.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3190
    check left:0.5.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3191
    HistoryManager isNil ifTrue:[check disable] ifFalse:[check enableChannel:historyLines].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3192
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3193
    box addPopUpList:(resources string:'fileIn source mode:') on:keepSource.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3194
    keepSource selectionIndex:( keepSourceOptions indexOf:(ClassCategoryReader sourceMode) ifAbsent:1).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3195
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3196
    box addHorizontalLine.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3197
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3198
    box addCheckBox:(resources string:'lazy compilation when autoloading') on:compileLazy.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3199
    check := box addCheckBox:(resources string:'if present, load binary objects when autoloading') on:loadBinaries.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3200
    canLoadBinaries ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3201
        loadBinaries value:false.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3202
        check disable
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3203
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3204
    supportsJustInTimeCompilation ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3205
        component := box 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3206
                        addCheckBox:(resources string:'just in time compilation to machine code') 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3207
                        on:justInTimeCompilation.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3208
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3209
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3210
    box addHorizontalLine.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3211
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3212
    ObjectFileLoader notNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3213
        compilationList := box addPopUpList:(resources string:'stc compilation to machine code') on:stcCompilation.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3214
        stcCompilation selectionIndex:( stcCompilationOptions indexOf:(Compiler stcCompilation) ifAbsent:2).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3215
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3216
        component := box 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3217
                        addLabelledInputField:(resources string:'include directories:')
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3218
                        adjust:#right
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3219
                        on:stcIncludes 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3220
                        tabable:true
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3221
                        separateAtX:0.3.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3222
        component immediateAccept:true; acceptOnLeave:false; cursorMovementWhenUpdating:#beginOfLine.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3223
        component preferredExtent:(250 @ component preferredExtent y).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3224
        canLoadBinaries ifFalse:[component disable].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3225
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3226
"/        box addVerticalSpace.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3227
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3228
        component := box 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3229
                        addLabelledInputField:(resources string:'defines:')
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3230
                        adjust:#right
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3231
                        on:stcDefines 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3232
                        tabable:true
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3233
                        separateAtX:0.3.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3234
        component immediateAccept:true; acceptOnLeave:false; cursorMovementWhenUpdating:#beginOfLine.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3235
        component preferredExtent:(250 @ component preferredExtent y).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3236
        canLoadBinaries ifFalse:[component disable].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3237
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3238
"/        box addVerticalSpace.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3239
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3240
        component := box 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3241
                        addLabelledInputField:(resources string:'stc options:')
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3242
                        adjust:#right
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3243
                        on:stcOptions 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3244
                        tabable:true
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3245
                        separateAtX:0.3.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3246
        component immediateAccept:true; acceptOnLeave:false; cursorMovementWhenUpdating:#beginOfLine.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3247
        component preferredExtent:(250 @ component preferredExtent y).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3248
        canLoadBinaries ifFalse:[component disable].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3249
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3250
"/        box addVerticalSpace.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3251
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3252
        component := box 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3253
                        addLabelledInputField:(resources string:'cc command:')
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3254
                        adjust:#right
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3255
                        on:cc 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3256
                        tabable:true
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3257
                        separateAtX:0.3.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3258
        component immediateAccept:true; acceptOnLeave:false; cursorMovementWhenUpdating:#beginOfLine.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3259
        component preferredExtent:(250 @ component preferredExtent y).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3260
        canLoadBinaries ifFalse:[component disable].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3261
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3262
        component := box 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3263
                        addLabelledInputField:(resources string:'cc options:')
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3264
                        adjust:#right
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3265
                        on:ccOptions 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3266
                        tabable:true
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3267
                        separateAtX:0.3.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3268
        component immediateAccept:true; acceptOnLeave:false; cursorMovementWhenUpdating:#beginOfLine.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3269
        component preferredExtent:(250 @ component preferredExtent y).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3270
        canLoadBinaries ifFalse:[component disable].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3271
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3272
        stcLibraries notNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3273
"/            box addVerticalSpace.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3274
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3275
            component := box 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3276
                            addLabelledInputField:(resources string:'C-libraries:')
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3277
                            adjust:#right
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3278
                            on:stcLibraries 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3279
                            tabable:true
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3280
                            separateAtX:0.3.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3281
            component immediateAccept:true; acceptOnLeave:false; cursorMovementWhenUpdating:#beginOfLine.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3282
            component preferredExtent:(250 @ component preferredExtent y).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3283
            canLoadBinaries ifFalse:[component disable].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3284
        ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3285
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3286
        stcLibraryPath notNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3287
"/            box addVerticalSpace.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3288
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3289
            component := box 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3290
                            addLabelledInputField:(resources string:'stc libPath:')
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3291
                            adjust:#right
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3292
                            on:stcLibraryPath 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3293
                            tabable:true
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3294
                            separateAtX:0.3.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3295
            component immediateAccept:true; acceptOnLeave:false; cursorMovementWhenUpdating:#beginOfLine.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3296
            component preferredExtent:(250 @ component preferredExtent y).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3297
            canLoadBinaries ifFalse:[component disable].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3298
        ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3299
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3300
"/        box addVerticalSpace.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3301
        box addHorizontalLine.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3302
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3303
        "/ if there is no compiler around,
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3304
        "/ change to compile nothing, and disable the checkBoxes
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3305
        Compiler canCreateMachineCode ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3306
            stcCompilation selectionIndex:3.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3307
            compilationList disable.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3308
        ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3309
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3310
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3311
    y := box yPosition.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3312
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3313
    component := box addCheckBox:(resources string:'allow underscore in identifiers') on:allowUnderscore.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3314
    component width:0.4.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3315
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3316
    component := box addCheckBox:(resources string:'allow dollar in identifiers') on:allowDollar.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3317
    component width:0.4.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3318
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3319
    component := box addCheckBox:(resources string:'literal arrays are immutable') on:immutableArrays.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3320
    component width:0.4.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3321
    y2 := box yPosition.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3322
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3323
    box yPosition:y.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3324
    box leftIndent:0.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3325
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3326
    component :=box addPopUpList:(resources string:'constant folding:') on:constantFolding.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3327
    component superView left:0.5; width:0.5.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3328
    constantFolding selectionIndex:( constantFoldingOptions indexOf:(Compiler foldConstants) ifAbsent:1).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3329
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3330
    component := box addCheckBox:(resources string:'full debug info') on:fullDebugSupport.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3331
    component left:0.5; width:0.4.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3332
    box yPosition:(box yPosition max:y2).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3333
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3334
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3335
    box addHorizontalLine.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3336
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3337
    box addCheckBox:(resources string:'warnings') on:warnings.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3338
"/    box addVerticalSpace.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3339
    oldIndent := box leftIndent.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3340
    box leftIndent:30.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3341
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3342
    y := box yPosition.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3343
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3344
    warnSTXBox := box addCheckBox:(resources string:'ST/X extensions') on:warnSTX.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3345
    warnSTXBox width:0.4.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3346
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3347
    warnUnderscoreBox := box addCheckBox:(resources string:'underscores in identifiers') on:warnUnderscore.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3348
    warnUnderscoreBox width:0.4.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3349
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3350
    warnDollarBox := box addCheckBox:(resources string:'dollars in identifiers') on:warnDollar.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3351
    warnDollarBox width:0.4.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3352
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3353
    yMax := box yPosition.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3354
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3355
    box yPosition:y.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3356
    box leftIndent:0.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3357
    warnOldStyleBox := box addCheckBox:(resources string:'oldStyle assignment') on:warnOldStyle.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3358
    warnOldStyleBox left:0.5; width:0.4.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3359
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3360
    warnCommonMistakesBox := box addCheckBox:(resources string:'common mistakes') on:warnCommonMistakes.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3361
    warnCommonMistakesBox left:0.5; width:0.4.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3362
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3363
    warnCompatibilityBox := box addCheckBox:(resources string:'possible incompatibilities') on:warnCompatibility.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3364
    warnCompatibilityBox left:0.5; width:0.4.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3365
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3366
    box leftIndent:oldIndent.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3367
    box yPosition:(yMax max: box yPosition).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3368
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3369
    box 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3370
        addHelpButtonFor:'Launcher/compilerSettings.html';
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3371
        addAbortButton; 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3372
        addOkButton.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3373
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3374
    warnEnabler value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3375
    box open.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3376
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3377
    box accepted ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3378
        HistoryManager notNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3379
            HistoryManager fullHistoryUpdate:fullHistoryUpdate value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3380
            historyLines value ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3381
                HistoryManager activate
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3382
            ] ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3383
                HistoryManager deactivate
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3384
            ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3385
        ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3386
        Class catchMethodRedefinitions:catchRedefs value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3387
        ClassCategoryReader sourceMode:(keepSourceOptions at:keepSource selectionIndex).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3388
        Compiler warnings:warnings value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3389
        Compiler warnSTXSpecials:warnSTX value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3390
        Compiler warnOldStyleAssignment:warnOldStyle value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3391
        Compiler warnUnderscoreInIdentifier:warnUnderscore value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3392
        Compiler warnDollarInIdentifier:warnDollar value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3393
        Compiler warnCommonMistakes:warnCommonMistakes value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3394
        Compiler warnPossibleIncompatibilities:warnCompatibility value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3395
        Compiler allowUnderscoreInIdentifier:allowUnderscore value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3396
        Compiler allowDollarInIdentifier:allowDollar value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3397
        Compiler arraysAreImmutable:immutableArrays value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3398
        fullDebugSupport value ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3399
            Compiler lineNumberInfo:#full.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3400
        ] ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3401
            Compiler lineNumberInfo:true
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3402
        ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3403
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3404
        Compiler stcCompilation:(stcCompilationOptions at:stcCompilation selectionIndex).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3405
        Compiler stcCompilationIncludes:stcIncludes value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3406
        Compiler stcCompilationDefines:stcDefines value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3407
        Compiler stcCompilationOptions:stcOptions value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3408
        Compiler ccCompilationOptions:ccOptions value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3409
        Compiler ccPath:cc value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3410
        Compiler foldConstants:(constantFoldingOptions at:constantFolding selectionIndex).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3411
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3412
        supportsJustInTimeCompilation ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3413
            justInTimeCompilation value ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3414
                Method allInstancesDo:[:m | m checked:false].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3415
            ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3416
            ObjectMemory justInTimeCompilation:justInTimeCompilation value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3417
            ObjectMemory fullSingleStepSupport:fullDebugSupport value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3418
        ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3419
        ObjectFileLoader notNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3420
            stcLibraries notNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3421
                ObjectFileLoader searchedLibraries:(stcLibraries value asCollectionOfWords).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3422
            ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3423
            stcLibraryPath notNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3424
                ObjectFileLoader libPath:(stcLibraryPath value).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3425
            ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3426
        ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3427
        Autoload compileLazy:compileLazy value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3428
        Smalltalk loadBinaries:loadBinaries value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3429
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3430
    box destroy
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3431
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3432
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3433
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3434
displaySettings
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3435
    "open a dialog on display related settings"
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3436
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3437
    |box listOfSizes sizeInfos
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3438
     sizes sizeNames sizeList sizeX sizeY deepIcons
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3439
     isColorMonitor useFixPalette useFixGrayPalette idx ditherStyles ditherSyms ditherList
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3440
     y component screen visual clipEncodings clipEncodingSyms clipEncodingList|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3441
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3442
    listOfSizes := resources at:'LIST_OF_OFFERED_SCREEN_SIZES' default:#default.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3443
    listOfSizes == #default ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3444
        "/ nothing in resource file; offer at least some.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3445
        sizeInfos := #(
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3446
                           ( '11.3'' (235mm x 175mm) LCD'   (235 175)    )
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3447
                           ( '17''   (325mm x 245mm)'       (325 245)    )
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3448
                           ( '19''   (340mm x 270mm)'       (340 270)    )
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3449
                           ( '20''   (350mm x 280mm)'       (350 280)    )
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3450
                           ( '21''   (365mm x 285mm)'       (365 285)    )
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3451
                       ).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3452
    ] ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3453
        sizeInfos := resources array:listOfSizes.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3454
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3455
    sizeNames := sizeInfos collect:[:entry | entry at:1].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3456
    sizes := sizeInfos collect:[:entry | entry at:2].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3457
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3458
    screen := Screen current.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3459
    visual := screen visualType.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3460
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3461
    isColorMonitor := screen hasColors asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3462
    deepIcons := screen supportsDeepIcons asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3463
    useFixPalette := screen fixColors notNil asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3464
    useFixGrayPalette := screen fixGrayColors notNil asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3465
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3466
    sizeList := SelectionInList with:sizeNames.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3467
    sizeX := screen widthInMillimeter asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3468
    sizeY := screen heightInMillimeter asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3469
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3470
    clipEncodingSyms := #(nil #iso8859 #jis #jis7 #sjis #euc #big5).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3471
    clipEncodings := resources array:#('untranslated' 'iso8859' 'jis' 'jis7' 'shift-JIS' 'EUC' 'big5').
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3472
    clipEncodingList := SelectionInList new.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3473
    clipEncodingList list:clipEncodings.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3474
    clipEncodingList selectionIndex:(clipEncodingSyms indexOf:screen clipBoardEncoding ifAbsent:1).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3475
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3476
    ditherList := SelectionInList new.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3477
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3478
    (visual == #StaticGray or:[visual == #GrayScale]) ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3479
        ditherStyles := #('threshold' 'ordered dither' 'error diffusion').
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3480
        ditherSyms := #(threshold ordered floydSteinberg).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3481
    ] ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3482
        visual ~~ #TrueColor ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3483
            ditherStyles := #('nearest color' 'error diffusion').
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3484
            ditherSyms := #(ordered floydSteinberg).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3485
        ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3486
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3487
    ditherSyms notNil ifTrue:[    
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3488
        ditherList list:ditherStyles.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3489
        ditherList selectionIndex:(ditherSyms indexOf:(Image ditherAlgorithm) ifAbsent:#threshold).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3490
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3491
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3492
    box := DialogBox new.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3493
    box label:(resources string:'Display screen settings').
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3494
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3495
    (box addTextLabel:(resources string:'Actual visible screen area:'))
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3496
        adjust:#left.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3497
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3498
    (box addPopUpList:(resources string:'common sizes:') on:sizeList)
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3499
        label:'monitor size'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3500
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3501
    idx := sizes findFirst:[:entry |
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3502
                                ((entry at:1) = sizeX value)
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3503
                                and:[((entry at:2) = sizeY value)]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3504
                           ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3505
    idx ~~ 0 ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3506
        sizeList selectionIndex:idx
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3507
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3508
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3509
    sizeList onChangeSend:#value to:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3510
                                        |idx|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3511
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3512
                                        idx := sizeList selectionIndex.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3513
                                        sizeX value:((sizes at:idx) at:1).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3514
                                        sizeY value:((sizes at:idx) at:2).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3515
                                    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3516
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3517
    y := box yPosition.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3518
    component := box addTextLabel:(resources string:'screen size:').
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3519
    component width:0.3; adjust:#right; borderWidth:0.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3520
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3521
    box yPosition:y.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3522
    component := box addInputFieldOn:nil tabable:true.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3523
    component width:0.25; left:0.3; 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3524
              immediateAccept:false; acceptOnLeave:false; 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3525
              cursorMovementWhenUpdating:#beginOfLine;
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3526
              converter:(PrintConverter new initForInteger);
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3527
              model:sizeX.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3528
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3529
    box yPosition:y.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3530
    component := box addTextLabel:(' x ').
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3531
    component width:0.1; left:0.55; adjust:#center; borderWidth:0.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3532
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3533
    box yPosition:y.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3534
    component := box addInputFieldOn:nil tabable:true.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3535
    component width:0.25; left:0.65; 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3536
              immediateAccept:false; acceptOnLeave:false; 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3537
              cursorMovementWhenUpdating:#beginOfLine;
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3538
              converter:(PrintConverter new initForInteger);
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3539
              model:sizeY.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3540
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3541
    box yPosition:y.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3542
    component := box addTextLabel:('(mm)').
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3543
    component width:0.1; left:0.9; adjust:#center; borderWidth:0.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3544
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3545
    box addVerticalSpace.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3546
    box addHorizontalLine.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3547
    box addVerticalSpace.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3548
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3549
    (box addTextLabel:(resources string:'Screen: depth: %1 visual: %2  (%3)'
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3550
                                 with:Screen current depth printString
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3551
                                 with:Screen current visualType
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3552
                                 with:Screen current serverVendor))
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3553
        adjust:#left.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3554
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3555
    box addVerticalSpace.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3556
    box addHorizontalLine.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3557
    box addVerticalSpace.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3558
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3559
    box addCheckBox:(resources string:'color monitor') on:isColorMonitor.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3560
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3561
    visual == #PseudoColor ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3562
        box addVerticalSpace.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3563
        component := box addCheckBox:(resources string:'use fix color palette %1' with:'(4x8x4)') on:useFixPalette.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3564
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3565
        box addVerticalSpace.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3566
        component := box addCheckBox:(resources string:'use fix gray color palette %1' with:'(32)') on:useFixGrayPalette.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3567
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3568
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3569
    ditherSyms notNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3570
        box addVerticalSpace.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3571
        component := box addPopUpList:(resources string:'image display:') on:ditherList.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3572
        component defaultLabel:'image display'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3573
        component superView horizontalLayout:#leftSpace.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3574
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3575
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3576
    box addVerticalSpace.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3577
    box addCheckBox:(resources string:'allow colored/grayscale icons') on:deepIcons.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3578
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3579
    box addVerticalSpace.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3580
    box addHorizontalLine.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3581
    box addVerticalSpace.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3582
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3583
    component := box addPopUpList:(resources string:'clipBoard encoding:') on:clipEncodingList.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3584
    component superView horizontalLayout:#leftSpace.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3585
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3586
    box 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3587
        addHelpButtonFor:'Launcher/screenSettings.html';
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3588
        addAbortButton; addOkButton.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3589
    box open.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3590
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3591
    box accepted ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3592
        Image flushDeviceImages.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3593
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3594
        screen visualType == #PseudoColor ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3595
            useFixPalette value ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3596
                Color colorAllocationFailSignal handle:[:ex |
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3597
                    self warn:(resources string:'Could not allocate colors.').
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3598
                ] do:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3599
                    Color getColorsRed:4 green:8 blue:4 on:screen
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3600
                ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3601
            ] ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3602
                screen releaseFixColors
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3603
            ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3604
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3605
            useFixGrayPalette value ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3606
                Color colorAllocationFailSignal handle:[:ex |
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3607
                    self warn:(resources string:'Could not allocate colors.').
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3608
                ] do:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3609
                    Color getGrayColors:32 on:screen
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3610
                ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3611
            ] ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3612
                screen releaseFixGrayColors
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3613
            ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3614
        ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3615
        screen hasColors:isColorMonitor value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3616
        screen widthInMillimeter:sizeX value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3617
        screen heightInMillimeter:sizeY value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3618
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3619
        screen supportsDeepIcons:deepIcons value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3620
        ditherSyms notNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3621
            Image ditherAlgorithm:(ditherSyms at:ditherList selectionIndex).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3622
        ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3623
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3624
        self withWaitCursorDo:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3625
            View defaultStyle:(View defaultStyle).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3626
        ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3627
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3628
        screen clipBoardEncoding:(clipEncodingSyms at:clipEncodingList selectionIndex).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3629
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3630
    box destroy
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3631
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3632
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3633
1411
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3634
fontBoxForEncoding:encodingMatch
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3635
    "open a fontBox, showing fonts which match some encoding
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3636
     (used when changing to japanese ...)"
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3637
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3638
    |box y b
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3639
     labelDef buttonDef listDef menuDef textDef
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3640
     models labels allOfThem filter|
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3641
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3642
    encodingMatch notNil ifTrue:[
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3643
        filter := [:f | f encoding notNil 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3644
                        and:[encodingMatch match:f encoding]].
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3645
    ].
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3646
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3647
    models := OrderedCollection new.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3648
    labels := OrderedCollection new.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3649
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3650
    models add:(allOfThem := nil asValue).
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3651
    models add:(labelDef := Label defaultFont asValue).
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3652
    models add:(buttonDef := Button defaultFont asValue).
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3653
    models add:(listDef := SelectionInListView defaultFont asValue).
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3654
    models add:(menuDef := MenuView defaultFont asValue).
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3655
    models add:(textDef := TextView defaultFont asValue).
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3656
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3657
    box := Dialog new.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3658
    box label:(resources string:'Font settings').
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3659
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3660
    models
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3661
    with:(resources array:#('all' 'labels' 'buttons' 'lists' 'menus' 'edit text'))
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3662
    do:[:model :title |
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3663
        |y2 lbl f i|
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3664
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3665
        f := model value.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3666
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3667
        (box addTextLabel:title) adjust:#left.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3668
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3669
        y := box yPosition.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3670
        b := box addComponent:(Button label:(resources string:'change ...')) tabable:true.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3671
        b relativeExtent:nil; extent:(b preferredExtent).
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3672
        y2 := box yPosition.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3673
        box yPosition:y.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3674
        i := box leftIndent.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3675
        box leftIndent:(b widthIncludingBorder + View viewSpacing).
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3676
        (lbl := box addTextLabel:'')
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3677
            adjust:#left;
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3678
            font:(model value);
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3679
            labelChannel:(BlockValue 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3680
                            with:[:v | |f|
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3681
                                f := v value.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3682
                                f isNil ifTrue:[
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3683
                                    ''
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3684
                                ] ifFalse:[
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3685
                                    f userFriendlyName
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3686
                                ]
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3687
                            ]
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3688
                            argument:model).
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3689
        labels add:lbl.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3690
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3691
        box leftIndent:i.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3692
        box yPosition:(box yPosition max:y2).
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3693
        box addVerticalSpace.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3694
        box addHorizontalLine.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3695
        box addVerticalSpace.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3696
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3697
        b action:[
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3698
            |f|
1429
aa6ce97097dc NewLauncher has got its own (global) active help
tz
parents: 1424
diff changeset
  3699
1411
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3700
            f := FontPanel 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3701
                fontFromUserInitial:(model value) 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3702
                              title:(resources string:'font for %1' with:title)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3703
                             filter:filter.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3704
            f notNil ifTrue:[
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3705
                model == allOfThem ifTrue:[
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3706
                    models do:[:m | m value:f].
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3707
                    labels do:[:l | l font:f]
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3708
                ] ifFalse:[
1429
aa6ce97097dc NewLauncher has got its own (global) active help
tz
parents: 1424
diff changeset
  3709
                    model value:f.  
1411
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3710
                    lbl font:f.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3711
                ].
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3712
            ]
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3713
        ].
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3714
        model == allOfThem ifTrue:[
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3715
            box addVerticalSpace
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3716
        ]
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3717
    ].
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3718
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3719
    box addAbortButton; addOkButton.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3720
    (box addButton:(Button label:(resources string:'defaults')) before:nil)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3721
        action:[
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3722
            "/ fetch defaults
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3723
            View updateAllStyleCaches.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3724
            labelDef value: Label defaultFont.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3725
            buttonDef value: Button defaultFont.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3726
            listDef value: SelectionInListView defaultFont.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3727
            menuDef value: MenuView defaultFont.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3728
            textDef value: TextView defaultFont.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3729
        ].
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3730
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3731
    box open.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3732
    box accepted ifTrue:[
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3733
        Label defaultFont:labelDef value.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3734
        Button defaultFont:buttonDef value.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3735
        Toggle defaultFont:buttonDef value.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3736
        SelectionInListView defaultFont:listDef value.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3737
        MenuView defaultFont:menuDef value.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3738
        PullDownMenu defaultFont:menuDef value.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3739
        TextView defaultFont:textDef value.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3740
        EditTextView defaultFont:textDef value.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3741
        CodeView defaultFont:textDef value.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3742
    ].
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3743
    box destroy.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3744
    ^ box accepted
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3745
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3746
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3747
!
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  3748
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3749
fontSettings
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3750
    "open a dialog on font related settings"
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3751
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3752
    (self fontBoxForEncoding:nil) ifTrue:[self reOpen]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3753
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3754
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3755
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3756
keyboardSetting 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3757
    "open a dialog on keyboard related settings"
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3758
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3759
    |mappings listOfRawKeys listOfFunctions
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3760
     box l
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3761
     list1 list2 listView1 listView2 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3762
     frame selectionForwarder macroForwarder macroTextView y|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3763
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3764
    mappings := Screen current keyboardMap.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3765
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3766
    listOfRawKeys := (mappings keys asArray collect:[:key | key asString]) sort.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3767
    listOfFunctions := (mappings values asSet asArray collect:[:key | key asString]) sort.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3768
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3769
    selectionForwarder := Plug new.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3770
    selectionForwarder respondTo:#showFunction
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3771
                  with:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3772
                        |raw|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3773
                        raw := list1 selection.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3774
                        list2 retractInterestsFor:selectionForwarder.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3775
                        list2 selection:(mappings at:raw asSymbol) asString.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3776
                        list2 onChangeSend:#showRawKey to:selectionForwarder.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3777
                       ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3778
    selectionForwarder respondTo:#showRawKey
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3779
                  with:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3780
                        |f raw|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3781
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3782
                        f := list2 selection.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3783
                        list1 retractInterestsFor:selectionForwarder.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3784
                        raw := mappings keyAtValue:f asString.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3785
                        raw isNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3786
                            raw := mappings keyAtValue:f first.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3787
                            raw isNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3788
                                raw := mappings keyAtValue:f asSymbol.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3789
                            ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3790
                        ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3791
                        list1 selection:raw.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3792
                        list1 onChangeSend:#showFunction to:selectionForwarder.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3793
                       ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3794
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3795
    macroForwarder := [
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3796
                        |f macro indent|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3797
                        f := list2 selection.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3798
                        (f startsWith:'Cmd') ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3799
                            f := f copyFrom:4
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3800
                        ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3801
                        macro := FunctionKeySequences at:(f asSymbol) ifAbsent:nil.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3802
                        macro notNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3803
                            macro := macro asStringCollection.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3804
                            indent := macro
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3805
                                         inject:99999 into:[:min :element |
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3806
                                             |stripped|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3807
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3808
                                             stripped := element withoutLeadingSeparators.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3809
                                             stripped size == 0 ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3810
                                                 min
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3811
                                             ] ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3812
                                                 min min:(element size - stripped size)
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3813
                                             ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3814
                                         ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3815
                            indent ~~ 0 ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3816
                                macro := macro collect:[:line | 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3817
                                             line size > indent ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3818
                                                line copyFrom:indent+1
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3819
                                             ] ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3820
                                                line
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3821
                                             ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3822
                                        ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3823
                            ].                        
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3824
                        ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3825
                        macroTextView contents:macro.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3826
                       ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3827
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3828
    list1 := SelectionInList with:listOfRawKeys.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3829
    list1 onChangeSend:#showFunction to:selectionForwarder.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3830
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3831
    list2 := SelectionInList with:listOfFunctions.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3832
    list2 onChangeSend:#showRawKey to:selectionForwarder.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3833
    list2 onChangeSend:#value to:macroForwarder.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3834
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3835
    box := Dialog new.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3836
    box label:(resources string:'Keyboard mappings').
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3837
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3838
    l := box addTextLabel:(resources string:'KEY_MSG') withCRs.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3839
    l adjust:#left; borderWidth:0.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3840
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3841
    frame := View new.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3842
    frame extent:300 @ 300.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3843
    frame borderWidth:0.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3844
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3845
    listView1 := ScrollableView for:SelectionInListView in:frame.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3846
    listView1 model:list1.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3847
    listView1 origin:0.0@0.0 corner:0.5@1.0; inset:2.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3848
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3849
    listView2 := ScrollableView for:SelectionInListView in:frame.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3850
    listView2 model:list2.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3851
    listView2 origin:0.5@0.0 corner:1.0@1.0; inset:2.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3852
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3853
    frame topInset:box yPosition.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3854
    box addComponent:frame withExtent:350@200.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3855
    box makeTabable:listView1. 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3856
    box makeTabable:listView2. 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3857
    frame origin:0.0@0.0 corner:1.0@0.6.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3858
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3859
    box addVerticalSpace.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3860
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3861
    l := box addTextLabel:(resources string:'Macro text (if any):') withCRs.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3862
    l adjust:#left; borderWidth:0.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3863
    l origin:0.0@0.6 corner:1.0@0.6.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3864
    l topInset:(View viewSpacing).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3865
    l bottomInset:(l preferredExtent y negated - View viewSpacing).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3866
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3867
    macroTextView := HVScrollableView for:TextView miniScroller:true.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3868
    box addComponent:macroTextView tabable:true.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3869
    macroTextView origin:0.0@0.6 corner:1.0@1.0.
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
    box
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3873
        addHelpButtonFor:'Launcher/keyboardSetting.html';
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3874
        "addAbortButton;" 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3875
        addOkButtonLabelled:(resources string:'dismiss').
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3876
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3877
    macroTextView topInset:(l preferredExtent y + 5).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3878
    macroTextView bottomInset:(box preferredExtent y - y).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3879
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3880
    box open.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3881
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3882
    box accepted ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3883
        "no action yet ..."
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3884
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3885
    box destroy
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3886
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3887
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3888
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3889
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3890
languageSetting 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3891
    "open a dialog on language related settings"
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3892
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3893
    |listOfLanguages translatedLanguages switch box languageList flags|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3894
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3895
    "
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3896
     get list of supported languages from the launchers resources ...
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3897
    "
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3898
    listOfLanguages := resources at:'LIST_OF_OFFERED_LANGUAGES' default:#('default').
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3899
    listOfLanguages := listOfLanguages asOrderedCollection.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3900
    translatedLanguages := listOfLanguages collect:[:lang | |item|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3901
                                        item := resources at:lang.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3902
                                        item isString ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3903
                                            item
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3904
                                        ] ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3905
                                            item at:1
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3906
                                        ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3907
                                ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3908
    flags := listOfLanguages collect:[:lang | |item|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3909
                                        item := resources at:lang.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3910
                                        item isArray ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3911
                                            item at:2
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3912
                                        ] ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3913
                                            nil
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3914
                                        ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3915
                                ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3916
    flags := flags collect:[:nm | nm notNil ifTrue:[Image fromFile:nm] ifFalse:[nil]].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3917
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3918
    languageList := translatedLanguages with:flags collect:[:lang :flag |
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3919
                                LabelAndIcon icon:flag string:lang.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3920
                        ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3921
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3922
    box := ListSelectionBox title:(resources string:'LANG_MSG') withCRs.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3923
    box label:(resources string:'Language selection').
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3924
    box list:languageList.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3925
    box initialText:(Language).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3926
    box action:[:newLanguage |
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3927
        self withWaitCursorDo:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3928
            |fontPref idx language oldLanguage enc answer matchingFonts|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3929
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3930
            idx := translatedLanguages indexOf:newLanguage withoutSeparators.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3931
            idx ~~ 0 ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3932
                language := listOfLanguages at:idx
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3933
            ] ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3934
                language := newLanguage
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3935
            ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3936
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3937
            "/ check if the new language needs a differently encoded font;
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3938
            "/ ask user to switch font and allow cancellation.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3939
            "/ Otherwise, you are left with unreadable menu & button items ...
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3940
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3941
            oldLanguage := Smalltalk language.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3942
            Smalltalk language:language asSymbol.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3943
            ResourcePack flushCachedResourcePacks.
1465
4e73891eba4a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1462
diff changeset
  3944
            fontPref := self class classResources at:'PREFERRED_FONT_ENCODING' default:'iso8859*'.
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3945
            Smalltalk language:oldLanguage.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3946
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3947
            switch := true.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3948
            enc := MenuView defaultFont encoding.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3949
            (fontPref match:enc) ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3950
                "/ look if there is one at all.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3951
                matchingFonts := Screen current listOfAvailableFonts select:[:f | fontPref match:f encoding].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3952
                matchingFonts size == 0 ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3953
                    (Dialog 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3954
                        confirm:(resources 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3955
                                    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
  3956
                                      with:fontPref) withCRs)
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3957
                    ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3958
                        switch := false
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3959
                    ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3960
                ] ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3961
                    answer := Dialog 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3962
                                confirmWithCancel:(resources 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3963
                                                        string:'menu font is not %1-encoded.\\Change it ?'
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3964
                                                        with:fontPref) withCRs
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3965
                                           labels:(resources
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3966
                                                        array:#('cancel' 'no' 'yes'))
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3967
                                           default:3.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3968
                    answer isNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3969
                        switch := false
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3970
                    ] ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3971
                        answer ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3972
                            switch := (self fontBoxForEncoding:fontPref)
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3973
                        ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3974
                    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3975
                ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3976
            ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3977
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3978
            switch ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3979
                transcript showCR:'change language to ' , newLanguage , ' ...'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3980
                Smalltalk language:language asSymbol.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3981
                ResourcePack flushCachedResourcePacks
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3982
            ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3983
        ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3984
        switch ifTrue:[
1460
f58b047b892c open new launchers at old position;
Claus Gittinger <cg@exept.de>
parents: 1457
diff changeset
  3985
            self reOpen.
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3986
            DebugView newDebugger.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3987
        ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3988
    ].    
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3989
    box
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3990
        addHelpButtonFor:'Launcher/languageSetting.html'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3991
    box open.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3992
    box destroy
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3993
1465
4e73891eba4a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1462
diff changeset
  3994
    "Modified: / 6.2.1998 / 00:01:01 / cg"
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3995
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3996
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3997
memorySettings
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3998
    "open a dialog on objectMemory related settings"
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3999
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4000
    |box igcLimit igcFreeLimit igcFreeAmount newSpaceSize
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4001
     compressLimit
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4002
     oldIncr component fields codeLimit codeTrigger stackLimit|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4003
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4004
    "/
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4005
    "/ extract relevant system settings ...
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4006
    "/
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4007
    igcLimit := ObjectMemory incrementalGCLimit asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4008
    igcFreeLimit := ObjectMemory freeSpaceGCLimit asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4009
    igcFreeAmount := ObjectMemory freeSpaceGCAmount asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4010
    newSpaceSize := ObjectMemory newSpaceSize asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4011
    oldIncr := ObjectMemory oldSpaceIncrement asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4012
    compressLimit := ObjectMemory oldSpaceCompressLimit asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4013
    codeLimit := ObjectMemory dynamicCodeLimit asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4014
    codeTrigger := ObjectMemory dynamicCodeGCTrigger asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4015
    stackLimit := Process defaultMaximumStackSize asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4016
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4017
    "/
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4018
    "/ create a box on those values ...
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4019
    "/
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4020
    fields := OrderedCollection new.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4021
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4022
    box := DialogBox new.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4023
    box label:(resources string:'Memory manager settings').
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4024
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4025
    (box addTextLabel:'Warning - invalid settings may result in failures or poor performance
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4026
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4027
You have been warned.') adjust:#left.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4028
    box addHorizontalLine.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4029
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4030
    component := box 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4031
                    addLabelledInputField:(resources string:'size of newSpace:')
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4032
                    adjust:#right
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4033
                    on:nil "/ newSpaceSize 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4034
                    tabable:true
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4035
                    separateAtX:0.7.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4036
    component acceptOnLeave:false.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4037
    component converter:(PrintConverter new initForNumber).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4038
    component model:newSpaceSize.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4039
    fields add:component.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4040
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4041
    box addHorizontalLine.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4042
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4043
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4044
    component := box 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4045
                    addLabelledInputField:(resources string:'incremental GC allocation trigger:')
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4046
                    adjust:#right
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4047
                    on:nil "/ igcLimit 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4048
                    tabable:true
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4049
                    separateAtX:0.7.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4050
    component acceptOnLeave:false.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4051
    component converter:(PrintConverter new initForNumber).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4052
    component model:igcLimit.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4053
    fields add:component.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4054
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4055
    box addTextLabel:'(start IGC whenever this amount has been allocated)'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4056
    box addHorizontalLine.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4057
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4058
    component := box 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4059
                    addLabelledInputField:(resources string:'incremental GC freespace trigger:')
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4060
                    adjust:#right
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4061
                    on:nil "/ igcFreeLimit 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4062
                    tabable:true
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4063
                    separateAtX:0.7.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4064
    component acceptOnLeave:false.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4065
    component converter:(PrintConverter new initForNumber).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4066
    component model:igcFreeLimit.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4067
    fields add:component.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4068
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4069
    box addTextLabel:'(start IGC whenever freespace drops below this)'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4070
    box addHorizontalLine.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4071
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4072
    component := box 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4073
                    addLabelledInputField:(resources string:'incremental GC amount:')
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4074
                    adjust:#right
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4075
                    on:nil "/ igcFreeAmount 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4076
                    tabable:true
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4077
                    separateAtX:0.7.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4078
    component acceptOnLeave:false.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4079
    component converter:(PrintConverter new initForNumber).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4080
    component model:igcFreeAmount.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4081
    fields add:component.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4082
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4083
    box addTextLabel:'(try to keep this amount for peak requests)'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4084
    box addHorizontalLine.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4085
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4086
    component := box 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4087
                    addLabelledInputField:(resources string:'oldspace increment:')
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4088
                    adjust:#right
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4089
                    on:nil "/ oldIncr 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4090
                    tabable:true
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4091
                    separateAtX:0.7.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4092
    component acceptOnLeave:false.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4093
    component converter:(PrintConverter new initForNumber).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4094
    component model:oldIncr.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4095
    fields add:component.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4096
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4097
    box addTextLabel:'(increase oldSpace in chunks of this size)'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4098
    box addHorizontalLine.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4099
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4100
    component := box 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4101
                    addLabelledInputField:(resources string:'oldspace compress limit:')
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4102
                    adjust:#right
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4103
                    on:nil "/ compressLimit 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4104
                    tabable:true
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4105
                    separateAtX:0.7.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4106
    component acceptOnLeave:false.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4107
    component converter:(PrintConverter new initForNumber).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4108
    component model:compressLimit.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4109
    fields add:component.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4110
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4111
    box addTextLabel:'(suppress compressing GC if more memory is in use)'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4112
    box addHorizontalLine.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4113
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4114
    component := box 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4115
                    addLabelledInputField:(resources string:'stack limit:')
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4116
                    adjust:#right
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4117
                    on:nil 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4118
                    tabable:true
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4119
                    separateAtX:0.7.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4120
    component acceptOnLeave:false.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4121
    component converter:(PrintConverter new initForNumber).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4122
    component model:stackLimit.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4123
    fields add:component.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4124
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4125
    box addTextLabel:'(trigger recursionInterrupt if more stack is used by a process)'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4126
    box addHorizontalLine.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4127
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4128
    ObjectMemory supportsJustInTimeCompilation ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4129
        component := box 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4130
                        addLabelledInputField:(resources string:'dynamic code limit:')
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4131
                        adjust:#right
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4132
                        on:nil
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4133
                        tabable:true
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4134
                        separateAtX:0.7.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4135
        component acceptOnLeave:false.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4136
        component converter:(PrintConverter new initForNumberOrNil).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4137
        component model:codeLimit.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4138
        fields add:component.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4139
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4140
        box addTextLabel:'(flush dynamic compiled code to stay within this limit)'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4141
        box addHorizontalLine.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4142
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4143
        component := box 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4144
                        addLabelledInputField:(resources string:'dynamic code GC trigger:')
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4145
                        adjust:#right
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4146
                        on:nil
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4147
                        tabable:true
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4148
                        separateAtX:0.7.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4149
        component acceptOnLeave:false.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4150
        component converter:(PrintConverter new initForNumberOrNil).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4151
        component model:codeTrigger.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4152
        fields add:component.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4153
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4154
        box addTextLabel:'(start incremental GC whenever this amount of code has been allocated)'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4155
        box addHorizontalLine.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4156
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4157
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4158
    box addAbortButton; addOkButton.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4159
    box
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4160
        addHelpButtonFor:'Launcher/memorySettings.html'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4161
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4162
    "/
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4163
    "/ show the box ...
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4164
    "/
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4165
    box open.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4166
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4167
    "/
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4168
    "/ update system settings
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4169
    "/
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4170
    box accepted ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4171
        fields do:[:comp | comp accept].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4172
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4173
        igcFreeAmount value ~~ ObjectMemory freeSpaceGCAmount ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4174
            ObjectMemory freeSpaceGCAmount:igcFreeAmount value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4175
        ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4176
        igcFreeLimit value ~~ ObjectMemory freeSpaceGCLimit ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4177
            ObjectMemory freeSpaceGCLimit:igcFreeLimit value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4178
        ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4179
        igcLimit value ~~ ObjectMemory incrementalGCLimit ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4180
            ObjectMemory incrementalGCLimit:igcLimit value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4181
        ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4182
        newSpaceSize value ~~ ObjectMemory newSpaceSize ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4183
            ObjectMemory newSpaceSize:newSpaceSize value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4184
        ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4185
        oldIncr value ~~ ObjectMemory oldSpaceIncrement ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4186
            ObjectMemory oldSpaceIncrement:oldIncr value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4187
        ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4188
        stackLimit value ~~ Process defaultMaximumStackSize ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4189
            Process defaultMaximumStackSize:stackLimit value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4190
        ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4191
        ObjectMemory oldSpaceCompressLimit:compressLimit value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4192
        ObjectMemory dynamicCodeLimit:codeLimit value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4193
        ObjectMemory dynamicCodeGCTrigger:codeTrigger value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4194
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4195
    box destroy
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4196
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4197
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4198
messageSettings
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4199
    "open a dialog on infoMessage related settings"
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4200
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4201
    |box vmInfo vmErrors displayErrors classInfos|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4202
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4203
    vmInfo := ObjectMemory infoPrinting asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4204
    vmErrors := ObjectMemory debugPrinting asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4205
    classInfos := Object infoPrinting asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4206
    displayErrors := DeviceWorkstation errorPrinting asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4207
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4208
    box := DialogBox new.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4209
    box label:(resources string:'Messages').
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4210
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4211
    box addCheckBox:(resources string:'VM info messages') on:vmInfo.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4212
    box addCheckBox:(resources string:'VM error messages') on:vmErrors.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4213
    box addHorizontalLine.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4214
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4215
    box addCheckBox:(resources string:'Display error messages (Xlib, Xtlib ...)') on:displayErrors.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4216
    box addCheckBox:(resources string:'Other info messages') on:classInfos.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4217
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4218
    box addHelpButtonFor:'Launcher/messageSettings.html'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4219
    box addAbortButton; addOkButton.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4220
    box open.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4221
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4222
    box accepted ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4223
        ObjectMemory infoPrinting:vmInfo value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4224
        ObjectMemory debugPrinting:vmErrors value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4225
        Object infoPrinting:classInfos value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4226
        DeviceWorkstation errorPrinting:displayErrors value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4227
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4228
    box destroy
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4229
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4230
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4231
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4232
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4233
miscSettings
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4234
    "open a dialog on misc other settings"
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4235
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4236
    |box shadows takeFocus returnFocus
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4237
     hostNameInLabel showAccelerators 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4238
     preemptive hostNameInLabelHolder|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4239
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4240
    "/ 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4241
    "/ extract relevant system settings ...
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4242
    "/
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4243
    shadows := PopUpView shadows asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4244
    hostNameInLabel := StandardSystemView includeHostNameInLabel.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4245
    hostNameInLabelHolder := hostNameInLabel asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4246
    returnFocus := StandardSystemView returnFocusWhenClosingModalBoxes asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4247
    takeFocus := StandardSystemView takeFocusWhenMapped asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4248
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4249
    showAccelerators := MenuView showAcceleratorKeys asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4250
    preemptive := Processor isTimeSlicing asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4251
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4252
    "/
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4253
    "/ create a box on those values ...
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4254
    "/
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4255
    box := DialogBox new.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4256
    box label:(resources string:'Other settings').
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4257
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4258
    box addCheckBox:(resources string:'shadows under popup views') on:shadows.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4259
    box addCheckBox:(resources string:'boxes return focus to previously active view') on:returnFocus.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4260
    box addCheckBox:(resources string:'views catch focus when mapped') on:takeFocus.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4261
    box addCheckBox:(resources string:'hostname in window labels') on:hostNameInLabelHolder.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4262
    box addCheckBox:(resources string:'show accelerator keys in menus') on:showAccelerators.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4263
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4264
    box addHorizontalLine.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4265
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4266
    box addCheckBox:(resources string:'preemptive scheduling') on:preemptive.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4267
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4268
    box 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4269
        addHelpButtonFor:'Launcher/miscSettings.html';
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4270
        addAbortButton; 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4271
        addOkButton.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4272
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4273
    "/
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4274
    "/ show the box ...
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4275
    "/
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4276
    box open.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4277
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4278
    "/
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4279
    "/ update system settings
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4280
    "/
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4281
    box accepted ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4282
        PopUpView shadows:shadows value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4283
        hostNameInLabelHolder value ~~ hostNameInLabel ifTrue:[ 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4284
            StandardSystemView includeHostNameInLabel:hostNameInLabelHolder value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4285
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4286
            Screen allScreens do:[:aDisplay |
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4287
                aDisplay allViewsDo:[:aView |
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4288
                    |l|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4289
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4290
                    aView isTopView ifTrue:[
1475
d985c7c23d8e fixed show-hostname-in-label (ignore popups)
Claus Gittinger <cg@exept.de>
parents: 1469
diff changeset
  4291
                        aView isPopUpView ifFalse:[
d985c7c23d8e fixed show-hostname-in-label (ignore popups)
Claus Gittinger <cg@exept.de>
parents: 1469
diff changeset
  4292
                            l := aView label.
d985c7c23d8e fixed show-hostname-in-label (ignore popups)
Claus Gittinger <cg@exept.de>
parents: 1469
diff changeset
  4293
                            aView label:(l , ' '); label:l.  "/ force a change
d985c7c23d8e fixed show-hostname-in-label (ignore popups)
Claus Gittinger <cg@exept.de>
parents: 1469
diff changeset
  4294
                        ]
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4295
                    ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4296
                ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4297
            ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4298
        ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4299
        StandardSystemView returnFocusWhenClosingModalBoxes:returnFocus value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4300
        StandardSystemView takeFocusWhenMapped:takeFocus value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4301
        MenuView showAcceleratorKeys:showAccelerators value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4302
        Processor isTimeSlicing ~~ preemptive value ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4303
            preemptive value ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4304
                Processor startTimeSlicing
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4305
            ] ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4306
                Processor stopTimeSlicing
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4307
            ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4308
        ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4309
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4310
    box destroy
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4311
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4312
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4313
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4314
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4315
printerSettings
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4316
    "open a dialog on printer related settings"
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4317
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4318
    |box 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4319
     possiblePrinters possibleTypes printerType printCommand 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4320
     pageFormat landscape updater
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4321
     formatLabel formatComponent landscapeLabel landscapeComponent
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4322
     topMargin leftMargin rightMargin bottomMargin unitList unit
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4323
     topMarginComponent leftMarginComponent
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4324
     rightMarginComponent
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4325
     bottomMarginComponent supportsColor supportsColorComponent
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4326
     y y1 commandListPop component commandList row|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4327
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4328
    possiblePrinters := PrinterStream withAllSubclasses asArray.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4329
    possibleTypes := possiblePrinters collect:[:cls | cls printerTypeName].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4330
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4331
    printerType := SelectionInList new list:(resources array:possibleTypes).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4332
    printerType selectionIndex:(possiblePrinters identityIndexOf:Printer).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4333
    printCommand := Printer printCommand asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4334
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4335
    pageFormat := SelectionInList new list:(Printer defaultPageFormats).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4336
    pageFormat selection:(Printer pageFormat).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4337
    landscape := Printer landscape asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4338
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4339
    topMargin := Printer topMargin asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4340
    leftMargin := Printer leftMargin asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4341
    rightMargin := Printer rightMargin asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4342
    bottomMargin := Printer bottomMargin asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4343
    supportsColor := Printer supportsColor asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4344
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4345
    box := DialogBox new.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4346
    box label:(resources string:'Printer settings').
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4347
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4348
"/ either use a popUpList ...
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4349
"/    box addPopUpList:(resources string:'printer type:') on:printerType.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4350
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4351
"/ or a comboList;
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4352
"/ which one looks better ?
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4353
    y := box yPosition.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4354
    component := box addTextLabel:(resources string:'printer type:').
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4355
    component width:0.25; adjust:#right; borderWidth:0.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4356
    box yPosition:y.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4357
    component := box addComboListOn:printerType tabable:true.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4358
    component aspect:#selectionIndex; changeMessage:#selectionIndex:; useIndex:true.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4359
    component width:0.75; left:0.25.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4360
"/ end of question
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4361
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4362
    y := box yPosition.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4363
    component := box addTextLabel:(resources string:'print command:').
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4364
    component width:0.25; adjust:#right; borderWidth:0.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4365
    box yPosition:y.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4366
    commandListPop := box addComboBoxOn:printCommand tabable:true.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4367
"/    commandListPop := box addInputFieldOn:printCommand tabable:true.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4368
    commandListPop width:0.75; left:0.25; immediateAccept:true; acceptOnLeave:false; cursorMovementWhenUpdating:#beginOfLine.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4369
    "/ some common print commands ...
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4370
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4371
    commandList := resources at:'PRINT_COMMANDS' ifAbsent:nil.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4372
    commandList isNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4373
        commandList := PrinterStream defaultCommands.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4374
        commandList isNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4375
            commandList := #('lpr' 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4376
                             'lp' 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4377
                            ).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4378
        ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4379
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4380
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4381
    commandListPop list:commandList.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4382
    box addVerticalSpace.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4383
    box addHorizontalLine.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4384
    box addVerticalSpace.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4385
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4386
    row := OrderedCollection new.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4387
    row add:(formatLabel := Label label:(resources string:'page format:')).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4388
    formatLabel borderWidth:0.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4389
    row add:(formatComponent := PopUpList on:pageFormat).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4390
    formatComponent label:'unknown'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4391
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4392
    row add:(landscapeLabel := Label label:(resources string:'landscape:')).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4393
    landscapeLabel borderWidth:0.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4394
    row add:(landscapeComponent := CheckToggle on:landscape).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4395
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4396
    y := box yPosition.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4397
    box
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4398
        addRow:(1 to:2)
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4399
        fromX:0
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4400
        toX:0.5
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4401
        collect:[:idx | row at:idx]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4402
        tabable:false
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4403
        horizontalLayout:#leftSpace
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4404
        verticalLayout:#center.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4405
    y1 := box yPosition.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4406
    box yPosition:y.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4407
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4408
    box
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4409
        addRow:(3 to:4)
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4410
        fromX:0.5
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4411
        toX:1.0
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4412
        collect:[:idx | row at:idx]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4413
        tabable:false
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4414
        horizontalLayout:#leftSpace
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4415
        verticalLayout:#center.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4416
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4417
    box yPosition:(box yPosition max:y1).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4418
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4419
    box makeTabable:(formatComponent).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4420
    box makeTabable:(landscapeComponent).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4421
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4422
    box addVerticalSpace.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4423
    box addHorizontalLine.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4424
    box addVerticalSpace.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4425
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4426
    y := box yPosition.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4427
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4428
    topMarginComponent := box 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4429
        addLabelledInputField:(resources string:'top margin:')
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4430
        adjust:#right
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4431
        on:nil "/ topMargin 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4432
        tabable:true
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4433
        from:0.0 to:0.5
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4434
        separateAtX:0.6.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4435
    topMarginComponent converter:(PrintConverter new initForNumber).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4436
    topMarginComponent model:topMargin.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4437
    y1 := box yPosition.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4438
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4439
    box yPosition:y.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4440
    unitList := SelectionInList with:#('inch' 'mm').
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4441
    unitList selectionIndex:1.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4442
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4443
    component := box addComponent:(PopUpList on:unitList).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4444
    component
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4445
        left:0.6;
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4446
        width:0.3.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4447
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4448
    box yPosition:y1.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4449
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4450
    leftMarginComponent := box 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4451
        addLabelledInputField:(resources string:'left margin:')
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4452
        adjust:#right
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4453
        on:nil "/ leftMargin 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4454
        tabable:true
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4455
        from:0.0 to:0.5
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4456
        separateAtX:0.6.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4457
    leftMarginComponent converter:(PrintConverter new initForNumber).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4458
    leftMarginComponent model:leftMargin.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4459
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4460
    rightMarginComponent := box 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4461
        addLabelledInputField:(resources string:'right margin:')
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4462
        adjust:#right
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4463
        on:nil "/ rightMargin 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4464
        tabable:true
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4465
        from:0.0 to:0.5
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4466
        separateAtX:0.6.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4467
    rightMarginComponent converter:(PrintConverter new initForNumber).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4468
    rightMarginComponent model:rightMargin.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4469
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4470
    bottomMarginComponent := box 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4471
        addLabelledInputField:(resources string:'bottom margin:')
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4472
        adjust:#right
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4473
        on:nil "/ bottomMargin 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4474
        tabable:true
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4475
        from:0.0 to:0.5
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4476
        separateAtX:0.6.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4477
    bottomMarginComponent converter:(PrintConverter new initForNumber).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4478
    bottomMarginComponent model:bottomMargin.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4479
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4480
    box addHorizontalLine.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4481
    supportsColorComponent := box addCheckBox:(resources string:'Color printer') on:supportsColor.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4482
    box addVerticalSpace.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4483
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4484
    updater := [ |p fg hasPageSize hasMargins|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4485
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4486
                       printerType selectionIndex ~~ 0 ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4487
                           p := possiblePrinters at:(printerType selectionIndex).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4488
                           hasPageSize := p supportsPageSizes. 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4489
                           hasMargins := p supportsMargins. 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4490
                       ] ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4491
                           hasPageSize := false.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4492
                           hasMargins := false.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4493
                       ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4494
                       hasPageSize ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4495
                          fg := Button new foregroundColor.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4496
                          formatComponent enable.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4497
                          landscapeComponent enable.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4498
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4499
                          formatComponent label:p pageFormat.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4500
                          pageFormat value:(p pageFormat).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4501
                          landscape value:(p landscape).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4502
                       ] ifFalse:[ 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4503
                          fg := Button new disabledForegroundColor.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4504
                          formatComponent disable.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4505
                          landscapeComponent disable.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4506
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4507
                          formatComponent label:'unknown'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4508
                          landscape value:nil.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4509
                       ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4510
                       hasMargins ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4511
                          unitList selectionIndex == 2 ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4512
                              unit := #mm
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4513
                          ] ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4514
                              unit := #inch
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4515
                          ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4516
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4517
                          topMargin value:(UnitConverter convert:p topMargin from:#inch to:unit).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4518
                          leftMargin value:(UnitConverter convert:p leftMargin from:#inch to:unit).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4519
                          rightMargin value:(UnitConverter convert:p rightMargin from:#inch to:unit).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4520
                          bottomMargin value:(UnitConverter convert:p bottomMargin from:#inch to:unit).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4521
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4522
                          topMarginComponent enable.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4523
                          leftMarginComponent enable.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4524
                          rightMarginComponent enable.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4525
                          bottomMarginComponent enable.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4526
                       ] ifFalse:[ 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4527
                          topMarginComponent disable.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4528
                          leftMarginComponent disable.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4529
                          rightMarginComponent disable.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4530
                          bottomMarginComponent disable.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4531
                       ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4532
                       formatLabel foregroundColor:fg.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4533
                       landscapeLabel foregroundColor:fg.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4534
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4535
                       p notNil ifTrue:[ 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4536
                           commandList := p defaultCommands.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4537
                           commandList notNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4538
                                commandListPop list:commandList 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4539
                           ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4540
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4541
                           printCommand value:(p printCommand).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4542
                       ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4543
                       p supportsPostscript ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4544
                           supportsColorComponent disable.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4545
                           supportsColor value:false
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4546
                       ] ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4547
                           supportsColorComponent enable.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4548
                           supportsColor value:(Printer supportsColor).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4549
                       ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4550
                     ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4551
    unitList onChangeSend:#value to:updater.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4552
    printerType onChangeSend:#value to:updater.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4553
    updater value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4554
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4555
    box addVerticalSpace;
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4556
        addHelpButtonFor:'Launcher/printerSettings.html';
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4557
        addAbortButton; addOkButton.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4558
    box open.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4559
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4560
    box accepted ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4561
        Printer := possiblePrinters at:(printerType selectionIndex).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4562
        Printer printCommand:printCommand value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4563
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4564
        Printer supportsPageSizes ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4565
            Printer pageFormat:(pageFormat selection).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4566
            Printer landscape:(landscape value).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4567
        ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4568
        Printer supportsMargins ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4569
            unitList selectionIndex == 2 ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4570
                unit := #mm
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4571
            ] ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4572
                unit := #inch
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4573
            ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4574
            Printer topMargin:(UnitConverter convert:topMargin value from:unit to:#inch).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4575
            Printer leftMargin:(UnitConverter convert:leftMargin value from:unit to:#inch).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4576
            Printer rightMargin:(UnitConverter convert:rightMargin value from:unit to:#inch).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4577
            Printer bottomMargin:(UnitConverter convert:bottomMargin value from:unit to:#inch).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4578
        ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4579
        Printer supportsPostscript ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4580
            Printer supportsColor:supportsColor value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4581
        ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4582
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4583
    box destroy
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4584
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4585
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4586
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4587
restoreSettings
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4588
    "restore settings from a settings-file."
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4589
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4590
    "a temporary kludge - we need a central systemSettings object for this,
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4591
     which can be saved/restored with a single store/read."
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4592
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4593
    |fileName|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4594
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4595
    fileName := Dialog 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4596
        requestFileName:(resources string:'restore settings from:') 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4597
        default:'settings.stx'
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4598
        ok:(resources string:'restore') 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4599
        abort:(resources string:'cancel') 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4600
        pattern:'*.stx'
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4601
        fromDirectory:nil.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4602
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4603
    (fileName isNil or:[fileName isEmpty]) ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4604
        "/ canceled
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4605
        ^ self
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4606
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4607
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4608
    self withWaitCursorDo:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4609
        Smalltalk fileIn:fileName.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4610
        self reOpen
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4611
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4612
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4613
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4614
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4615
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4616
saveSettings
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4617
    "save settings to a settings-file."
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4618
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4619
    "a temporary kludge - we need a central systemSettings object for this,
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4620
     which can be saved/restored with a single store/read."
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4621
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4622
    |s screen fileName|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4623
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4624
    fileName := Dialog 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4625
        requestFileName:(resources string:'save settings in:') 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4626
        default:'settings.stx'
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4627
        ok:(resources string:'save') 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4628
        abort:(resources string:'cancel') 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4629
        pattern:'*.stx'
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4630
        fromDirectory:nil.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4631
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4632
    (fileName isNil or:[fileName isEmpty]) ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4633
        "/ canceled
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4634
        ^ self
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4635
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4636
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4637
    s := fileName asFilename writeStream.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4638
    s isNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4639
        self warn:'cannot write the ''' , fileName , ''' file'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4640
        ^ self
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4641
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4642
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4643
    s nextPutLine:'"/ ST/X saved settings';
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4644
      nextPutLine:'"/ DO NOT MODIFY MANUALLY';
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4645
      nextPutLine:'"/ (modifications would be lost with next save-settings)';
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4646
      nextPutLine:'"/';
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4647
      nextPutLine:'"/ this file was automatically generated by the';
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4648
      nextPutLine:'"/ ''save settings'' function of the Launcher';
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4649
      nextPutLine:'"/'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4650
    s cr.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4651
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4652
    s nextPutLine:'"/'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4653
    s nextPutLine:'"/ saved by ' , OperatingSystem getLoginName , '@' , OperatingSystem getHostName , ' at ' , AbsoluteTime now printString.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4654
    s nextPutLine:'"/'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4655
    s cr.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4656
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4657
    s nextPutLine:'"/'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4658
    s nextPutLine:'"/ Display settings:'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4659
    s nextPutLine:'"/'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4660
    s nextPutLine:'"/ only restore the display settings, if on the same Display ...'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4661
    s nextPutLine:'Display displayName = ' , (Display displayName storeString) , ' ifTrue:['.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4662
      screen := Screen current.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4663
      screen fixColors notNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4664
        s nextPutLine:'  Image flushDeviceImages.'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4665
        s nextPutLine:'  Color colorAllocationFailSignal catch:['.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4666
        s nextPutLine:'    Color getColorsRed:6 green:6 blue:4 on:Display'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4667
        s nextPutLine:'  ].'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4668
      ] ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4669
        s nextPutLine:'  Display releaseFixColors.'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4670
      ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4671
      s nextPutLine:'  Display hasColors: ' , (screen hasColors storeString) , '.'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4672
      s nextPutLine:'  Display widthInMillimeter: ' , (screen widthInMillimeter storeString) , '.'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4673
      s nextPutLine:'  Display heightInMillimeter: ' , (screen heightInMillimeter storeString) , '.'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4674
      s nextPutLine:'  Display supportsDeepIcons: ' , (screen supportsDeepIcons storeString) , '.'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4675
      s nextPutLine:'  Image ditherAlgorithm: ' , (Image ditherAlgorithm storeString) , '.'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4676
      s nextPutLine:'  View defaultStyle:(View defaultStyle). "/ to flush any device images'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4677
    s nextPutLine:'].'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4678
    s cr.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4679
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4680
    s nextPutLine:'"/'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4681
    s nextPutLine:'"/ Compiler settings:'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4682
    s nextPutLine:'"/'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4683
    s nextPutLine:'Compiler warnSTXSpecials: ' , (Compiler warnSTXSpecials storeString) , '.';
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4684
      nextPutLine:'Compiler warnUnderscoreInIdentifier: ' , (Compiler warnUnderscoreInIdentifier storeString) , '.';
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4685
      nextPutLine:'Compiler warnOldStyleAssignment: ' , (Compiler warnOldStyleAssignment storeString) , '.';
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4686
      nextPutLine:'Compiler warnCommonMistakes: ' , (Compiler warnCommonMistakes storeString) , '.';
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4687
      nextPutLine:'Compiler warnPossibleIncompatibilities: ' , (Compiler warnPossibleIncompatibilities storeString) , '.';
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4688
      nextPutLine:'Compiler allowUnderscoreInIdentifier: ' , (Compiler allowUnderscoreInIdentifier storeString) , '.';
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4689
      nextPutLine:'Compiler arraysAreImmutable: ' , (Compiler arraysAreImmutable storeString) , '.';
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4690
      nextPutLine:'Compiler lineNumberInfo: ' , (Compiler lineNumberInfo storeString) , '.';
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4691
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4692
      nextPutLine:'Compiler foldConstants: ' , (Compiler foldConstants storeString) , '.';
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4693
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4694
      nextPutLine:'Compiler stcCompilationIncludes: ' , (Compiler stcCompilationIncludes storeString) , '.';
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4695
      nextPutLine:'Compiler stcCompilationDefines: ' , (Compiler stcCompilationDefines storeString) , '.';
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4696
      nextPutLine:'Compiler stcCompilationOptions: ' , (Compiler stcCompilationOptions storeString) , '.';
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4697
      nextPutLine:'Compiler ccCompilationOptions: ' , (Compiler ccCompilationOptions storeString) , '.';
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4698
      nextPutLine:'Compiler ccPath: ' , (Compiler ccPath storeString) , '.';
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4699
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4700
      nextPutLine:'ObjectMemory justInTimeCompilation: ' , (ObjectMemory justInTimeCompilation storeString) , '.';
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4701
      nextPutLine:'ObjectMemory fullSingleStepSupport: ' , (ObjectMemory fullSingleStepSupport storeString) , '.'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4702
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4703
    HistoryManager notNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4704
        HistoryManager isActive ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4705
            s nextPutLine:'HistoryManager notNil ifTrue:[HistoryManager activate].'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4706
            s nextPutLine:'HistoryManager notNil ifTrue:[HistoryManager fullHistoryUpdate:' , HistoryManager fullHistoryUpdate storeString , '].'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4707
        ] ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4708
            s nextPutLine:'HistoryManager notNil ifTrue:[HistoryManager deactivate].'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4709
        ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4710
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4711
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4712
    ObjectFileLoader notNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4713
        s nextPutLine:'ObjectFileLoader searchedLibraries: ' , (ObjectFileLoader searchedLibraries storeString) , '.'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4714
        s nextPutLine:'ObjectFileLoader libPath: ' , (ObjectFileLoader libPath storeString) , '.'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4715
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4716
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4717
    s nextPutLine:'Class catchMethodRedefinitions: ' , (Class catchMethodRedefinitions storeString) , '.'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4718
    s nextPutLine:'ClassCategoryReader sourceMode: ' , (ClassCategoryReader sourceMode storeString) , '.'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4719
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4720
    s cr.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4721
    s nextPutLine:'"/'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4722
    s nextPutLine:'"/ Info & Debug Messages:'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4723
    s nextPutLine:'"/'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4724
    s nextPutLine:'ObjectMemory infoPrinting: ' , (ObjectMemory infoPrinting storeString) , '.';
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4725
      nextPutLine:'ObjectMemory debugPrinting: ' , (ObjectMemory debugPrinting storeString) , '.';
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4726
      nextPutLine:'Object infoPrinting: ' , (Object infoPrinting storeString) , '.';
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4727
      nextPutLine:'DeviceWorkstation errorPrinting: ' , (DeviceWorkstation errorPrinting storeString) , '.'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4728
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4729
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4730
    s cr.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4731
    s nextPutLine:'"/'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4732
    s nextPutLine:'"/ Misc settings:'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4733
    s nextPutLine:'"/'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4734
    s nextPutLine:'Class keepMethodHistory: ' , (Class methodHistory notNil storeString) , '.';
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4735
      nextPutLine:'Smalltalk logDoits: ' , (Smalltalk logDoits storeString) , '.';
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4736
      nextPutLine:'Autoload compileLazy: ' , (Autoload compileLazy storeString) , '.';
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4737
      nextPutLine:'Smalltalk loadBinaries: ' , (Smalltalk loadBinaries storeString) , '.';
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4738
      nextPutLine:'StandardSystemView includeHostNameInLabel: ' , (StandardSystemView includeHostNameInLabel storeString) , '.';
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4739
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4740
      "/ claus - I dont think its a good idea to save those ...
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4741
      nextPutLine:'"/ Class updateChanges: ' , (Class updatingChanges storeString) , '.';
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4742
      nextPutLine:'"/ ObjectMemory nameForChanges: ' , (ObjectMemory nameForChanges storeString) , '.';
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4743
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4744
      nextPutLine:'StandardSystemView returnFocusWhenClosingModalBoxes: ' , (StandardSystemView returnFocusWhenClosingModalBoxes storeString) , '.';
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4745
      nextPutLine:'StandardSystemView takeFocusWhenMapped: ' , (StandardSystemView takeFocusWhenMapped storeString) , '.';
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4746
      nextPutLine:'MenuView showAcceleratorKeys: ' , (MenuView showAcceleratorKeys storeString) , '.';
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4747
      nextPutLine:'Class tryLocalSourceFirst: ' , (Class tryLocalSourceFirst storeString) , '.'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4748
    (Exception emergencyHandler == Launcher notifyingEmergencyHandler) ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4749
        s nextPutLine:'Exception emergencyHandler:(Launcher notifyingEmergencyHandler).'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4750
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4751
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4752
    s cr.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4753
    s nextPutLine:'"/'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4754
    s nextPutLine:'"/ Printer settings:'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4755
    s nextPutLine:'"/'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4756
    s nextPutLine:'Printer := ' , (Printer name) , '.';
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4757
      nextPutLine:'Printer printCommand: ' , (Printer printCommand storeString) , '.'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4758
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4759
    Printer supportsPageSizes ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4760
        s nextPutLine:'Printer pageFormat: ' , (Printer pageFormat storeString) , '.'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4761
        s nextPutLine:'Printer landscape: ' , (Printer landscape storeString) , '.'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4762
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4763
    Printer supportsMargins ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4764
        s nextPutLine:'Printer topMargin: ' , (Printer topMargin storeString) , '.'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4765
        s nextPutLine:'Printer leftMargin: ' , (Printer leftMargin storeString) , '.'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4766
        s nextPutLine:'Printer rightMargin: ' , (Printer rightMargin storeString) , '.'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4767
        s nextPutLine:'Printer bottomMargin: ' , (Printer bottomMargin storeString) , '.'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4768
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4769
    Printer supportsPostscript ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4770
        s nextPutLine:'Printer supportsColor: ' , (Printer supportsColor storeString) , '.'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4771
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4772
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4773
    s cr.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4774
    s nextPutLine:'"/'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4775
    s nextPutLine:'"/ Font settings:'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4776
    s nextPutLine:'"/'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4777
    s nextPutLine:'View defaultFont: ' , (View defaultFont storeString) , '.'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4778
    s nextPutLine:'Label defaultFont: ' , (Label defaultFont storeString) , '.'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4779
    s nextPutLine:'Button defaultFont: ' , (Button defaultFont storeString) , '.'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4780
    s nextPutLine:'Toggle defaultFont: ' , (Toggle defaultFont storeString) , '.'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4781
    s nextPutLine:'SelectionInListView defaultFont: ' , (SelectionInListView defaultFont storeString) , '.'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4782
    s nextPutLine:'MenuView defaultFont: ' , (MenuView defaultFont storeString) , '.'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4783
    s nextPutLine:'PullDownMenu defaultFont: ' , (PullDownMenu defaultFont storeString) , '.'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4784
    s nextPutLine:'TextView defaultFont: ' , (TextView defaultFont storeString) , '.'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4785
    s nextPutLine:'EditTextView defaultFont: ' , (EditTextView defaultFont storeString) , '.'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4786
    s nextPutLine:'CodeView defaultFont: ' , (CodeView defaultFont storeString) , '.'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4787
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4788
    s cr.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4789
    s nextPutLine:'"/'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4790
    s nextPutLine:'"/ Language setting:'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4791
    s nextPutLine:'"/'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4792
    s nextPutLine:'Smalltalk language: ' , (Smalltalk language storeString) , '.'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4793
    s nextPutLine:'Smalltalk languageTerritory: ' , (Smalltalk languageTerritory storeString) , '.'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4794
    s close.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4795
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4796
    "
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4797
     Transcript topView application saveSettings
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4798
    " 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4799
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4800
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4801
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4802
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4803
sourceAndDebuggerSettings
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4804
    "open a dialog on misc other settings"
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4805
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4806
    |box check logDoits updChanges changeFileName
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4807
     useManager hasManager 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4808
     repository repositoryHolder localSourceFirst 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4809
     sourceCacheDir cacheEntry
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4810
     component localCheck oldIndent nm fn manager
1527
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  4811
     keepMethodHistory showErrorNotifier showVerboseStack
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  4812
     syntaxColoring|
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4813
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4814
    "/ 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4815
    "/ extract relevant system settings ...
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4816
    "/
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4817
    keepMethodHistory := Class methodHistory notNil asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4818
    logDoits := Smalltalk logDoits asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4819
    updChanges := Class updatingChanges asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4820
    changeFileName := ObjectMemory nameForChanges asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4821
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4822
    hasManager := AbstractSourceCodeManager notNil
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4823
                  and:[AbstractSourceCodeManager isLoaded].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4824
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4825
    hasManager ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4826
        useManager := (manager := Smalltalk at:#SourceCodeManager) notNil asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4827
        localSourceFirst := Class tryLocalSourceFirst asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4828
        manager notNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4829
            repository := manager repositoryName.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4830
            repository notNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4831
                repositoryHolder := repository asValue
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4832
            ] ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4833
                repositoryHolder := '' asValue
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4834
            ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4835
        ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4836
    ] ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4837
        useManager := false.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4838
        localSourceFirst := false
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4839
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4840
    showErrorNotifier := (Exception emergencyHandler == Launcher notifyingEmergencyHandler) asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4841
    showVerboseStack := (DebugView defaultVerboseBacktrace ? false) asValue.
1527
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  4842
    syntaxColoring := UserPreferences current syntaxColoring asValue.
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4843
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4844
    sourceCacheDir := nil asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4845
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4846
    "/
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4847
    "/ create a box on those values ...
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4848
    "/
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4849
    box := DialogBox new.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4850
    box label:(resources string:'Source & Debugger settings').
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4851
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4852
    box addCheckBox:(resources string:'remember changed methods (for previous method in browser)') on:keepMethodHistory.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4853
    box addCheckBox:(resources string:'log compiles in changes file') on:updChanges.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4854
    box addCheckBox:(resources string:'log doIts in changes file') on:logDoits.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4855
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4856
    component := box 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4857
                    addLabelledInputField:(resources string:'change file name:')
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4858
                    adjust:#right
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4859
                    on:changeFileName 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4860
                    tabable:true
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4861
                    separateAtX:0.4.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4862
    component immediateAccept:true; acceptOnLeave:false.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4863
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4864
"/    y := box yPosition.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4865
"/    component := box addTextLabel:(resources string:'change file name:').
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4866
"/    component width:0.5; adjust:#right; borderWidth:0.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4867
"/    box yPosition:y.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4868
"/    component := box addInputFieldOn:changeFileName tabable:true.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4869
"/    component width:0.5; left:0.5; immediateAccept:true; acceptOnLeave:false.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4870
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4871
    box addHorizontalLine.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4872
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4873
    hasManager ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4874
        check := box addCheckBox:(resources string:'sourcecode from sourcecode management') on:useManager.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4875
        oldIndent := box leftIndent.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4876
        box leftIndent:30.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4877
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4878
        repositoryHolder notNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4879
            component := box 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4880
                            addLabelledInputField:(resources string:'repository:')
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4881
                            adjust:#right
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4882
                            on:repositoryHolder 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4883
                            tabable:true
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4884
                            separateAtX:0.4.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4885
            component immediateAccept:true; acceptOnLeave:false.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4886
            component enableChannel:useManager.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4887
        ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4888
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4889
        cacheEntry := box 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4890
                        addLabelledInputField:(resources string:'source cache dir:')
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4891
                        adjust:#right
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4892
                        on:sourceCacheDir 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4893
                        tabable:true
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4894
                        separateAtX:0.4.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4895
        cacheEntry immediateAccept:true; acceptOnLeave:false.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4896
        cacheEntry enableChannel:useManager.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4897
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4898
        localCheck := box addCheckBox:(resources string:'if present, use local source (suppress checkout)') on:localSourceFirst.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4899
        localCheck enableChannel:useManager.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4900
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4901
        box leftIndent:oldIndent.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4902
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4903
        (AbstractSourceCodeManager isNil 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4904
        or:[AbstractSourceCodeManager defaultManager isNil]) ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4905
            useManager value:false.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4906
            cacheEntry disable.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4907
            check disable.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4908
            localCheck enable.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4909
        ] ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4910
            sourceCacheDir value:(AbstractSourceCodeManager cacheDirectoryName).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4911
        ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4912
        box addHorizontalLine.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4913
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4914
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4915
    box addCheckBox:(resources string:'show error notifier before opening debugger') on:showErrorNotifier.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4916
    box addCheckBox:(resources string:'verbose backtrace by default in debugger') on:showVerboseStack.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4917
1527
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  4918
    box addHorizontalLine.
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  4919
    box addCheckBox:(resources string:'syntax coloring') on:syntaxColoring.
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  4920
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4921
    box 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4922
        addHelpButtonFor:'Launcher/sourceSettings.html';
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4923
        addAbortButton; 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4924
        addOkButton.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4925
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4926
    "/
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4927
    "/ show the box ...
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4928
    "/
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4929
    box open.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4930
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4931
    "/
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4932
    "/ update system settings
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4933
    "/
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4934
    box accepted ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4935
        Class keepMethodHistory:keepMethodHistory value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4936
        Smalltalk logDoits:logDoits value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4937
        Class updateChanges:updChanges value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4938
        ObjectMemory nameForChanges:changeFileName value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4939
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4940
        (hasManager and:[useManager value]) ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4941
            manager isNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4942
                Smalltalk at:#SourceCodeManager put:(AbstractSourceCodeManager defaultManager).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4943
                manager := Smalltalk at:#SourceCodeManager.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4944
            ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4945
            Class tryLocalSourceFirst:(localSourceFirst value).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4946
            localSourceFirst value ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4947
                nm := sourceCacheDir value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4948
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4949
                (fn := nm asFilename) exists ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4950
                    (self confirm:('cache directory ''' , nm , ''' does not exists\create ?' withCRs)) ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4951
                        fn makeDirectory; 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4952
                           makeReadableForAll;
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4953
                           makeWritableForAll;
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4954
                           makeExecutableForAll.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4955
                    ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4956
                ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4957
                (fn exists 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4958
                and:[fn isDirectory
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4959
                and:[fn isReadable
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4960
                and:[fn isWritable]]]) ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4961
                    AbstractSourceCodeManager cacheDirectoryName:(sourceCacheDir value).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4962
                ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4963
            ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4964
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4965
            repositoryHolder notNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4966
                repositoryHolder value size > 0 ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4967
                    manager initializeForRepository:repositoryHolder value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4968
                ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4969
            ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4970
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4971
            showErrorNotifier value ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4972
                Exception emergencyHandler:nil
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4973
            ] ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4974
                Exception emergencyHandler:(Launcher notifyingEmergencyHandler)
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4975
            ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4976
            DebugView defaultVerboseBacktrace:(showVerboseStack value).
1527
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  4977
            UserPreferences current syntaxColoring:syntaxColoring value.
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4978
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4979
        ] ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4980
            Smalltalk at:#SourceCodeManager put:nil
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4981
        ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4982
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4983
    box destroy
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4984
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4985
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4986
viewStyleSetting 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4987
    "open a dialog on viewStyle related settings"
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4988
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4989
    |listOfStyles resourceDir dir box 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4990
     list listView scrView infoLabel infoForwarder newStyle
1491
fa75bbd0aee9 removed unused locals
Claus Gittinger <cg@exept.de>
parents: 1489
diff changeset
  4991
     someRsrcFile didApply|
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4992
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4993
    "
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4994
     search resources directory for a list of .style files ...
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4995
    "
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4996
    someRsrcFile := Smalltalk getSystemFileName:('resources' asFilename constructString:'normal.style').
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4997
    someRsrcFile notNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4998
        resourceDir := someRsrcFile asFilename directoryName
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4999
    ] ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5000
        resourceDir := Smalltalk getSystemFileName:'resources'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5001
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5002
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5003
    resourceDir isNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5004
        self warn:'no styles found (missing ''resources'' directory)'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5005
        ^ self
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5006
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5007
    dir := resourceDir asFilename directoryContents.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5008
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5009
    listOfStyles := dir select:[:aFileName | aFileName asFilename hasSuffix:'style'].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5010
    listOfStyles := listOfStyles collect:[:aFileName | aFileName asFilename withoutSuffix name].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5011
    Filename isCaseSensitive ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5012
        listOfStyles := listOfStyles collect:[:aStyleName | aStyleName asLowercase].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5013
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5014
    listOfStyles sort.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5015
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5016
"/ old code: used a standard ListSelectionBox
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5017
"/ changed to intercept selection and add info-output.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5018
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5019
"/    box := ListSelectionBox title:(resources string:'STYLE_MSG') withCRs.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5020
"/    box label:(resources string:'Style selection').
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5021
"/    box list:listOfStyles.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5022
"/    box initialText:View defaultStyle.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5023
"/    box selectAction:[:newStyle |
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5024
"/    ].    
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5025
"/    box action:[:newStyle |
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5026
"/        transcript topView withCursor:Cursor wait do:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5027
"/            transcript showCR:'change style to ' , newStyle , ' ...'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5028
"/            View defaultStyle:newStyle asSymbol.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5029
"/        ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5030
"/    ].    
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5031
"/    box showAtPointer
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5032
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5033
"/ new code: build box 'by 'hand'
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5034
"/
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5035
    infoForwarder := [
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5036
                        |nm sheet comment|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5037
                        nm := list selection.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5038
                        sheet := ViewStyle fromFile:(nm , '.style').
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5039
                        comment := sheet at:#comment ifAbsent:''.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5040
                        infoLabel label:comment withCRs asStringCollection
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5041
                       ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5042
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5043
    list := SelectionInList with:listOfStyles.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5044
    list onChangeSend:#value to:infoForwarder.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5045
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5046
    box := Dialog new.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5047
    box label:(resources string:'Style selection').
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5048
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5049
    (box addTextLabel:(resources string:'STYLE_MSG') withCRs) adjust:#left.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5050
    listView := SelectionInListView on:list.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5051
    listView doubleClickAction:[:sel | box accept value:true. box hide].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5052
    scrView := box addComponent:(ScrollableView forView:listView) tabable:true.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5053
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5054
    box addVerticalSpace.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5055
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5056
    (infoLabel := box addTextLabel:'\\' withCRs) adjust:#centerLeft.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5057
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5058
    box addAbortButton.
1467
59bf087a0423 missing call added + using own extent calc routine for opening
tz
parents: 1466
diff changeset
  5059
    "b := box addButton:(Button label:(resources string:'apply'))."
59bf087a0423 missing call added + using own extent calc routine for opening
tz
parents: 1466
diff changeset
  5060
    "b action:[didApply := true. self changeViewStyleTo:(list selection)]."
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5061
    box addOkButton.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5062
    list selection:(View defaultStyle).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5063
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5064
    box stickAtBottomWithVariableHeight:scrView.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5065
    box stickAtBottomWithFixHeight:infoLabel.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5066
    box open.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5067
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5068
    box accepted ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5069
        ((newStyle := list selection) ~= View defaultStyle
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5070
        or:[didApply ~~ true]) ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5071
            self changeViewStyleTo:newStyle.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5072
        ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5073
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5074
    box destroy
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5075
! !
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5076
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  5077
!NewLauncher methodsFor:'actions - projects'!
1411
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5078
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5079
newProject 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5080
    "creates a new project & opens a projectView for it"
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5081
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5082
    Project notNil ifTrue: [(ProjectView for: Project new) open]
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5083
!
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5084
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5085
selectProject
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5086
    "asks for and switch to another project"
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5087
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5088
    |list box|
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5089
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5090
    Project notNil ifTrue:[
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5091
        list := Project allInstances.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5092
        box := ListSelectionBox new.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5093
        box list:(list collect:[:p | p name]).
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5094
        box title:(resources string:'select a project').
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5095
        box action:[:selection |
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5096
            |project|
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5097
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5098
            project := list detect:[:p | p name = selection] ifNone:[nil].
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5099
            project isNil ifTrue:[
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5100
                transcript showCR:'no such project.'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5101
            ] ifFalse:[
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5102
                project showViews.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5103
                Project current:project
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5104
            ]
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5105
        ].
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5106
        box showAtPointer.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5107
        box destroy
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5108
    ]
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5109
! !
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5110
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  5111
!NewLauncher methodsFor:'actions - settings'!
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  5112
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  5113
aspects
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  5114
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  5115
    ^aspects ? (aspects := IdentityDictionary new)
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  5116
!
1411
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5117
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5118
changeFont
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5119
1491
fa75bbd0aee9 removed unused locals
Claus Gittinger <cg@exept.de>
parents: 1489
diff changeset
  5120
    |viewClassName viewClass|
1411
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5121
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  5122
    viewClassName := (self aspects at: #selectionOfViewClass) value name.
1411
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5123
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5124
    viewClass := Smalltalk at: viewClassName asSymbol.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5125
    viewClass defaultFont: (self chooseFontFromViewClass: viewClass).
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5126
    self updatePreviewFontLabel
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5127
!
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5128
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5129
changeFontFor: viewClassName
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5130
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5131
    viewClassName = 'All'     
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5132
    ifTrue: 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5133
    [
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5134
        |choosedFontForAll|
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5135
        choosedFontForAll := self chooseFontFromViewClass: View.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5136
        SimpleView withAllSubclasses do: 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5137
        [:viewCls|
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5138
            viewCls defaultFont: choosedFontForAll.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5139
        ]
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5140
    ].
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5141
    viewClassName = 'Default' 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5142
    ifTrue:
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5143
    [
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5144
        SimpleView updateAllStyleCaches.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5145
    ].
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5146
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5147
    self updatePreviewFontLabel
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5148
!
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5149
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5150
chooseFontFromViewClass: aViewClass
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5151
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5152
    ^FontPanel 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5153
        fontFromUserInitial: aViewClass defaultFont 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5154
        title:(resources string:'font for %1' with:aViewClass name)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5155
        filter:nil
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5156
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5157
!
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5158
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5159
createAspectsForFontsSettings
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5160
    "create aspects for font settings"
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5161
1491
fa75bbd0aee9 removed unused locals
Claus Gittinger <cg@exept.de>
parents: 1489
diff changeset
  5162
    |listOfViewClasses selectionOfViewClass|
1411
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5163
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5164
    listOfViewClasses := (TreeItem newAsTreeFromSmalltalkClass: (Smalltalk at:#SimpleView)).
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5165
    selectionOfViewClass := listOfViewClasses asValue.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5166
    selectionOfViewClass onChangeSend:#updatePreviewFontLabel to: self.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5167
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  5168
    self aspects
1411
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5169
        at: #listOfViewClasses           put: listOfViewClasses;
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5170
        at: #selectionOfViewClass        put: selectionOfViewClass
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5171
!
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5172
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5173
createAspectsForKeyboardSettings
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5174
    "create aspects for keyboard settings"
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5175
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5176
    |mappings listOfRawKeys listOfFunctions list1 list2 selectionForwarder macroForwarder keyMacroText|
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5177
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5178
    mappings := Screen current keyboardMap.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5179
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5180
    listOfRawKeys := (mappings keys asArray collect:[:key | key asString]) sort.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5181
    listOfFunctions := (mappings values asSet asArray collect:[:key | key asString]) sort.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5182
    keyMacroText := ValueHolder new.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5183
    selectionForwarder := Plug new.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5184
    selectionForwarder respondTo:#showFunction
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5185
    with:
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5186
    [
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5187
        |raw|
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5188
        raw := list1 selection.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5189
        list2 retractInterestsFor:selectionForwarder.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5190
        list2 selection:(mappings at:raw asSymbol) asString.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5191
        list2 onChangeSend:#showRawKey to:selectionForwarder.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5192
    ].
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5193
    selectionForwarder respondTo:#showRawKey
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5194
    with:
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5195
    [
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5196
        |f raw|
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5197
        f := list2 selection.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5198
        list1 retractInterestsFor:selectionForwarder.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5199
        raw := mappings keyAtValue:f asString.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5200
        raw isNil 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5201
        ifTrue:
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5202
        [
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5203
            raw := mappings keyAtValue:f first.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5204
            raw isNil ifTrue: [raw := mappings keyAtValue:f asSymbol]
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5205
        ].
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5206
        list1 selection:raw.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5207
        list1 onChangeSend:#showFunction to:selectionForwarder.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5208
    ].
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5209
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5210
    macroForwarder := 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5211
    [
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5212
        |f macro indent|
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5213
        f := list2 selection.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5214
        (f startsWith:'Cmd') ifTrue:[f := f copyFrom:4].
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5215
        macro := FunctionKeySequences at:(f asSymbol) ifAbsent:nil.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5216
        macro notNil 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5217
        ifTrue:
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5218
        [
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5219
            macro := macro asStringCollection.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5220
            indent := macro
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5221
                inject:99999 into:
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5222
                [:min :element|
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5223
                     |stripped|
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5224
                     stripped := element withoutLeadingSeparators.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5225
                     stripped size == 0 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5226
                        ifTrue:[min] 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5227
                        ifFalse:[min min:(element size - stripped size)]
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5228
                ].
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5229
            indent ~~ 0 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5230
            ifTrue:
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5231
            [
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5232
                macro := macro collect:
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5233
                [:line | 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5234
                     line size > indent 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5235
                        ifTrue:[line copyFrom:indent+1] 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5236
                        ifFalse:[line]
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5237
                ]
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5238
            ]                        
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5239
        ].
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5240
        keyMacroText value:macro
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5241
    ].
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5242
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5243
    list1 := SelectionInList with:listOfRawKeys.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5244
    list1 onChangeSend:#showFunction to:selectionForwarder.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5245
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5246
    list2 := SelectionInList with:listOfFunctions.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5247
    list2 onChangeSend:#showRawKey to:selectionForwarder.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5248
    list2 onChangeSend:#value to:macroForwarder.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5249
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  5250
    self aspects 
1411
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5251
        at: #listOfRawKeys   put: list1;
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5252
        at: #listOfFunctions put: list2;
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5253
        at: #keyMacroText    put: keyMacroText;
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5254
        at: #help            put: [self showDocumentation:'Launcher/keyboardSetting.html'];
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5255
        at: #dismiss         put: []
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5256
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5257
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5258
!
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5259
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5260
createAspectsForLanguageSettings 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5261
    "create aspects for language settings"
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5262
1491
fa75bbd0aee9 removed unused locals
Claus Gittinger <cg@exept.de>
parents: 1489
diff changeset
  5263
    |listOfLanguages translatedLanguages switch languageList flags|
1411
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5264
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5265
    listOfLanguages := resources at:'LIST_OF_OFFERED_LANGUAGES' default:#('default').
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5266
    listOfLanguages := listOfLanguages asOrderedCollection.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5267
    translatedLanguages := listOfLanguages collect:[:lang | |item|
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5268
                                        item := resources at:lang.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5269
                                        item isString ifTrue:[
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5270
                                            item
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5271
                                        ] ifFalse:[
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5272
                                            item at:1
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5273
                                        ]
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5274
                                ].
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5275
    flags := listOfLanguages collect:[:lang | |item|
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5276
                                        item := resources at:lang.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5277
                                        item isArray ifTrue:[
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5278
                                            item at:2
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5279
                                        ] ifFalse:[
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5280
                                            nil
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5281
                                        ]
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5282
                                ].
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5283
    flags := flags collect:[:nm | nm notNil ifTrue:[Image fromFile:nm] ifFalse:[nil]].
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5284
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5285
    languageList := translatedLanguages with:flags collect:[:lang :flag |
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5286
                                LabelAndIcon icon:flag string:lang.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5287
                        ].
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5288
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  5289
    self aspects
1411
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5290
        at: #listOfLanguages put: languageList asValue;
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5291
        at: #selectionOflanguage put: Language asValue;
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5292
        at: #apply put: [:newLanguage |
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5293
        self withWaitCursorDo:[
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5294
            |fontPref idx language oldLanguage enc answer matchingFonts|
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5295
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5296
            idx := translatedLanguages indexOf:newLanguage withoutSeparators.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5297
            idx ~~ 0 ifTrue:[
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5298
                language := listOfLanguages at:idx
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5299
            ] ifFalse:[
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5300
                language := newLanguage
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5301
            ].
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5302
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5303
            "/ check if the new language needs a differently encoded font;
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5304
            "/ ask user to switch font and allow cancellation.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5305
            "/ Otherwise, you are left with unreadable menu & button items ...
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5306
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5307
            oldLanguage := Smalltalk language.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5308
            Smalltalk language:language asSymbol.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5309
            ResourcePack flushCachedResourcePacks.
1465
4e73891eba4a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1462
diff changeset
  5310
            fontPref := self class classResources at:'PREFERRED_FONT_ENCODING' default:'iso8859*'.
1411
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5311
            Smalltalk language:oldLanguage.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5312
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5313
            switch := true.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5314
            enc := MenuView defaultFont encoding.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5315
            (fontPref match:enc) ifFalse:[
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5316
                "/ look if there is one at all.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5317
                matchingFonts := Screen current listOfAvailableFonts select:[:f | fontPref match:f encoding].
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5318
                matchingFonts size == 0 ifTrue:[
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5319
                    (Dialog 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5320
                        confirm:(resources 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5321
                                    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
  5322
                                      with:fontPref) withCRs)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5323
                    ifFalse:[
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5324
                        switch := false
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5325
                    ]
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5326
                ] ifFalse:[
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5327
                    answer := Dialog 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5328
                                confirmWithCancel:(resources 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5329
                                                        string:'menu font is not %1-encoded.\\Change it ?'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5330
                                                        with:fontPref) withCRs
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5331
                                           labels:(resources
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5332
                                                        array:#('cancel' 'no' 'yes'))
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5333
                                           default:3.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5334
                    answer isNil ifTrue:[
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5335
                        switch := false
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5336
                    ] ifFalse:[
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5337
                        answer ifTrue:[
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5338
                            switch := (self fontBoxForEncoding:fontPref)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5339
                        ]
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5340
                    ].
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5341
                ].
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5342
            ].
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5343
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5344
            switch ifTrue:[
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5345
                transcript showCR:'change language to ' , newLanguage , ' ...'.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5346
                Smalltalk language:language asSymbol.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5347
                ResourcePack flushCachedResourcePacks
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5348
            ].
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5349
        ].
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5350
        switch ifTrue:[
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5351
            self reOpen.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5352
            DebugView newDebugger.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5353
        ]
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5354
    ].
1465
4e73891eba4a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1462
diff changeset
  5355
4e73891eba4a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1462
diff changeset
  5356
    "Modified: / 6.2.1998 / 00:00:58 / cg"
1411
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5357
!
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5358
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5359
createAspectsForMemorySettings
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5360
    "create aspects for memory settings"
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5361
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5362
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5363
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5364
!
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5365
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5366
createAspectsForMessagesSettings
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5367
    "create aspects for messages settings"
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5368
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5369
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5370
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5371
!
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5372
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5373
createAspectsForMiscSettings
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5374
    "create aspects for misc settings"
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5375
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5376
    |shadowsUnderPopupViews boxesReturnsFocus viewsCatchFocus hostnameInWindowLabels showAccelerators|
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5377
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5378
    shadowsUnderPopupViews := PopUpView shadows asValue.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5379
    shadowsUnderPopupViews onChangeSend: #value  to: [PopUpView shadows: shadowsUnderPopupViews value].
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5380
    boxesReturnsFocus := StandardSystemView returnFocusWhenClosingModalBoxes asValue.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5381
    boxesReturnsFocus onChangeSend: #value  to: [StandardSystemView returnFocusWhenClosingModalBoxes: boxesReturnsFocus value].
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5382
    viewsCatchFocus := StandardSystemView takeFocusWhenMapped asValue.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5383
    viewsCatchFocus onChangeSend: #value  to: [StandardSystemView takeFocusWhenMapped: viewsCatchFocus value].
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5384
    hostnameInWindowLabels := StandardSystemView includeHostNameInLabel asValue.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5385
    hostnameInWindowLabels onChangeSend: #value  to: 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5386
    [
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5387
        hostnameInWindowLabels value ~~ StandardSystemView includeHostNameInLabel 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5388
        ifTrue:
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5389
        [ 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5390
            StandardSystemView includeHostNameInLabel:hostnameInWindowLabels value.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5391
            Screen allScreens do:
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5392
            [:aDisplay|
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5393
                aDisplay allViewsDo:
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5394
                [:aView|
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5395
                    |l|
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5396
                    aView isTopView ifTrue: [l := aView label.aView label:(l , ' '); label:l]
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5397
                ]
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5398
            ]
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5399
        ] 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5400
    ].
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5401
    showAccelerators := MenuView showAcceleratorKeys asValue.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5402
    showAccelerators onChangeSend: #value  to: [MenuView showAcceleratorKeys: showAccelerators value].
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5403
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  5404
    self aspects
1411
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5405
        at: #shadowsUnderPopupViews put: shadowsUnderPopupViews;
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5406
        at: #boxesReturnsFocus      put: boxesReturnsFocus;
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5407
        at: #viewsCatchFocus        put: viewsCatchFocus;
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5408
        at: #hostnameInWindowLabels put: hostnameInWindowLabels;
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5409
        at: #showAccelerators       put: showAccelerators
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5410
    
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5411
!
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5412
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5413
createAspectsForPrinterSettings
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5414
    "create aspects for printer settings"
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5415
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5416
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5417
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5418
!
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5419
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5420
createAspectsForScreenSettings
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5421
    "create aspects for screen settings"
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5422
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5423
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5424
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5425
!
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5426
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5427
createAspectsForSourcesSettings
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5428
    "create aspects for sources settings"
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5429
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5430
    |rememberChangedMethods logCompilesInChangesFile logDoItsInChangesFile 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5431
    sourceCodeFromSourceCodeManagement hasSourceCodeManager manager directoryOfSourceCodeCache
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5432
    nameOfChangesFile directoryOfRepository useLocalSourceCode|
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5433
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5434
    rememberChangedMethods := Class methodHistory notNil asValue.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5435
    rememberChangedMethods onChangeSend: #value to: [Class keepMethodHistory: rememberChangedMethods value].
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5436
    logCompilesInChangesFile := Class updatingChanges asValue.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5437
    logCompilesInChangesFile onChangeSend: #value to: [Class updateChanges: logCompilesInChangesFile value].
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5438
    logDoItsInChangesFile := Smalltalk logDoits asValue.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5439
    logDoItsInChangesFile onChangeSend: #value to: [Smalltalk logDoits: logDoItsInChangesFile value].
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5440
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5441
    nameOfChangesFile := ObjectMemory nameForChanges asValue.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5442
    nameOfChangesFile onChangeSend: #value to: [ObjectMemory nameForChanges:nameOfChangesFile value].
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5443
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5444
    hasSourceCodeManager := AbstractSourceCodeManager notNil and:[AbstractSourceCodeManager isLoaded].
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5445
    sourceCodeFromSourceCodeManagement := (hasSourceCodeManager and: [(manager := Smalltalk at:#SourceCodeManager) notNil]) asValue.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5446
    sourceCodeFromSourceCodeManagement onChangeSend: #value to: 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5447
    [sourceCodeFromSourceCodeManagement value 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5448
        ifTrue:  [Smalltalk at:#SourceCodeManager put: AbstractSourceCodeManager defaultManager]
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5449
        ifFalse: [Smalltalk at:#SourceCodeManager put: nil]].
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5450
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5451
    manager notNil 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5452
    ifTrue:
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5453
    [   
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5454
        |repository|
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5455
        repository := manager repositoryName.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5456
        repository notNil ifTrue:[
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5457
            directoryOfRepository := repository asValue
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5458
        ] ifFalse:[
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5459
            directoryOfRepository := '' asValue
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5460
        ].
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5461
    ].
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5462
    directoryOfRepository onChangeSend: #value to: [manager initializeForRepository: directoryOfRepository value].
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5463
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5464
    directoryOfSourceCodeCache := AbstractSourceCodeManager cacheDirectoryName.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5465
    directoryOfSourceCodeCache onChangeSend: #value to: [].
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5466
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5467
    useLocalSourceCode := Class tryLocalSourceFirst asValue.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5468
    useLocalSourceCode onChangeSend: #value to: [Class tryLocalSourceFirst: useLocalSourceCode value].
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5469
    
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  5470
    self aspects
1411
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5471
        at: #rememberChangedMethods put: rememberChangedMethods;
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5472
        at: #logCompilesInChangesFile put: logCompilesInChangesFile;
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5473
        at: #logDoItsInChangesFile put: logDoItsInChangesFile;
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5474
        at: #hasSourceCodeManager  put: hasSourceCodeManager asValue;
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5475
        at: #nameOfChangesFile put: nameOfChangesFile;
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5476
        at: #sourceCodeFromSourceCodeManagement put: sourceCodeFromSourceCodeManagement;
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5477
        at: #directoryOfRepository put: directoryOfRepository;
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5478
        at: #directoryOfSourceCodeCache put: directoryOfSourceCodeCache;
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5479
        at: #useLocalSourceCode put: useLocalSourceCode
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5480
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5481
!
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5482
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5483
createAspectsForViewsSettings
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5484
    "open a dialog on viewStyle related settings"
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5485
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5486
    |listOfStyles resourceDir dir listOfViewStyles selection infoLabel infoForwarder someRsrcFile|
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5487
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5488
    "search resources directory for a list of .style files ..."
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5489
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5490
    someRsrcFile := Smalltalk getSystemFileName:('resources' asFilename constructString:'normal.style').
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5491
    someRsrcFile notNil 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5492
        ifTrue:[resourceDir := someRsrcFile asFilename directoryName] 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5493
        ifFalse:[resourceDir := Smalltalk getSystemFileName:'resources'].
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5494
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5495
    resourceDir isNil ifTrue:[self warn:'no styles found (missing ''resources'' directory)'. ^ self].
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5496
    dir := resourceDir asFilename directoryContents.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5497
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5498
    listOfStyles := dir select:[:aFileName | aFileName asFilename hasSuffix:'style'].
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5499
    listOfStyles := listOfStyles collect:[:aFileName | aFileName asFilename withoutSuffix name].
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5500
    Filename isCaseSensitive 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5501
    ifFalse:
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5502
    [
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5503
        listOfStyles := listOfStyles collect:[:aStyleName | aStyleName asLowercase].
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5504
    ].
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5505
    listOfStyles sort.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5506
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5507
    infoLabel := ValueHolder with: View defaultStyle.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5508
    selection := ValueHolder with: (listOfStyles indexOf: View defaultStyle).
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5509
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5510
    infoForwarder := 
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5511
    [
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5512
        |nm sheet comment|
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5513
        nm := listOfViewStyles selection.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5514
        sheet := ViewStyle fromFile:(nm , '.style').
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5515
        comment := sheet at:#comment ifAbsent:''.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5516
        infoLabel value:comment withCRs asStringCollection asString trimBlanks
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5517
    ].
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5518
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5519
    listOfViewStyles := SelectionInList with:listOfStyles.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5520
    listOfViewStyles onChangeSend:#value to:infoForwarder.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5521
    listOfViewStyles selectionIndexHolder: selection.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5522
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  5523
    self aspects
1411
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5524
        at: #listOfViewStyles put: listOfViewStyles;
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5525
        at: #infoLabel        put: infoLabel;
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5526
        at: #apply            put: [self changeViewStyleTo: (listOfStyles at: selection value)]
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5527
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5528
!
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5529
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5530
doForCurrentSettings: aDoKey
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5531
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  5532
    (self aspects at: aDoKey asSymbol ifAbsent: [^self warn: 'No action found for ', aDoKey, '!!']) value
1411
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5533
!
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5534
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5535
openSettingsFor: aSetting
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5536
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  5537
    self aspects at: #settingsCanvas put: SubCanvas new.
1411
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5538
    aSetting = 'StyleSettings' ifTrue: [self selectionOfSettings value: 'Views'].
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5539
    aSetting = 'SystemSettings' ifTrue: [self selectionOfSettings value: 'Sources'].
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5540
    super openDialogInterface: (#windowSpecFor, aSetting) asSymbol.
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  5541
    aspects := nil.
1411
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5542
    self removeAllTemporalViews.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5543
    self builder bindings removeKey: #selectionOfSettings
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5544
!
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5545
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5546
settingsSelection
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5547
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5548
    ^settingsSelection
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5549
!
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5550
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5551
settingsSelection: aSettingsSelection
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5552
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5553
    settingsSelection := aSettingsSelection.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5554
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5555
    self perform: ('createAspectsFor', settingsSelection, 'Settings') asSymbol.
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  5556
    (self aspects at: #settingsCanvas) client: self spec: ('windowSpecOf', settingsSelection, 'Settings') asSymbol.
1411
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5557
!
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5558
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5559
updatePreviewFontLabel
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5560
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5561
    |viewClassFont viewClass viewClassName|
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  5562
    viewClassFont := (viewClass := Smalltalk at: (self aspects at: #selectionOfViewClass) value name ifAbsent: [SimpleView]) defaultFont.
1411
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5563
    (self builder componentAt: #fontFamilyLabel_Temporal)   label: 'Family:  '  , viewClassFont family asBoldText.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5564
    (self builder componentAt: #fontFaceLabel_Temporal)     label: 'Face:  '    , viewClassFont face asBoldText.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5565
    (self builder componentAt: #fontStyleLabel_Temporal)    label: 'Style:  '   , viewClassFont style asBoldText.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5566
    (self builder componentAt: #fontSizeLabel_Temporal)     label: 'Size:  '    , viewClassFont size printString asBoldText.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5567
    (self builder componentAt: #fontEncodingLabel_Temporal) label: 'Encoding:  ', viewClassFont encoding asBoldText.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5568
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5569
     (viewClassName := viewClass name) size > 10
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5570
        ifTrue:  [viewClassName := (viewClassName copyFrom: 1 to: 10) asBoldText, '...']
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5571
        ifFalse: [viewClassName := viewClassName asBoldText].
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5572
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5573
    (self builder componentAt: #changeFontButton_Temporal)  
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5574
        sizeFixed: true;
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5575
        label: 'Change Font of ', viewClassName.
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5576
    
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5577
    (self builder componentAt: #previewFontLabel_Temporal)
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5578
         font: viewClassFont;
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5579
         label: 'The quick brown fox jumps over the lazy dog
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5580
1234567890!!@#$%^&*(){}[]:"~;,./<>?äöüÄÖÜßéèêÅ©'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5581
! !
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5582
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  5583
!NewLauncher methodsFor:'actions - tools'!
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5584
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5585
compressingGarbageCollect
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5586
    "perform a compressing garbageCollect"
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5587
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5588
    ObjectMemory verboseGarbageCollect
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5589
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5590
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5591
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5592
deIconifyAllWindows
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5593
    |setOfViews|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5594
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5595
    setOfViews := Project current views asIdentitySet.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5596
    setOfViews addAll:(Project defaultProject views).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5597
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5598
    setOfViews do:[:aTopView |
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5599
        aTopView device == Screen current ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5600
            aTopView expand
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5601
        ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5602
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5603
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5604
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5605
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5606
findAndDestroyWindow
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5607
    "find a window (by name) and destroy it"
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5608
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5609
    |v|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5610
    v := self findWindow:'select view to close:'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5611
    v notNil ifTrue:[v destroy]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5612
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5613
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5614
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5615
findAndRaiseWindow
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5616
    "find a window (by name) and raise it"
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5617
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5618
    |v|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5619
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5620
    v := self findWindow:'select view to raise deiconified:'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5621
    v notNil ifTrue:[v raiseDeiconified]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5622
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5623
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5624
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5625
fullScreenHardcopy
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5626
    "after a second (to allow redraw of views under menu ...),
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5627
     save the contents of the whole screen."
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5628
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5629
    Processor 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5630
        addTimedBlock:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5631
                        self 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5632
                            saveScreenImage:(Image fromScreen) 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5633
                            defaultName:'screen'
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5634
                      ] 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5635
        afterSeconds:1
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5636
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5637
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5638
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5639
garbageCollect
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5640
    "perform a non-compressing garbageCollect"
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5641
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5642
    ObjectMemory reclaimSymbols
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5643
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5644
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5645
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5646
iconifyAllWindows
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5647
    |setOfViews|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5648
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5649
    setOfViews := Project current views asIdentitySet.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5650
    setOfViews addAll:(Project defaultProject views).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5651
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5652
    setOfViews do:[:aTopView |
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5653
        aTopView device == Screen current ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5654
            aTopView collapse
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5655
        ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5656
    ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5657
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5658
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5659
1476
ddcfe70b729e added optional reInit-java item
Claus Gittinger <cg@exept.de>
parents: 1475
diff changeset
  5660
initJavaVM
ddcfe70b729e added optional reInit-java item
Claus Gittinger <cg@exept.de>
parents: 1475
diff changeset
  5661
    JavaVM initializeVM
ddcfe70b729e added optional reInit-java item
Claus Gittinger <cg@exept.de>
parents: 1475
diff changeset
  5662
ddcfe70b729e added optional reInit-java item
Claus Gittinger <cg@exept.de>
parents: 1475
diff changeset
  5663
    "Created: / 9.2.1998 / 12:06:07 / cg"
ddcfe70b729e added optional reInit-java item
Claus Gittinger <cg@exept.de>
parents: 1475
diff changeset
  5664
!
ddcfe70b729e added optional reInit-java item
Claus Gittinger <cg@exept.de>
parents: 1475
diff changeset
  5665
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5666
pickAView
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5667
    "let user pick a view and return it"
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5668
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5669
    |v|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5670
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5671
    (Delay forSeconds:1) wait.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5672
    v := Screen current viewFromUser.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5673
    v isNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5674
        self warn:'Sorry, this is not a smalltalk view'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5675
        ^ nil
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5676
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5677
    ^ v
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5678
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5679
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5680
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5681
screenHardcopy
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5682
    "after a second (to allow redraw of views under menu ...),
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5683
     let user specify a rectangular area on the screen
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5684
     and save its contents."
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5685
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5686
    |area|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5687
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5688
    Processor 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5689
        addTimedBlock:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5690
                        [Screen current leftButtonPressed] whileTrue:[Processor yield].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5691
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5692
                        area := Rectangle fromUser.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5693
                        (area width > 0 and:[area height > 0]) ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5694
                            self saveScreenImage:(Image fromScreen:area) defaultName:'hardcopy'
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5695
                        ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5696
                      ] 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5697
        afterSeconds:1
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5698
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5699
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5700
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5701
startLatencyMonitor
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5702
    "open an interruptLatencyMonitor view"
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5703
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5704
    InterruptLatencyMonitor notNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5705
        Autoload autoloadFailedSignal catch:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5706
            InterruptLatencyMonitor autoload.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5707
        ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5708
        InterruptLatencyMonitor isLoaded ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5709
            InterruptLatencyMonitor open.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5710
            ^ self.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5711
        ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5712
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5713
    self warn:'Sorry - the irq latency monitor is only available
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5714
in the full commercial release'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5715
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5716
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5717
1460
f58b047b892c open new launchers at old position;
Claus Gittinger <cg@exept.de>
parents: 1457
diff changeset
  5718
startOldLauncher
f58b047b892c open new launchers at old position;
Claus Gittinger <cg@exept.de>
parents: 1457
diff changeset
  5719
    Launcher openAt:(self window origin)
f58b047b892c open new launchers at old position;
Claus Gittinger <cg@exept.de>
parents: 1457
diff changeset
  5720
f58b047b892c open new launchers at old position;
Claus Gittinger <cg@exept.de>
parents: 1457
diff changeset
  5721
    "Created: / 5.2.1998 / 19:33:41 / cg"
f58b047b892c open new launchers at old position;
Claus Gittinger <cg@exept.de>
parents: 1457
diff changeset
  5722
!
f58b047b892c open new launchers at old position;
Claus Gittinger <cg@exept.de>
parents: 1457
diff changeset
  5723
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5724
startStopEventTrace
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5725
    "start/stop event tracing for a particular view"
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5726
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5727
    |v wg|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5728
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5729
    v := Screen current viewFromUser.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5730
    v notNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5731
        v := v topView.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5732
        wg := v windowGroup.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5733
        wg notNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5734
            "/
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5735
            "/ toggle eventTrace in its windowGroup
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5736
            "/
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5737
            wg traceEvents:(wg preEventHook isNil)
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5738
        ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5739
    ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5740
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5741
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5742
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5743
startWindowTreeView
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5744
    "open a windowTree view (on a topView)"
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5745
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5746
    |v|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5747
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5748
    v := self pickAView.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5749
    v notNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5750
        WindowTreeView openOn:v topView
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5751
    ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5752
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5753
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5754
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5755
viewDestroy
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5756
    "let user pick a view and destroy it.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5757
     Even allow destroying non-smalltalk views
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5758
     (also for views which I forgot due to some error)"
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5759
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5760
    |device v id i c|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5761
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5762
    (Delay forSeconds:1) wait.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5763
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5764
    device := Screen current.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5765
    i := Image fromFile:'bitmaps/xpmBitmaps/cursors/cross2.xpm'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5766
    i isNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5767
        c := Cursor crossHair
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5768
    ] ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5769
        c := Cursor fromImage:i
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5770
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5771
    id := device viewIdFromPoint:(device pointFromUserShowing:c).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5772
    (v := device viewFromId:id) notNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5773
        v topView destroy.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5774
        ^ self
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5775
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5776
    id = device rootView id ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5777
        ^ self
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5778
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5779
    (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
  5780
    ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5781
        device destroyView:nil withId:id
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5782
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5783
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5784
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5785
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5786
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5787
viewHardcopy
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5788
    "after a second (to allow redraw of views under menu ...),
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5789
     let user specify a view and save its contents."
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5790
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5791
    Processor 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5792
        addTimedBlock:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5793
                        |v|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5794
                        (v := Screen current viewFromUser) notNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5795
                            self saveScreenImage:(Image fromView:(v topView)) defaultName:'hardcopy'
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5796
                        ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5797
                      ] 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5798
        afterSeconds:1
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5799
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5800
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5801
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5802
viewInspect
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5803
    "let user pick a view and inspect it. Only smalltalk views are allowed"
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5804
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5805
    |v|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5806
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5807
    (v := self pickAView) notNil 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5808
    ifTrue:
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5809
    [
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5810
        v inspect
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5811
    ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5812
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5813
! !
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5814
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5815
!NewLauncher methodsFor:'aspects'!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5816
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  5817
aspectFor:aKey
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  5818
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  5819
    ^self aspects at: aKey ifAbsent: [super aspectFor:aKey]
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  5820
!
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  5821
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5822
enableDangerousMenuItemsInRemoteLauncher
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5823
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5824
    |holder|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5825
    (holder := builder bindingAt:#enableDangerousMenuItemsInRemoteLauncher) isNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5826
        builder aspectAt:#enableDangerousMenuItemsInRemoteLauncher put:(holder :=  true asValue).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5827
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5828
    ^ holder
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5829
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5830
1476
ddcfe70b729e added optional reInit-java item
Claus Gittinger <cg@exept.de>
parents: 1475
diff changeset
  5831
javaSupportPresent
ddcfe70b729e added optional reInit-java item
Claus Gittinger <cg@exept.de>
parents: 1475
diff changeset
  5832
    ^ (JavaVM notNil and:[JavaVM isBehavior and:[JavaVM isLoaded]]) asValue
ddcfe70b729e added optional reInit-java item
Claus Gittinger <cg@exept.de>
parents: 1475
diff changeset
  5833
ddcfe70b729e added optional reInit-java item
Claus Gittinger <cg@exept.de>
parents: 1475
diff changeset
  5834
    "Created: / 13.2.1998 / 14:25:59 / cg"
ddcfe70b729e added optional reInit-java item
Claus Gittinger <cg@exept.de>
parents: 1475
diff changeset
  5835
    "Modified: / 13.2.1998 / 14:26:31 / cg"
ddcfe70b729e added optional reInit-java item
Claus Gittinger <cg@exept.de>
parents: 1475
diff changeset
  5836
!
ddcfe70b729e added optional reInit-java item
Claus Gittinger <cg@exept.de>
parents: 1475
diff changeset
  5837
1411
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5838
selectionOfSettings
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5839
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5840
    |holder|
1411
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5841
    (holder := builder bindingAt:#selectionOfSettings) isNil ifTrue:[
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5842
        builder aspectAt:#selectionOfSettings put:(holder :=  
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5843
        AspectAdaptor new subject: self; forAspect: #settingsSelection)
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5844
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5845
    ^ holder
1411
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5846
! !
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  5847
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5848
!NewLauncher methodsFor:'change & update'!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5849
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5850
update:something with:aParameter from:changedObject
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5851
    "care for project changes & update my infoView"
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5852
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5853
    ((something == #currentProject) or:[changedObject == Project]) ifTrue: [self updateInfo]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5854
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5855
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5856
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5857
updateInfo
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5858
    "update the infoView from the current project"
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5859
1420
fadb401ebd9f tool bar enlarged for larger icons
tz
parents: 1417
diff changeset
  5860
    |project projectName projectDir packageName defNameSpace msg args projectInfo|
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5861
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5862
    (Project isNil or:[(project := Project current) isNil]) ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5863
        projectName := '* none *'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5864
        projectDir := '.'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5865
        packageName := '* none *'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5866
    ] ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5867
        projectName := project name.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5868
        projectDir := project directory.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5869
        packageName := project packageName.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5870
        defNameSpace := project defaultNameSpace.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5871
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5872
    defNameSpace isNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5873
        defNameSpace := Smalltalk.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5874
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5875
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5876
    defNameSpace == Smalltalk ifTrue:[
1449
575d815f07db help menu item aligned to the right
tz
parents: 1447
diff changeset
  5877
        msg := 'Project: ''%1'' fileOut to: ''%3'' package: ''%2'''.
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5878
        args := Array 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5879
                    with:projectName
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5880
                    with:packageName 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5881
                    with:(projectDir contractTo:30).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5882
    ] ifFalse:[
1449
575d815f07db help menu item aligned to the right
tz
parents: 1447
diff changeset
  5883
        msg := 'Project: ''%1'' fileOut to: ''%3'' package: ''%2''  nameSpace: %4'.
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5884
        args := Array 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5885
                        with:projectName
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5886
                        with:packageName 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5887
                        with:(projectDir contractTo:30)
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5888
                        with:defNameSpace name.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5889
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5890
1420
fadb401ebd9f tool bar enlarged for larger icons
tz
parents: 1417
diff changeset
  5891
    self valueOfInfoLabel value:(projectInfo := resources string:msg withArgs:args).
fadb401ebd9f tool bar enlarged for larger icons
tz
parents: 1417
diff changeset
  5892
    ^projectInfo
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5893
! !
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5894
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  5895
!NewLauncher methodsFor:'help'!
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  5896
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  5897
defaultInfoLabel
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  5898
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  5899
    ^self updateInfo
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  5900
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  5901
! !
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  5902
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5903
!NewLauncher methodsFor:'private'!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5904
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5905
changeViewStyleTo:newStyle
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5906
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5907
    newStyle notNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5908
        self withWaitCursorDo:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5909
            transcript showCR:'change style to ' , newStyle , ' ...'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5910
            View defaultStyle:newStyle asSymbol.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5911
        ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5912
        self reOpen
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5913
    ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5914
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5915
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5916
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5917
findWindow:title
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5918
    "a helper for find & destroy and find & raise operations;
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5919
     let user choose a view and return it; return nil on cancel"
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5920
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5921
    |knownTopViews nameList box|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5922
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5923
    knownTopViews := IdentitySet new.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5924
    Screen allScreens do:[:aScreen |
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5925
        aScreen knownViews do:[:aView |
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5926
            |top showIt wg|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5927
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5928
            aView notNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5929
                top := aView topView.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5930
                (top isKindOf:DebugView) ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5931
                    "/ although modal, show it.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5932
                    showIt := top realized
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5933
                ] ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5934
                    wg := top windowGroup.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5935
                    showIt := (wg notNil and:[wg isModal not]).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5936
                ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5937
                showIt ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5938
                    knownTopViews add:top
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5939
                ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5940
            ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5941
        ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5942
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5943
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5944
    knownTopViews := knownTopViews asOrderedCollection.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5945
    knownTopViews sort:[:v1 :v2 | |l1 l2|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5946
                                l1 := v1 label ? 'aView'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5947
                                l2 := v2 label ? 'aView'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5948
                                l1 < l2
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5949
                       ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5950
    nameList := knownTopViews collect:[:v | 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5951
                                        |isDead wg p l|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5952
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5953
                                        l := v label ? 'aView'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5954
                                        ((wg := v windowGroup) notNil
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5955
                                        and:[(p := wg process) notNil
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5956
                                        and:[p state ~~ #dead]]) ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5957
                                            l  
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5958
                                        ] ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5959
                                            l , ' (dead ?)'
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5960
                                        ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5961
                                      ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5962
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5963
    box := ListSelectionBox new.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5964
    box noEnterField.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5965
    box list:nameList.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5966
    box label:(resources string:'view selection').
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5967
    box title:(resources string:title) withCRs.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5968
    box action:[:selection |
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5969
        |v|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5970
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5971
        v := knownTopViews at:box selectionIndex.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5972
        box destroy.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5973
        ^ v
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5974
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5975
    box extent:400@300.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5976
    box showAtPointer.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5977
    ^ nil
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5978
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5979
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5980
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5981
openApplication: className
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5982
     "open an application, given by the classe name."
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5983
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5984
    self openApplication:className nameSpace:nil
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5985
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5986
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5987
openApplication:className nameSpace:aNameSpace
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5988
    "open some application, given the classes name.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5989
     Look for it in Smalltalk and the given nameSpace"
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5990
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5991
    self openApplication:className nameSpace:aNameSpace with:#open
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5992
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5993
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5994
openApplication:className nameSpace:aNameSpace with:aSelector
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5995
    "open some application, given the classes name.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5996
     Look for it in Smalltalk and the given nameSpace"
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5997
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5998
    |cls|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5999
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6000
    cls := Smalltalk at:className asSymbol.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6001
    cls isNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6002
        "/ look if its in the nameSpace
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6003
        aNameSpace notNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6004
            cls := aNameSpace at:className asSymbol
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6005
        ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6006
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6007
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6008
    cls isNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6009
        self warn:(resources string:'Sorry, the %1 class is not available.' with:className).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6010
    ] ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6011
        Autoload autoloadFailedSignal handle:[:ex |
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6012
            self warn:(resources string:'Sorry, the %1 class seems to be not available.' with:className)
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6013
        ] do:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6014
            self withWaitCursorDo:[cls perform:aSelector]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6015
        ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6016
    ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6017
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6018
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6019
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6020
reOpen
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6021
    "reopen a new launcher.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6022
     for now (since style & language settings currently do
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6023
     not affect living views ...)"
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6024
1460
f58b047b892c open new launchers at old position;
Claus Gittinger <cg@exept.de>
parents: 1457
diff changeset
  6025
    |contents builder newLauncher|
f58b047b892c open new launchers at old position;
Claus Gittinger <cg@exept.de>
parents: 1457
diff changeset
  6026
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6027
    contents := transcript endEntry; list.
1460
f58b047b892c open new launchers at old position;
Claus Gittinger <cg@exept.de>
parents: 1457
diff changeset
  6028
    builder := self class openAt:(self window origin).
f58b047b892c open new launchers at old position;
Claus Gittinger <cg@exept.de>
parents: 1457
diff changeset
  6029
    builder window waitUntilVisible.
f58b047b892c open new launchers at old position;
Claus Gittinger <cg@exept.de>
parents: 1457
diff changeset
  6030
    newLauncher := builder application.
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6031
    newLauncher transcript list:contents; hideCursor; scrollToBottom; cursorToEnd; showCursor.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6032
    DebugView newDebugger.
1460
f58b047b892c open new launchers at old position;
Claus Gittinger <cg@exept.de>
parents: 1457
diff changeset
  6033
f58b047b892c open new launchers at old position;
Claus Gittinger <cg@exept.de>
parents: 1457
diff changeset
  6034
    "Modified: / 5.2.1998 / 20:08:31 / cg"
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6035
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6036
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6037
saveAllViews
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6038
    "tell each topview that we are going to terminate and give it chance
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6039
     to save its contents."
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6040
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6041
    ObjectMemory changed:#aboutToExit
1437
f535d2d11128 translate labels
Claus Gittinger <cg@exept.de>
parents: 1436
diff changeset
  6042
!
f535d2d11128 translate labels
Claus Gittinger <cg@exept.de>
parents: 1436
diff changeset
  6043
f535d2d11128 translate labels
Claus Gittinger <cg@exept.de>
parents: 1436
diff changeset
  6044
saveScreenImage:anImage defaultName:defaultName
f535d2d11128 translate labels
Claus Gittinger <cg@exept.de>
parents: 1436
diff changeset
  6045
    "save an image into a file 
f535d2d11128 translate labels
Claus Gittinger <cg@exept.de>
parents: 1436
diff changeset
  6046
     - ask user for filename using a fileSelectionBox."
f535d2d11128 translate labels
Claus Gittinger <cg@exept.de>
parents: 1436
diff changeset
  6047
f535d2d11128 translate labels
Claus Gittinger <cg@exept.de>
parents: 1436
diff changeset
  6048
    |fileName|
f535d2d11128 translate labels
Claus Gittinger <cg@exept.de>
parents: 1436
diff changeset
  6049
f535d2d11128 translate labels
Claus Gittinger <cg@exept.de>
parents: 1436
diff changeset
  6050
    fileName := Dialog
f535d2d11128 translate labels
Claus Gittinger <cg@exept.de>
parents: 1436
diff changeset
  6051
                    requestFileName:(resources string:'save image in:')
f535d2d11128 translate labels
Claus Gittinger <cg@exept.de>
parents: 1436
diff changeset
  6052
                    default:(defaultName , '.tiff')
f535d2d11128 translate labels
Claus Gittinger <cg@exept.de>
parents: 1436
diff changeset
  6053
                    ok:(resources string:'save')
f535d2d11128 translate labels
Claus Gittinger <cg@exept.de>
parents: 1436
diff changeset
  6054
                    abort:(resources string:'cancel')
f535d2d11128 translate labels
Claus Gittinger <cg@exept.de>
parents: 1436
diff changeset
  6055
                    pattern:'*.tiff'.
f535d2d11128 translate labels
Claus Gittinger <cg@exept.de>
parents: 1436
diff changeset
  6056
f535d2d11128 translate labels
Claus Gittinger <cg@exept.de>
parents: 1436
diff changeset
  6057
    fileName notNil ifTrue:[
f535d2d11128 translate labels
Claus Gittinger <cg@exept.de>
parents: 1436
diff changeset
  6058
        anImage saveOn:fileName
f535d2d11128 translate labels
Claus Gittinger <cg@exept.de>
parents: 1436
diff changeset
  6059
    ].
f535d2d11128 translate labels
Claus Gittinger <cg@exept.de>
parents: 1436
diff changeset
  6060
f535d2d11128 translate labels
Claus Gittinger <cg@exept.de>
parents: 1436
diff changeset
  6061
    "Modified: / 21.2.1996 / 13:09:28 / cg"
f535d2d11128 translate labels
Claus Gittinger <cg@exept.de>
parents: 1436
diff changeset
  6062
    "Created: / 29.1.1998 / 23:20:36 / cg"
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6063
! !
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6064
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6065
!NewLauncher methodsFor:'queries'!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6066
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  6067
preferredExtent
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  6068
1467
59bf087a0423 missing call added + using own extent calc routine for opening
tz
parents: 1466
diff changeset
  6069
    ^super preferredExtent max: Screen current extent//(2.5@3.5)
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  6070
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  6071
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  6072
!
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  6073
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6074
processName
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6075
    "for monitors only - my name"
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6076
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6077
    ^ 'ST/X Launcher'
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6078
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6079
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6080
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6081
transcript
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6082
    "my transcript"
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6083
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6084
    ^ transcript
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6085
! !
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6086
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6087
!NewLauncher methodsFor:'startup / release'!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6088
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6089
addTopViewsToCurrentProject
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6090
    "ignored here - the launcher is always global (i.e. not project private)."
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6091
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6092
    ^ self
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6093
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6094
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6095
1460
f58b047b892c open new launchers at old position;
Claus Gittinger <cg@exept.de>
parents: 1457
diff changeset
  6096
allButOpenInterface:anInterface
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6097
    "sent by my superclass to open up my interface"
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6098
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6099
    "/ if there is already a transcript on my device,
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6100
    "/ I am a slave launcher with limited functionality.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6101
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6102
    Transcript notNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6103
        Transcript ~~ Stderr ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6104
            isMainLauncher := (Transcript graphicsDevice == device).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6105
            self enableDangerousMenuItemsInRemoteLauncher value: isMainLauncher.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6106
        ] ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6107
            isMainLauncher := true
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6108
        ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6109
    ] ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6110
        isMainLauncher := true
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6111
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6112
1460
f58b047b892c open new launchers at old position;
Claus Gittinger <cg@exept.de>
parents: 1457
diff changeset
  6113
    super allButOpenInterface:anInterface.
1432
5c1e5f5ade52 colored icon ;-)
tz
parents: 1430
diff changeset
  6114
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6115
    self setupTranscript; updateInfo.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6116
    Project notNil ifTrue: [Project addDependent:self].
1460
f58b047b892c open new launchers at old position;
Claus Gittinger <cg@exept.de>
parents: 1457
diff changeset
  6117
    self class openLaunchers add: self.
f58b047b892c open new launchers at old position;
Claus Gittinger <cg@exept.de>
parents: 1457
diff changeset
  6118
    ^ builder
f58b047b892c open new launchers at old position;
Claus Gittinger <cg@exept.de>
parents: 1457
diff changeset
  6119
f58b047b892c open new launchers at old position;
Claus Gittinger <cg@exept.de>
parents: 1457
diff changeset
  6120
    "Created: / 5.2.1998 / 19:45:07 / cg"
f58b047b892c open new launchers at old position;
Claus Gittinger <cg@exept.de>
parents: 1457
diff changeset
  6121
    "Modified: / 5.2.1998 / 19:56:43 / cg"
f58b047b892c open new launchers at old position;
Claus Gittinger <cg@exept.de>
parents: 1457
diff changeset
  6122
!
f58b047b892c open new launchers at old position;
Claus Gittinger <cg@exept.de>
parents: 1457
diff changeset
  6123
f58b047b892c open new launchers at old position;
Claus Gittinger <cg@exept.de>
parents: 1457
diff changeset
  6124
closeRequest
f58b047b892c open new launchers at old position;
Claus Gittinger <cg@exept.de>
parents: 1457
diff changeset
  6125
f58b047b892c open new launchers at old position;
Claus Gittinger <cg@exept.de>
parents: 1457
diff changeset
  6126
    (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
  6127
        super closeRequest
f58b047b892c open new launchers at old position;
Claus Gittinger <cg@exept.de>
parents: 1457
diff changeset
  6128
    ]
f58b047b892c open new launchers at old position;
Claus Gittinger <cg@exept.de>
parents: 1457
diff changeset
  6129
f58b047b892c open new launchers at old position;
Claus Gittinger <cg@exept.de>
parents: 1457
diff changeset
  6130
!
f58b047b892c open new launchers at old position;
Claus Gittinger <cg@exept.de>
parents: 1457
diff changeset
  6131
f58b047b892c open new launchers at old position;
Claus Gittinger <cg@exept.de>
parents: 1457
diff changeset
  6132
postOpenWith:aBuilder
f58b047b892c open new launchers at old position;
Claus Gittinger <cg@exept.de>
parents: 1457
diff changeset
  6133
    "increase my priority"
f58b047b892c open new launchers at old position;
Claus Gittinger <cg@exept.de>
parents: 1457
diff changeset
  6134
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6135
    self builder window windowGroup process priority:(Processor userSchedulingPriority + 1).
1497
7fd093e00c44 time clock only for the launcher
tz
parents: 1491
diff changeset
  6136
    super postOpenWith:aBuilder.
7fd093e00c44 time clock only for the launcher
tz
parents: 1491
diff changeset
  6137
    self startClockOnTimedBlock: 
7fd093e00c44 time clock only for the launcher
tz
parents: 1491
diff changeset
  6138
    [
7fd093e00c44 time clock only for the launcher
tz
parents: 1491
diff changeset
  6139
        |now hours minutes suffix|
7fd093e00c44 time clock only for the launcher
tz
parents: 1491
diff changeset
  6140
7fd093e00c44 time clock only for the launcher
tz
parents: 1491
diff changeset
  6141
        now := Time now.
7fd093e00c44 time clock only for the launcher
tz
parents: 1491
diff changeset
  6142
7fd093e00c44 time clock only for the launcher
tz
parents: 1491
diff changeset
  6143
        hours := now hours.
7fd093e00c44 time clock only for the launcher
tz
parents: 1491
diff changeset
  6144
        minutes := now minutes printString.
7fd093e00c44 time clock only for the launcher
tz
parents: 1491
diff changeset
  6145
        suffix := ''.
7fd093e00c44 time clock only for the launcher
tz
parents: 1491
diff changeset
  6146
7fd093e00c44 time clock only for the launcher
tz
parents: 1491
diff changeset
  6147
        (resources at:'TIME_FORMAT' ifAbsent:12) == 12 ifTrue:[
7fd093e00c44 time clock only for the launcher
tz
parents: 1491
diff changeset
  6148
            suffix := ' am '.  
7fd093e00c44 time clock only for the launcher
tz
parents: 1491
diff changeset
  6149
            hours > 12 ifTrue: [hours := hours - 12. suffix := ' pm '].
7fd093e00c44 time clock only for the launcher
tz
parents: 1491
diff changeset
  6150
        ].
7fd093e00c44 time clock only for the launcher
tz
parents: 1491
diff changeset
  6151
7fd093e00c44 time clock only for the launcher
tz
parents: 1491
diff changeset
  6152
        minutes size = 1 ifTrue: [minutes := '0', minutes].
7fd093e00c44 time clock only for the launcher
tz
parents: 1491
diff changeset
  6153
7fd093e00c44 time clock only for the launcher
tz
parents: 1491
diff changeset
  6154
        self valueOfTimeLabel value: hours printString, ':', minutes, suffix.
7fd093e00c44 time clock only for the launcher
tz
parents: 1491
diff changeset
  6155
7fd093e00c44 time clock only for the launcher
tz
parents: 1491
diff changeset
  6156
        Processor removeTimedBlock: timeBlock.
7fd093e00c44 time clock only for the launcher
tz
parents: 1491
diff changeset
  6157
        Processor addTimedBlock: timeBlock afterSeconds: 1
7fd093e00c44 time clock only for the launcher
tz
parents: 1491
diff changeset
  6158
    ].
7fd093e00c44 time clock only for the launcher
tz
parents: 1491
diff changeset
  6159
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6160
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6161
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6162
restarted
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6163
    "image restart - since WindowGroup recreates the process with
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6164
     the default priority, we have to raise the prio again.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6165
     Mhmh - this looks like a bug to me ...
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6166
     Also, the cursor (which was stored as a write or waitCursor) must
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6167
     be reset to normal."
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6168
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6169
    Processor activeProcess priority:(Processor userSchedulingPriority + 1).
1469
415d35e62db6 class category changed
tz
parents: 1467
diff changeset
  6170
    builder window extent: self preferredExtent.
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6171
    super restarted
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6172
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6173
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6174
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6175
saveAndTerminateRequest
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6176
    "some windowManagers can send this, to shutDown an application
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6177
     but let it save its state before, for later restart. 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6178
     Although I have not yet encountered such a windowManager,
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6179
     we are already prepared for this ;-)"
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6180
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6181
    self snapshot.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6182
    super saveAndTerminateRequest
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6183
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6184
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6185
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6186
setupTranscript 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6187
    "create the transcript view"
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6188
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6189
    |launcher oldLauncher|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6190
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6191
    "/ check if this is an additional launcher on a remote display.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6192
    "/ if so, do not close the real launcher.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6193
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6194
    (Transcript notNil and:[Transcript ~~ Stderr]) ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6195
        isMainLauncher ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6196
            launcher := Transcript topView application
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6197
        ] ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6198
            launcher := self class current.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6199
        ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6200
        launcher notNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6201
            launcher window graphicsDevice == device ifTrue:[
1434
8746ba3896d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1433
diff changeset
  6202
                OpenLaunchers notNil ifTrue:[
8746ba3896d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1433
diff changeset
  6203
                    OpenLaunchers removeIdentical:launcher ifAbsent:nil.
8746ba3896d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1433
diff changeset
  6204
                ].
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6205
                (oldLauncher := Smalltalk at: #Launcher) notNil
1433
cd876a0d81c9 OpenLaunchers method made lowercase (method selector convention)
Claus Gittinger <cg@exept.de>
parents: 1432
diff changeset
  6206
                    ifTrue: [oldLauncher openLaunchers removeIdentical:launcher ifAbsent:nil].
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6207
                launcher close
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6208
            ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6209
        ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6210
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6211
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6212
    transcript := (builder componentAt: #transcriptView) subViews first.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6213
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6214
    isMainLauncher ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6215
        transcript beTranscript.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6216
    ] ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6217
        transcript showCR:'**************** Notice ***********************'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6218
        transcript showCR:'**       this is NOT the Transcript          **'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6219
        transcript showCR:'** The real Transcript is on the main screen **'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6220
        transcript showCR:'**                                           **'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6221
        transcript showCR:'** Menus affecting common state are disabled **'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6222
        transcript showCR:'***********************************************'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6223
    ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6224
1434
8746ba3896d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1433
diff changeset
  6225
    "Modified: / 29.1.1998 / 22:06:03 / cg"
1413
96095eb9354c some menu rearranges
tz
parents: 1411
diff changeset
  6226
!
96095eb9354c some menu rearranges
tz
parents: 1411
diff changeset
  6227
96095eb9354c some menu rearranges
tz
parents: 1411
diff changeset
  6228
uninitialize
96095eb9354c some menu rearranges
tz
parents: 1411
diff changeset
  6229
96095eb9354c some menu rearranges
tz
parents: 1411
diff changeset
  6230
    super uninitialize.
96095eb9354c some menu rearranges
tz
parents: 1411
diff changeset
  6231
96095eb9354c some menu rearranges
tz
parents: 1411
diff changeset
  6232
    Display beep.
1434
8746ba3896d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1433
diff changeset
  6233
    OpenLaunchers notNil ifTrue:[OpenLaunchers removeIdentical:self ifAbsent:nil].
1449
575d815f07db help menu item aligned to the right
tz
parents: 1447
diff changeset
  6234
    Project notNil ifTrue:[Project removeDependent:self]
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6235
! !
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6236
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6237
!NewLauncher class methodsFor:'documentation'!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6238
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6239
version
1527
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  6240
    ^ '$Header: /cvs/stx/stx/libtool/NewLauncher.st,v 1.47 1998-04-02 19:04:45 tz Exp $'
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  6241
! !