NewLauncher.st
author Claus Gittinger <cg@exept.de>
Thu, 16 Apr 1998 17:22:15 +0200
changeset 1549 9ee0dae8bdf1
parent 1547 c0798d0ca18e
child 1576 534ad27a7b4a
permissions -rw-r--r--
*** empty log message ***
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
     1
"
1533
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
     2
 COPYRIGHT (c) 1997-1998 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
1533
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
    16
	instanceVariableNames:'transcript isMainLauncher 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
"
1533
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
    26
 COPYRIGHT (c) 1997-1998 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
1533
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
    98
!NewLauncher class methodsFor:'help specs'!
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
    99
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   100
helpSpec
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   101
    "This resource specification was automatically generated
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   102
     by the UIHelpTool of ST/X."
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   103
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   104
    "Do not manually edit this!! If it is corrupted,
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   105
     the UIHelpTool may not be able to read the specification."
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   106
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   107
    "
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   108
     UIHelpTool openOnClass:NewLauncher    
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   109
    "
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   110
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   111
    <resource: #help>
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   112
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   113
    ^super helpSpec addPairsFrom:#(
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   114
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   115
#aboutLicenseConditions
1544
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   116
'Opens a HTML-Browser on the license conditions of ST/X.'
1533
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   117
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   118
#classes
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   119
'Classes functions.'
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   120
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   121
#classesClassBrowser
1544
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   122
'Opens a dia log for defining and opening a Class Browser on a class.'
1533
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   123
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   124
#classesClassHierarchyBrowser
1544
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   125
'Opens a dialog for defining and opening a Class Hierarchy Browser on a class.'
1533
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   126
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   127
#classesClassTreeBrowser
1544
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   128
'Opens a Class Tree on the classes of ST/X.'
1533
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   129
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   130
#classesFullClassBrowser
1544
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   131
'Opens a dialog for defining and opening a Full Class Browser on a class.'
1533
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   132
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   133
#classesImplementors
1544
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   134
'Opens a dialog for defining a selector and listing all methods implementing that selector.'
1533
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   135
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   136
#classesRemoveAllTracePoints
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   137
'Removes all trace points set in methods.'
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   138
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   139
#classesResourceMethods
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   140
'Opens a dialog for searching resource methods.'
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   141
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   142
#classesSenders
1544
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   143
'Opens a dialog for defining a selector and listing all methods sending that selector.'
1533
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   144
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   145
#classesShowTracePoints
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   146
'Opens a list showing all trace points set in methods.'
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   147
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   148
#classesSpecial
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   149
'Special class functions.'
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   150
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   151
#classesSpecialReferencesToUndeclared
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   152
'Opens a list of methods refering to undeclared variables.'
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   153
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   154
#classesSystemBrowser
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   155
'Opens a System Browser for editing sources of the classes.'
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   156
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   157
#classesSystemBrowserOnClass
1544
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   158
'Opens a System Browser on the selected class.'
1533
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   159
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   160
#demos
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   161
'Demos functions.'
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   162
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   163
#fileApplicationBuilder
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   164
'Opens a Application Builder for building stand alone ST/X-applications.'
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   165
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   166
#fileFileBrowser
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   167
'Opens a File Browser for loading, saving, and editing source files, etc.'
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   168
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   169
#fileLibraryBuilder
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   170
'Opens a Library Builder for building class libraries.'
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   171
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   172
#fileModules
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   173
'Opens a dialog for showing (and unloading) class libraries and other modules.'
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   174
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   175
#fileSaveImage
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   176
'Saves the current image of ST/X.'
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   177
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   178
#fileSaveImageAs
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   179
'Opens a dialog for selecting a file in order to save the current image of ST/X.'
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   180
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   181
#helpClassDocumentation
1544
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   182
'Opens a HTML-Browser with the documentation of the classes in ST/X.'
1533
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   183
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   184
#helpIndex
1544
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   185
'Opens a HTML-Browser with the index of the documentation of ST/X.'
1533
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   186
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   187
#helpPrintDocumentation
1544
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   188
'Opens a HTML-Browser with a manual for a printing of the documentation of ST/X.'
1533
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   189
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   190
#helpSTXOnlineDocumentation
1544
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   191
'Opens a HTML-Browser with the online documentation of ST/X.'
1533
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   192
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   193
#helpWhatsNew
1544
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   194
'Opens a HTML-Browser with the last brand new features of ST/X.'
1533
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   195
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   196
#settingsCompilation
1544
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   197
'Opens a dialog for changing the settings of the compilation of smalltalk sources.'
1533
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   198
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   199
#settingsFonts
1544
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   200
'Opens a dialog for changing of the font styles for the view classes.'
1533
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   201
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   202
#settingsKeyboardMappings
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   203
'Opens a dialog for inspecting the mappings of the keyboard.'
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   204
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   205
#settingsLanguage
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   206
'Opens a dialog for changing the national language.'
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   207
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   208
#settingsLoadSettings
1544
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   209
'Opens a dialog for loading stored values of settings.'
1533
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   210
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   211
#settingsMessages
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   212
'Opens a dialog for changing the settings for reporting infos/errors.'
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   213
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   214
#settingsMisc
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   215
'Opens a dialog for changing other settings.'
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   216
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   217
#settingsObjectMemory
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   218
'Opens a dialog for changing the settings of the object memories.'
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   219
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   220
#settingsPrinter
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   221
'Opens a dialog for changing the settings for the printer.'
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   222
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   223
#settingsSaveSettings
1544
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   224
'Opens a dialog for saving values of the current settings.'
1533
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   225
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   226
#settingsScreen
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   227
'Opens a dialog for changing the settings for the screen.'
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   228
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   229
#settingsSourceAndDebugger
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   230
'Opens a dialog for changing the settings of the source code management.'
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   231
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   232
#settingsViewStyle
1544
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   233
'Opens a dialog for changing the current view style.'
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   234
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   235
#system
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   236
'System functions.'
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   237
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   238
#systemEventTrace
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   239
'Changes the mouse cursor to a cross hair for moving it to a view in order to turn on/off an event trace.'
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   240
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   241
#systemEventView
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   242
'Opens a view for outputting view events on a xterm.'
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   243
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   244
#systemGarbageCollect
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   245
'Destroys all objects having no references to other objects.'
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   246
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   247
#systemGarbageCollectAndCompress
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   248
'Destroys all objects having no references to other objects and compresses the memory.'
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   249
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   250
#systemInterruptLatency
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   251
'Opens a Interrupt Latency Monitor for showing methods which block interrupts for longer than a given time goal.'
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   252
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   253
#systemMemory
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   254
'Opens a Memory Monitor for showing (graphically) the memory segments in ST/X.'
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   255
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   256
#systemMemoryUsage
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   257
'Opens a list showing the memory usages of the classes.'
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   258
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   259
#systemProcesses
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   260
'Opens a Process Monitor for showing (and editing) current running processes in ST/X.'
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   261
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   262
#systemSemaphores
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   263
'Opens a Semaphores Monitor for showing (and editing) current running semaphores in ST/X.'
1533
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   264
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   265
#tools
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   266
'Tools functions.'
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   267
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   268
#toolsChangesBrowser
1544
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   269
'Opens a Changes Browser containing all changes of the smalltalk source code made by the user.'
1533
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   270
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   271
#toolsGUIPainter
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   272
'Opens a GUI Painter for building graphical user interfaces.'
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   273
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   274
#toolsImageEditor
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   275
'Opens a Image Editor for building bitmap images used by buttons, tool bars, etc.'
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   276
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   277
#toolsMenuEditor
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   278
'Opens a Menu Editor for building menu bars, popup menus, and tool bars.'
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   279
1544
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   280
#toolsMisc
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   281
'Tools misc functions.'
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   282
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   283
#toolsMiscNewLauncher
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   284
'Reopens a new launcher.'
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   285
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   286
#toolsMiscOldLauncher
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   287
'Opens an old launcher.'
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   288
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   289
#toolsMiscProjects
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   290
'Projects functions.'
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   291
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   292
#toolsMiscProjectsNewProject
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   293
'Creates a new project for working in a separate environment.'
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   294
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   295
#toolsMiscProjectsSelectProject
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   296
'Select an existing project for working in that environment.'
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   297
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   298
#toolsProjects
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   299
''
1533
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   300
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   301
#toolsWorkspace
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   302
'Opens a Workspace for evaluating smalltalk expressions.'
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   303
1544
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   304
#windows
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   305
'Windows functions.'
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   306
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   307
#windowsDeiconifyAll
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   308
'Opens all icons on the desktop of ST/X to their windows.'
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   309
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   310
#windowsFindAndDestroy
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   311
'Opens a dialog for selecting a window of ST/X by label and for destroying it.'
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   312
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   313
#windowsFindAndRaise
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   314
'Opens dialog for selecting a window of ST/X by label and for raising it.'
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   315
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   316
#windowsGrapScreen
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   317
'Opens a dialog for saving the contents of the screen as a bitmap.'
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   318
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   319
#windowsGrapScreenArea
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   320
'Changes the mouse cursor for selecting an area of the screen and opens a dialog for saving that area as a bitmap.'
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   321
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   322
#windowsGrapWindow
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   323
'Changes the mouse cursor for selecting a window of ST/X and opens a dialog for saving the contents of the window as a bitmap.'
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   324
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   325
#windowsIconifyAll
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   326
'Closes all windows of ST/X to their icons on the desktop.'
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   327
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   328
#windowsSelectAndDestroy
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   329
'Changes the mouse cursor to a cross hair for moving it over a window of ST/X in order to destroy it.'
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   330
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   331
#windowsSelectAndInspect
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   332
'Changes the mouse cursor to a cross hair for moving it over a window of ST/X in order to inspect it.'
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   333
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   334
#windowsViewTree
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   335
'Changes the mouse cursor to a cross hair for moving it over a window of ST/X in order to inspect the view tree of it.'
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   336
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   337
#windowsViewTreeAllViews
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   338
'Opens an inspector showing the view trees of all windows of ST/X.'
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   339
1533
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   340
)
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   341
! !
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   342
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   343
!NewLauncher class methodsFor:'interface specs'!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   344
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   345
windowSpec
1527
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
   346
    "This resource specification was automatically generated
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
   347
     by the UIPainter of ST/X."
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
   348
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
   349
    "Do not manually edit this!! If it is corrupted,
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
   350
     the UIPainter may not be able to read the specification."
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   351
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   352
    "
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   353
     UIPainter new openOnClass:NewLauncher andSelector:#windowSpec
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   354
     NewLauncher new openInterface:#windowSpec
1527
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
   355
     NewLauncher open
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   356
    "
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   357
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   358
    <resource: #canvas>
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   359
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   360
    ^
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   361
     
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   362
       #(#FullSpec
1527
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
   363
          #window: 
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   364
           #(#WindowSpec
1527
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
   365
              #name: 'Launcher'
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
   366
              #layout: #(#LayoutFrame 407 0 353 0 697 0 554 0)
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
   367
              #label: 'Launcher'
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
   368
              #min: #(#Point 374 240)
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
   369
              #max: #(#Point 1152 900)
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
   370
              #bounds: #(#Rectangle 407 353 698 555)
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
   371
              #menu: #menu
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
   372
              #usePreferredExtent: false
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
   373
              #icon: #stxIcon
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   374
          )
1527
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
   375
          #component: 
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   376
           #(#SpecCollection
1527
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
   377
              #collection: 
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   378
               #(
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   379
                 #(#MenuPanelSpec
1527
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
   380
                    #name: 'menuToolbarView'
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
   381
                    #layout: #(#LayoutFrame 0 0.0 0 0 0 1.0 38 0)
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
   382
                    #menu: #menuToolbar
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
   383
                    #style: #(#FontDescription #helvetica #medium #roman 10)
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   384
                )
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   385
                 #(#ArbitraryComponentSpec
1527
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
   386
                    #name: 'transcriptView'
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
   387
                    #layout: #(#LayoutFrame 0 0.0 40 0.0 0 1.0 -26 1.0)
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
   388
                    #hasHorizontalScrollBar: true
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
   389
                    #hasVerticalScrollBar: true
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
   390
                    #miniScrollerHorizontal: true
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
   391
                    #component: #TextCollector
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
   392
                    #hasBorder: false
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   393
                )
1422
bd1798d4454c exit dialog changed + info bar as subSpec to class ToolApplicationModel moved
tz
parents: 1420
diff changeset
   394
                 #(#UISubSpecification
1527
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
   395
                    #name: 'infoBarSubSpec'
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
   396
                    #layout: #(#LayoutFrame 0 0.0 -24 1 0 1.0 0 1.0)
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
   397
                    #majorKey: #ToolApplicationModel
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
   398
                    #minorKey: #windowSpecForInfoBarWithClock
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   399
                )
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   400
              )
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   401
          )
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   402
      )
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   403
! !
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
   404
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
   405
!NewLauncher class methodsFor:'menu specs'!
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
   406
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
   407
menu
1515
293aa84c6b80 application builder stuff moved to a separate class
tz
parents: 1497
diff changeset
   408
    "This resource specification was automatically generated
293aa84c6b80 application builder stuff moved to a separate class
tz
parents: 1497
diff changeset
   409
     by the MenuEditor of ST/X."
293aa84c6b80 application builder stuff moved to a separate class
tz
parents: 1497
diff changeset
   410
293aa84c6b80 application builder stuff moved to a separate class
tz
parents: 1497
diff changeset
   411
    "Do not manually edit this!! If it is corrupted,
293aa84c6b80 application builder stuff moved to a separate class
tz
parents: 1497
diff changeset
   412
     the MenuEditor may not be able to read the specification."
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
   413
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
   414
    "
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
   415
     MenuEditor new openOnClass:NewLauncher andSelector:#menu
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
   416
     (Menu new fromLiteralArrayEncoding:(NewLauncher menu)) startUp
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
   417
    "
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
   418
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
   419
    <resource: #menu>
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
   420
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
   421
    ^
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
   422
     
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
   423
       #(#Menu
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
   424
          
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
   425
           #(
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
   426
             #(#MenuItem
1533
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   427
                #label: 'About'
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   428
                #activeHelpKey: #about
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
   429
                #labelImage: #(#ResourceRetriever nil #menuIcon)
1533
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   430
                #submenu: 
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   431
                 #(#Menu
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   432
                    
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   433
                     #(
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   434
                       #(#MenuItem
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   435
                          #label: 'About Smalltalk/X...'
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   436
                          #translateLabel: true
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   437
                          #value: #openAbout
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   438
                          #activeHelpKey: #aboutSTX
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   439
                      )
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   440
                       #(#MenuItem
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   441
                          #label: 'License Conditions'
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   442
                          #translateLabel: true
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   443
                          #value: #openLicenseConditions
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   444
                          #activeHelpKey: #aboutLicenseConditions
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   445
                      )
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   446
                       #(#MenuItem
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   447
                          #label: '-'
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   448
                      )
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   449
                       #(#MenuItem
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   450
                          #label: 'About This Application...'
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   451
                          #translateLabel: true
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   452
                          #value: #openAboutThisApplication
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   453
                          #activeHelpKey: #aboutThisAppliaction
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   454
                      )
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   455
                    ) nil
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   456
                    nil
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   457
                )
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
   458
            )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
   459
             #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
   460
                #label: 'File'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
   461
                #translateLabel: true
1533
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   462
                #activeHelpKey: #file
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
   463
                #submenu: 
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
   464
                 #(#Menu
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
   465
                    
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
   466
                     #(
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
   467
                       #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
   468
                          #label: 'File Browser'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
   469
                          #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
   470
                          #value: #openApplication:
1533
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   471
                          #activeHelpKey: #fileFileBrowser
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
   472
                          #argument: 'FileBrowser'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
   473
                          #labelImage: #(#ResourceRetriever nil #startFileBrowserIcon 'File Browser')
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
   474
                      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
   475
                       #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
   476
                          #label: '-'
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
   477
                      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
   478
                       #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
   479
                          #label: 'Modules...'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
   480
                          #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
   481
                          #value: #objectModuleDialog
1533
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   482
                          #activeHelpKey: #fileModules
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
   483
                          #enabled: #enableDangerousMenuItemsInRemoteLauncher
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
   484
                      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
   485
                       #(#MenuItem
1527
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
   486
                          #label: '-'
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
   487
                      )
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
   488
                       #(#MenuItem
1531
9cc7272b9162 define syntax colors from the settings
tz
parents: 1527
diff changeset
   489
                          #label: 'Library Builder'
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
   490
                          #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
   491
                          #value: #openApplication:
1533
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   492
                          #activeHelpKey: #fileLibraryBuilder
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
   493
                          #argument: 'LibraryBuilder'
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
   494
                      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
   495
                       #(#MenuItem
1531
9cc7272b9162 define syntax colors from the settings
tz
parents: 1527
diff changeset
   496
                          #label: 'Application Builder'
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
   497
                          #translateLabel: true
1515
293aa84c6b80 application builder stuff moved to a separate class
tz
parents: 1497
diff changeset
   498
                          #value: #openApplication:
1533
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   499
                          #activeHelpKey: #fileApplicationBuilder
1515
293aa84c6b80 application builder stuff moved to a separate class
tz
parents: 1497
diff changeset
   500
                          #argument: 'ApplicationBuilder'
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
   501
                      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
   502
                       #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
   503
                          #label: '-'
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
   504
                      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
   505
                       #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
   506
                          #label: 'Save Image'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
   507
                          #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
   508
                          #value: #saveImage
1533
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   509
                          #activeHelpKey: #fileSaveImage
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
   510
                          #enabled: #enableDangerousMenuItemsInRemoteLauncher
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
   511
                      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
   512
                       #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
   513
                          #label: 'Save Image As...'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
   514
                          #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
   515
                          #value: #saveImageAs
1533
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   516
                          #activeHelpKey: #fileSaveImageAs
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
   517
                          #enabled: #enableDangerousMenuItemsInRemoteLauncher
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
   518
                      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
   519
                       #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
   520
                          #label: '-'
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
   521
                      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
   522
                       #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
   523
                          #label: 'Exit...'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
   524
                          #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
   525
                          #value: #exit
1533
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   526
                          #activeHelpKey: #fileExit
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
   527
                          #enabled: #enableDangerousMenuItemsInRemoteLauncher
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
   528
                      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
   529
                    ) nil
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
   530
                    nil
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
   531
                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
   532
            )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
   533
             #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
   534
                #label: 'Classes'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
   535
                #translateLabel: true
1533
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   536
                #activeHelpKey: #classes
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
   537
                #submenu: 
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
   538
                 #(#Menu
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
   539
                    
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
   540
                     #(
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
   541
                       #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
   542
                          #label: 'System Browser'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
   543
                          #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
   544
                          #value: #openApplication:
1533
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   545
                          #activeHelpKey: #classesSystemBrowser
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
   546
                          #argument: 'SystemBrowser'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
   547
                          #labelImage: #(#ResourceRetriever nil #startSystemBrowserIcon 'System Browser')
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
   548
                      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
   549
                       #(#MenuItem
1533
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   550
                          #label: 'System Browser On Class'
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   551
                          #translateLabel: true
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   552
                          #activeHelpKey: #classesSystemBrowserOnClass
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   553
                          #labelImage: #(#ResourceRetriever nil #startSystemBrowserOnHistoryClassIcon 'System Browser On Class')
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   554
                          #submenuChannel: #menuClassHistory
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   555
                      )
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   556
                       #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
   557
                          #label: '-'
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
   558
                      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
   559
                       #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
   560
                          #label: 'Class Browser...'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
   561
                          #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
   562
                          #value: #startClassBrowser
1533
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   563
                          #activeHelpKey: #classesClassBrowser
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
   564
                      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
   565
                       #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
   566
                          #label: 'Full Class Browser...'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
   567
                          #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
   568
                          #value: #startFullClassBrowser
1533
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   569
                          #activeHelpKey: #classesFullClassBrowser
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
   570
                      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
   571
                       #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
   572
                          #label: 'Class Hierarchy Browser...'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
   573
                          #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
   574
                          #value: #startClassHierarchyBrowser
1533
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   575
                          #activeHelpKey: #classesClassHierarchyBrowser
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
   576
                      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
   577
                       #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
   578
                          #label: 'Class Tree'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
   579
                          #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
   580
                          #value: #openApplication:
1533
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   581
                          #activeHelpKey: #classesClassTreeBrowser
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
   582
                          #argument: 'ClassTreeGraphView'
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
   583
                      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
   584
                       #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
   585
                          #label: '-'
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
   586
                      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
   587
                       #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
   588
                          #label: 'Implementors...'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
   589
                          #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
   590
                          #value: #browseImplementors
1533
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   591
                          #activeHelpKey: #classesImplementors
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
   592
                      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
   593
                       #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
   594
                          #label: 'Senders...'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
   595
                          #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
   596
                          #value: #browseSenders
1533
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   597
                          #activeHelpKey: #classesSenders
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
   598
                      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
   599
                       #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
   600
                          #label: '-'
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
   601
                      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
   602
                       #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
   603
                          #label: 'Special'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
   604
                          #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
   605
                          #value: #special
1533
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   606
                          #activeHelpKey: #classesSpecial
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
   607
                          #submenu: 
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
   608
                           #(#Menu
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
   609
                              
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
   610
                               #(
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
   611
                                 #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
   612
                                    #label: 'References To Undeclared'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
   613
                                    #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
   614
                                    #value: #browseUndeclared
1533
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   615
                                    #activeHelpKey: #classesSpecialReferencesToUndeclared
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
   616
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
   617
                                 #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
   618
                                    #label: 'Resource Methods...'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
   619
                                    #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
   620
                                    #value: #browseResources
1533
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   621
                                    #activeHelpKey: #classesResourceMethods
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
   622
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
   623
                                 #(#MenuItem
1533
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   624
                                    #label: 'Show Trace Points'
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
   625
                                    #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
   626
                                    #value: #browseAllBreakAndTracePoints
1533
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   627
                                    #activeHelpKey: #classesShowTracePoints
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
   628
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
   629
                                 #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
   630
                                    #label: '-'
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
   631
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
   632
                                 #(#MenuItem
1533
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   633
                                    #label: 'Remove All Trace Points'
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
   634
                                    #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
   635
                                    #value: #removeAllBreakAndTracePoints
1533
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   636
                                    #activeHelpKey: #classesRemoveAllTracePoints
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
   637
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
   638
                              ) nil
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
   639
                              nil
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
   640
                          )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
   641
                      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
   642
                    ) nil
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
   643
                    nil
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
   644
                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
   645
            )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
   646
             #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
   647
                #label: 'Tools'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
   648
                #translateLabel: true
1533
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   649
                #activeHelpKey: #tools
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
   650
                #submenu: 
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
   651
                 #(#Menu
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
   652
                    
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
   653
                     #(
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
   654
                       #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
   655
                          #label: 'Workspace'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
   656
                          #value: #openApplication:
1533
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   657
                          #activeHelpKey: #toolsWorkspace
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
   658
                          #argument: 'Workspace'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
   659
                          #labelImage: #(#ResourceRetriever nil #startWorkspaceIcon 'Workspace')
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
   660
                      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
   661
                       #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
   662
                          #label: '-'
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
   663
                      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
   664
                       #(#MenuItem
1480
9d80831a1df4 *** empty log message ***
tz
parents: 1479
diff changeset
   665
                          #label: 'GUI Painter'
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
   666
                          #value: #openApplication:
1533
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   667
                          #activeHelpKey: #toolsGUIPainter
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
   668
                          #argument: 'UIPainter'
1480
9d80831a1df4 *** empty log message ***
tz
parents: 1479
diff changeset
   669
                          #labelImage: #(#ResourceRetriever nil #startUIPainterIcon 'GUI Painter')
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
   670
                      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
   671
                       #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
   672
                          #label: 'Menu Editor'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
   673
                          #value: #openApplication:
1533
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   674
                          #activeHelpKey: #toolsMenuEditor
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
   675
                          #argument: 'MenuEditor'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
   676
                          #labelImage: #(#ResourceRetriever nil #startMenuEditorIcon 'Menu Editor')
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
   677
                      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
   678
                       #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
   679
                          #label: 'Image Editor'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
   680
                          #value: #openApplication:
1533
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   681
                          #activeHelpKey: #toolsImageEditor
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
   682
                          #argument: 'ImageEditor'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
   683
                          #labelImage: #(#ResourceRetriever nil #startImageEditorIcon 'Image Editor')
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
   684
                      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
   685
                       #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
   686
                          #label: '-'
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
   687
                      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
   688
                       #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
   689
                          #label: 'Changes Browser'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
   690
                          #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
   691
                          #value: #openApplication:
1533
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   692
                          #activeHelpKey: #toolsChangesBrowser
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
   693
                          #argument: 'ChangesBrowser'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
   694
                          #labelImage: #(#ResourceRetriever nil #startChangesBrowserIcon 'Changes Browser')
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
   695
                      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
   696
                       #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
   697
                          #label: '-'
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
   698
                      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
   699
                       #(#MenuItem
1544
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   700
                          #label: 'Misc'
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
   701
                          #translateLabel: true
1544
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   702
                          #activeHelpKey: #toolsMisc
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
   703
                          #submenu: 
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
   704
                           #(#Menu
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
   705
                              
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
   706
                               #(
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
   707
                                 #(#MenuItem
1544
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   708
                                    #label: 'Projects'
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
   709
                                    #translateLabel: true
1544
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   710
                                    #activeHelpKey: #toolsMiscProjects
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   711
                                    #submenu: 
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   712
                                     #(#Menu
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   713
                                        
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   714
                                         #(
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   715
                                           #(#MenuItem
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   716
                                              #label: 'New Project'
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   717
                                              #translateLabel: true
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   718
                                              #value: #newProject
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   719
                                              #activeHelpKey: #toolsMiscProjectsNewProject
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   720
                                          )
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   721
                                           #(#MenuItem
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   722
                                              #label: '-'
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   723
                                          )
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   724
                                           #(#MenuItem
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   725
                                              #label: 'Select Project...'
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   726
                                              #translateLabel: true
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   727
                                              #value: #selectProject
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   728
                                              #activeHelpKey: #toolsMiscProjectsSelectProject
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   729
                                          )
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   730
                                        ) nil
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   731
                                        nil
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   732
                                    )
1533
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   733
                                )
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   734
                                 #(#MenuItem
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   735
                                    #label: '-'
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   736
                                )
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   737
                                 #(#MenuItem
1544
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   738
                                    #label: 'New Launcher'
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
   739
                                    #translateLabel: true
1544
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   740
                                    #value: #startNewLauncher
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   741
                                    #activeHelpKey: #toolsMiscNewLauncher
1533
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   742
                                )
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   743
                                 #(#MenuItem
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   744
                                    #label: 'Old Launcher'
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   745
                                    #translateLabel: true
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   746
                                    #value: #startOldLauncher
1544
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   747
                                    #activeHelpKey: #toolsMiscOldLauncher
1533
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   748
                                )
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
   749
                              ) nil
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
   750
                              nil
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
   751
                          )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
   752
                      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
   753
                    ) nil
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
   754
                    nil
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
   755
                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
   756
            )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
   757
             #(#MenuItem
1544
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   758
                #label: 'System'
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
   759
                #translateLabel: true
1544
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   760
                #activeHelpKey: #system
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
   761
                #submenu: 
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
   762
                 #(#Menu
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
   763
                    
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
   764
                     #(
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
   765
                       #(#MenuItem
1544
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   766
                          #label: 'Memory'
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   767
                          #translateLabel: true
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   768
                          #value: #openApplication:
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   769
                          #activeHelpKey: #systemMemory
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   770
                          #argument: 'MemoryMonitor'
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   771
                      )
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   772
                       #(#MenuItem
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   773
                          #label: 'Memory Usage'
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
   774
                          #translateLabel: true
1544
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   775
                          #value: #openApplication:
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   776
                          #activeHelpKey: #systemMemoryUsage
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   777
                          #argument: 'MemoryUsageView'
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   778
                      )
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   779
                       #(#MenuItem
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   780
                          #label: '-'
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   781
                      )
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   782
                       #(#MenuItem
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   783
                          #label: 'Processes'
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   784
                          #translateLabel: true
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   785
                          #value: #openApplication:
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   786
                          #activeHelpKey: #systemProcesses
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   787
                          #argument: 'ProcessMonitor'
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   788
                      )
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   789
                       #(#MenuItem
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   790
                          #label: 'Semaphores'
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   791
                          #translateLabel: true
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   792
                          #value: #openApplication:
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   793
                          #activeHelpKey: #systemSemaphores
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   794
                          #argument: 'SemaphoreMonitor'
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
   795
                      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
   796
                       #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
   797
                          #label: '-'
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
   798
                      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
   799
                       #(#MenuItem
1544
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   800
                          #label: 'Interrupt Latency'
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   801
                          #translateLabel: true
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   802
                          #value: #startLatencyMonitor
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   803
                          #activeHelpKey: #systemInterruptLatency
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   804
                      )
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   805
                       #(#MenuItem
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   806
                          #label: '-'
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   807
                      )
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   808
                       #(#MenuItem
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   809
                          #label: 'Event View'
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   810
                          #translateLabel: true
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   811
                          #value: #openApplication:
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   812
                          #activeHelpKey: #systemEventView
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   813
                          #argument: 'EventMonitor'
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   814
                      )
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   815
                       #(#MenuItem
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   816
                          #label: 'Event Trace'
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
   817
                          #translateLabel: true
1544
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   818
                          #value: #startStopEventTrace
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   819
                          #activeHelpKey: #systemEventTrace
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   820
                      )
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   821
                       #(#MenuItem
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   822
                          #label: '-'
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   823
                      )
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   824
                       #(#MenuItem
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   825
                          #label: 'Collect Garbage'
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   826
                          #translateLabel: true
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   827
                          #value: #garbageCollect
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   828
                          #activeHelpKey: #systemGarbageCollect
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   829
                          #labelImage: #(#ResourceRetriever nil #garbageCollectIcon 'Collect Garbage')
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   830
                      )
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   831
                       #(#MenuItem
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   832
                          #label: 'Collect Garbage And Compress'
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   833
                          #translateLabel: true
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   834
                          #value: #compressingGarbageCollect
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   835
                          #activeHelpKey: #systemGarbageCollectAndCompress
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   836
                          #labelImage: #(#ResourceRetriever nil #garbageCollectIcon 'Collect Garbage And Compress')
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   837
                      )
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   838
                       #(#MenuItem
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   839
                          #label: '-'
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   840
                          #isVisible: #javaSupportPresent
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   841
                      )
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   842
                       #(#MenuItem
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   843
                          #label: 'Reinit Java VM'
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   844
                          #isVisible: #javaSupportPresent
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   845
                          #value: #initJavaVM
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
   846
                      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
   847
                    ) nil
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
   848
                    nil
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
   849
                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
   850
            )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
   851
             #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
   852
                #label: 'Settings'
1533
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   853
                #activeHelpKey: #settings
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   854
                #submenu: 
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   855
                 #(#Menu
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   856
                    
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   857
                     #(
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   858
                       #(#MenuItem
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   859
                          #label: 'View Style...'
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   860
                          #translateLabel: true
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   861
                          #value: #viewStyleSetting
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   862
                          #activeHelpKey: #settingsViewStyle
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   863
                          #enabled: #enableDangerousMenuItemsInRemoteLauncher
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   864
                      )
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   865
                       #(#MenuItem
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   866
                          #label: 'Fonts...'
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   867
                          #translateLabel: true
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   868
                          #value: #fontSettings
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   869
                          #activeHelpKey: #settingsFonts
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   870
                          #enabled: #enableDangerousMenuItemsInRemoteLauncher
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   871
                      )
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   872
                       #(#MenuItem
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   873
                          #label: 'Language...'
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   874
                          #translateLabel: true
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   875
                          #value: #languageSetting
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   876
                          #activeHelpKey: #settingsLanguage
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   877
                          #enabled: #enableDangerousMenuItemsInRemoteLauncher
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   878
                      )
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   879
                       #(#MenuItem
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   880
                          #label: 'Keyboard Mappings...'
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   881
                          #translateLabel: true
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   882
                          #value: #keyboardSetting
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   883
                          #activeHelpKey: #settingsKeyboardMappings
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   884
                      )
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   885
                       #(#MenuItem
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   886
                          #label: '-'
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   887
                      )
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   888
                       #(#MenuItem
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   889
                          #label: 'Messages...'
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   890
                          #translateLabel: true
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   891
                          #value: #messageSettings
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   892
                          #activeHelpKey: #settingsMessages
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   893
                          #enabled: #enableDangerousMenuItemsInRemoteLauncher
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   894
                      )
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   895
                       #(#MenuItem
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   896
                          #label: 'Compilation...'
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   897
                          #translateLabel: true
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   898
                          #value: #compilerSettings
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   899
                          #activeHelpKey: #settingsCompilation
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   900
                          #enabled: #enableDangerousMenuItemsInRemoteLauncher
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   901
                      )
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   902
                       #(#MenuItem
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   903
                          #label: 'Object Memory...'
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   904
                          #translateLabel: true
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   905
                          #value: #memorySettings
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   906
                          #activeHelpKey: #settingsObjectMemory
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   907
                          #enabled: #enableDangerousMenuItemsInRemoteLauncher
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   908
                      )
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   909
                       #(#MenuItem
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   910
                          #label: 'Source And Debugger...'
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   911
                          #translateLabel: true
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   912
                          #value: #sourceAndDebuggerSettings
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   913
                          #activeHelpKey: #settingsSourceAndDebugger
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   914
                          #enabled: #enableDangerousMenuItemsInRemoteLauncher
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   915
                      )
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   916
                       #(#MenuItem
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   917
                          #label: '-'
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   918
                      )
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   919
                       #(#MenuItem
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   920
                          #label: 'Printer...'
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   921
                          #translateLabel: true
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   922
                          #value: #printerSettings
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   923
                          #activeHelpKey: #settingsPrinter
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   924
                          #enabled: #enableDangerousMenuItemsInRemoteLauncher
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   925
                      )
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   926
                       #(#MenuItem
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   927
                          #label: 'Screen...'
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   928
                          #translateLabel: true
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   929
                          #value: #displaySettings
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   930
                          #activeHelpKey: #settingsScreen
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   931
                          #enabled: #enableDangerousMenuItemsInRemoteLauncher
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   932
                      )
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   933
                       #(#MenuItem
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   934
                          #label: '-'
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   935
                      )
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   936
                       #(#MenuItem
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   937
                          #label: 'Misc...'
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   938
                          #translateLabel: true
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   939
                          #value: #miscSettings
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   940
                          #activeHelpKey: #settingsMisc
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   941
                          #enabled: #enableDangerousMenuItemsInRemoteLauncher
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   942
                      )
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   943
                       #(#MenuItem
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   944
                          #label: '-'
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   945
                      )
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   946
                       #(#MenuItem
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   947
                          #label: 'Save Settings...'
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   948
                          #translateLabel: true
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   949
                          #value: #saveSettings
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   950
                          #activeHelpKey: #settingsSaveSettings
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   951
                      )
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   952
                       #(#MenuItem
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   953
                          #label: 'Load Settings...'
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   954
                          #translateLabel: true
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   955
                          #value: #loadSettings
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   956
                          #activeHelpKey: #settingsLoadSettings
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   957
                          #enabled: #enableDangerousMenuItemsInRemoteLauncher
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   958
                      )
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   959
                    ) nil
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   960
                    nil
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
   961
                )
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
   962
            )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
   963
             #(#MenuItem
1544
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   964
                #label: 'Windows'
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   965
                #translateLabel: true
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   966
                #activeHelpKey: #windows
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   967
                #submenu: 
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   968
                 #(#Menu
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   969
                    
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   970
                     #(
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   971
                       #(#MenuItem
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   972
                          #label: 'Iconify All'
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   973
                          #translateLabel: true
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   974
                          #value: #iconifyAllWindows
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   975
                          #activeHelpKey: #windowsIconifyAll
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   976
                      )
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   977
                       #(#MenuItem
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   978
                          #label: 'De-iconify All'
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   979
                          #translateLabel: true
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   980
                          #value: #deIconifyAllWindows
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   981
                          #activeHelpKey: #windowsDeiconifyAll
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   982
                      )
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   983
                       #(#MenuItem
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   984
                          #label: '-'
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   985
                      )
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   986
                       #(#MenuItem
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   987
                          #label: 'View Tree'
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   988
                          #translateLabel: true
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   989
                          #value: #startWindowTreeView
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   990
                          #activeHelpKey: #windowsViewTree
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   991
                      )
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   992
                       #(#MenuItem
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   993
                          #label: 'View Tree (all windows)'
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   994
                          #translateLabel: true
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   995
                          #value: #openApplication:
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   996
                          #activeHelpKey: #windowsViewTreeAllViews
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   997
                          #argument: 'WindowTreeView'
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   998
                      )
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
   999
                       #(#MenuItem
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1000
                          #label: '-'
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1001
                      )
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1002
                       #(#MenuItem
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1003
                          #label: 'Select And Inspect'
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1004
                          #translateLabel: true
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1005
                          #value: #viewInspect
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1006
                          #activeHelpKey: #windowsSelectAndInspect
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1007
                      )
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1008
                       #(#MenuItem
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1009
                          #label: 'Select And Destroy'
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1010
                          #translateLabel: true
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1011
                          #value: #viewDestroy
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1012
                          #activeHelpKey: #windowsSelectAndDestroy
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1013
                      )
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1014
                       #(#MenuItem
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1015
                          #label: '-'
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1016
                      )
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1017
                       #(#MenuItem
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1018
                          #label: 'Find And Raise...'
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1019
                          #translateLabel: true
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1020
                          #value: #findAndRaiseWindow
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1021
                          #activeHelpKey: #windowsFindAndRaise
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1022
                      )
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1023
                       #(#MenuItem
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1024
                          #label: 'Find And Destroy...'
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1025
                          #translateLabel: true
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1026
                          #value: #findAndDestroyWindow
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1027
                          #activeHelpKey: #windowsFindAndDestroy
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1028
                      )
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1029
                       #(#MenuItem
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1030
                          #label: '-'
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1031
                      )
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1032
                       #(#MenuItem
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1033
                          #label: 'Grab Window...'
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1034
                          #translateLabel: true
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1035
                          #value: #viewHardcopy
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1036
                          #activeHelpKey: #windowsGrapWindow
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1037
                      )
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1038
                       #(#MenuItem
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1039
                          #label: 'Grab Screen...'
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1040
                          #translateLabel: true
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1041
                          #value: #fullScreenHardcopy
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1042
                          #activeHelpKey: #windowsGrapScreen
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1043
                      )
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1044
                       #(#MenuItem
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1045
                          #label: 'Grab Screen Area...'
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1046
                          #translateLabel: true
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1047
                          #value: #screenHardcopy
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1048
                          #activeHelpKey: #windowsGrapScreenArea
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1049
                      )
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1050
                    ) nil
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1051
                    nil
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1052
                )
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1053
            )
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1054
             #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1055
                #label: 'Demos'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1056
                #translateLabel: true
1533
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
  1057
                #activeHelpKey: #demos
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1058
                #submenu: 
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1059
                 #(#Menu
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1060
                    
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1061
                     #(
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1062
                       #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1063
                          #label: 'Goodies'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1064
                          #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1065
                          #submenu: 
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1066
                           #(#Menu
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1067
                              
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1068
                               #(
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1069
                                 #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1070
                                    #label: 'Clock'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1071
                                    #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1072
                                    #value: #openDemo:
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1073
                                    #argument: 'Clock'
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1074
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1075
                                 #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1076
                                    #label: 'Digital Clock'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1077
                                    #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1078
                                    #value: #openDemo:
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1079
                                    #argument: 'DigitalClockView'
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1080
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1081
                                 #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1082
                                    #label: 'Calendar'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1083
                                    #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1084
                                    #value: #openDemo:
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1085
                                    #argument: 'Calendar'
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1086
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1087
                                 #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1088
                                    #label: 'Calculator'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1089
                                    #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1090
                                    #value: #openDemo:
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1091
                                    #argument: 'CalculatorView'
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1092
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1093
                                 #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1094
                                    #label: '-'
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1095
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1096
                                 #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1097
                                    #label: 'Mail Tool'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1098
                                    #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1099
                                    #value: #openDemo:
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1100
                                    #argument: 'MailView'
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1101
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1102
                                 #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1103
                                    #label: 'News Tool'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1104
                                    #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1105
                                    #value: #openDemo:
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1106
                                    #argument: 'NewsView'
1441
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
                                 #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1109
                                    #label: 'FTP Tool'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1110
                                    #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1111
                                    #value: #openDemo:
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1112
                                    #argument: 'FTPTool'
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1113
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1114
                              ) nil
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1115
                              nil
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1116
                          )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1117
                      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1118
                       #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1119
                          #label: 'Games'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1120
                          #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1121
                          #submenu: 
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1122
                           #(#Menu
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
                               #(
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1125
                                 #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1126
                                    #label: 'Tetris'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1127
                                    #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1128
                                    #value: #openDemo:
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1129
                                    #argument: 'Games::Tetris'
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1130
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1131
                                 #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1132
                                    #label: 'Tic Tac Toe'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1133
                                    #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1134
                                    #value: #openDemo:
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1135
                                    #argument: 'TicTacToeGame'
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1136
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1137
                                 #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1138
                                    #label: 'Tic Tac Toe (2 players)'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1139
                                    #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1140
                                    #value: #startTicTacToe2
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1141
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1142
                              ) nil
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1143
                              nil
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1144
                          )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1145
                      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1146
                       #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1147
                          #label: 'Geometric Designs'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1148
                          #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1149
                          #submenu: 
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1150
                           #(#Menu
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1151
                              
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1152
                               #(
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1153
                                 #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1154
                                    #label: 'Pen Demo'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1155
                                    #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1156
                                    #value: #openDemo:
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1157
                                    #argument: 'PenDemo'
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1158
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1159
                                 #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1160
                                    #label: 'Commander Demo'
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: #openDemo:
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1163
                                    #argument: 'CommanderDemo'
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: '-'
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1167
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1168
                                 #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1169
                                    #label: 'Fractal Plants Demo'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1170
                                    #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1171
                                    #value: #openDemo:
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1172
                                    #argument: 'FractalPlantsDemo'
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: 'Fractal Patterns Demo'
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: #openDemo:
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1178
                                    #argument: 'FractalPatternsDemo'
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1179
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1180
                                 #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1181
                                    #label: 'More Fractal Patterns Demo'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1182
                                    #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1183
                                    #value: #openDemo:
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1184
                                    #argument: 'ArmchairUniverseDemo'
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1185
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1186
                              ) nil
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1187
                              nil
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1188
                          )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1189
                      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1190
                       #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1191
                          #label: 'Simple Animations'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1192
                          #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1193
                          #submenu: 
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1194
                           #(#Menu
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1195
                              
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
                                 #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1198
                                    #label: 'Walking Man'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1199
                                    #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1200
                                    #value: #openDemo:
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1201
                                    #argument: 'Animation'
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1202
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1203
                                 #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1204
                                    #label: 'Globe Demo'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1205
                                    #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1206
                                    #value: #openDemo:
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1207
                                    #argument: 'GlobeDemo'
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1208
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1209
                              ) nil
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1210
                              nil
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1211
                          )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1212
                      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1213
                       #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1214
                          #label: '3D Graphics'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1215
                          #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1216
                          #submenu: 
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1217
                           #(#Menu
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1218
                              
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1219
                               #(
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1220
                                 #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1221
                                    #label: 'Plane'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1222
                                    #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1223
                                    #value: #openDemo:
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1224
                                    #argument: 'GLPlaneDemoView2'
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1225
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1226
                                 #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1227
                                    #label: 'Tetra'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1228
                                    #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1229
                                    #value: #openDemo:
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1230
                                    #argument: 'GLTetraDemoView'
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1231
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1232
                                 #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1233
                                    #label: 'Cube (wireframe)'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1234
                                    #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1235
                                    #value: #openDemo:
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1236
                                    #argument: 'GLWireCubeDemoView'
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1237
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1238
                                 #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1239
                                    #label: 'Cube (solid)'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1240
                                    #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1241
                                    #value: #openDemo:
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1242
                                    #argument: 'GLCubeDemoView'
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1243
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1244
                                 #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1245
                                    #label: 'Sphere (wireframe)'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1246
                                    #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1247
                                    #value: #openDemo:
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1248
                                    #argument: 'GLWireSphereDemoView'
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1249
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1250
                                 #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1251
                                    #label: 'Doughnut (wireframe)'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1252
                                    #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1253
                                    #value: #openDemo:
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1254
                                    #argument: 'GLDoughnutDemoView'
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1255
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1256
                                 #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1257
                                    #label: 'Planet'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1258
                                    #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1259
                                    #value: #openDemo:
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1260
                                    #argument: 'GLPlanetDemoView'
1441
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
                                 #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1263
                                    #label: 'Teapot'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1264
                                    #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1265
                                    #value: #openDemo:
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1266
                                    #argument: 'GLTeapotDemo'
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: 'Logo'
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: #openDemo:
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1272
                                    #argument: 'Logo3DView1'
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1273
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1274
                                 #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1275
                                    #label: 'Rubics Cube'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1276
                                    #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1277
                                    #value: #openDemo:
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1278
                                    #argument: 'RubicsCubeView'
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1279
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1280
                                 #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1281
                                    #label: 'X/Y Graph'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1282
                                    #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1283
                                    #value: #openDemo:
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1284
                                    #argument: 'GLXYGraph'
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
                                 #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1287
                                    #label: '-'
1441
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
                                 #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1290
                                    #label: 'Cube (light)'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1291
                                    #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1292
                                    #value: #openDemo:
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1293
                                    #argument: 'GLCubeDemoView2'
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1294
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1295
                                 #(#MenuItem
1533
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
  1296
                                    #label: 'Cube (light and texture)'
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1297
                                    #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1298
                                    #value: #openDemo:
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1299
                                    #argument: 'GLBrickCubeDemoView'
1441
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: 'Sphere (light)'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1303
                                    #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1304
                                    #value: #openDemo:
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1305
                                    #argument: 'GLSphereDemoView2'
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: 'Colored Octahedron'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1309
                                    #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1310
                                    #value: #openDemo:
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1311
                                    #argument: 'GLOctaHedronDemoView'
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1312
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1313
                              ) nil
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1314
                              nil
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
                      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1317
                       #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1318
                          #label: 'Graphic Editors'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1319
                          #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1320
                          #submenu: 
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1321
                           #(#Menu
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1322
                              
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1323
                               #(
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1324
                                 #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1325
                                    #label: 'Draw Tool'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1326
                                    #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1327
                                    #value: #openDemo:
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1328
                                    #argument: 'DrawTool'
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1329
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1330
                                 #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1331
                                    #label: 'Logic Tool'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1332
                                    #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1333
                                    #value: #openDemo:
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1334
                                    #argument: 'LogicTool'
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1335
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1336
                                 #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1337
                                    #label: 'Paint Demo'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1338
                                    #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1339
                                    #value: #openDemo:
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1340
                                    #argument: 'ColorDrawDemo3'
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1341
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1342
                              ) nil
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1343
                              nil
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1344
                          )
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: 'GUI'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1348
                          #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1349
                          #submenu: 
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1350
                           #(#Menu
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1351
                              
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1352
                               #(
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1353
                                 #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1354
                                    #label: 'Widget Gallery'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1355
                                    #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1356
                                    #value: #openDemo:
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1357
                                    #argument: 'CodingExamples_GUI::GUIDemo'
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1358
                                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1359
                                 #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1360
                                    #label: '-'
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: 'Calculator'
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: #openDemo:
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1366
                                    #argument: 'CodingExamples_GUI::GUIDemoCalculator'
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
                              ) nil
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1369
                              nil
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1370
                          )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1371
                      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1372
                    ) nil
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1373
                    nil
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1374
                )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1375
            )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1376
             #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1377
                #label: 'Help'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1378
                #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1379
                #startGroup: #right
1533
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
  1380
                #activeHelpKey: #help
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1381
                #submenu: 
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1382
                 #(#Menu
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1383
                    
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: 'What''s New'
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: #startWhatsNewDocumentation
1533
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
  1389
                          #activeHelpKey: #helpWhatsNew
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1390
                      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1391
                       #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1392
                          #label: 'Index'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1393
                          #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1394
                          #value: #startDocumentationIndex
1533
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
  1395
                          #activeHelpKey: #helpIndex
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1396
                      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1397
                       #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1398
                          #label: '-'
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1399
                      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1400
                       #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1401
                          #label: 'ST/X Online Documentation'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1402
                          #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1403
                          #value: #startDocumentationTool
1533
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
  1404
                          #activeHelpKey: #helpSTXOnlineDocumentation
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: 'Class Documentation'
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
                          #value: #startClassDocumentation
1533
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
  1410
                          #activeHelpKey: #helpClassDocumentation
1441
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
                       #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1413
                          #label: '-'
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1414
                      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1415
                       #(#MenuItem
1533
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
  1416
                          #label: 'Print Documentation'
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1417
                          #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1418
                          #value: #showBookPrintDocument
1533
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
  1419
                          #activeHelpKey: #helpPrintDocumentation
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1420
                      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1421
                       #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1422
                          #label: '-'
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1423
                      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1424
                       #(#MenuItem
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1425
                          #label: 'Active Help'
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1426
                          #translateLabel: true
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1427
                          #value: #toggleActiveHelp:
1533
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
  1428
                          #activeHelpKey: #helpShowHelp
1479
00a496a27c4e some works for the app builder
tz
parents: 1477
diff changeset
  1429
                          #indication: #activeHelp
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
                    ) nil
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1432
                    nil
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
            )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1435
          ) nil
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1436
          nil
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1437
      )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1438
!
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
menuToolbar
1527
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  1441
    "This resource specification was automatically generated
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  1442
     by the MenuEditor of ST/X."
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  1443
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  1444
    "Do not manually edit this!! If it is corrupted,
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  1445
     the MenuEditor may not be able to read the specification."
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1446
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
     MenuEditor new openOnClass:NewLauncher andSelector:#menuToolbar
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1449
     (Menu new fromLiteralArrayEncoding:(NewLauncher menuToolbar)) startUp
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1450
    "
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1451
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1452
    <resource: #menu>
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1453
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1454
    ^
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1455
     
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1456
       #(#Menu
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1457
          
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1458
           #(
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1459
             #(#MenuItem
1527
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  1460
                #label: 'open workspace'
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  1461
                #isButton: true
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  1462
                #value: #openApplication:
1533
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
  1463
                #activeHelpKey: #toolsWorkspace
1527
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  1464
                #argument: 'Workspace'
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  1465
                #labelImage: #(#ResourceRetriever nil #startWorkspaceIcon)
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1466
            )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1467
             #(#MenuItem
1527
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  1468
                #label: 'open file browser'
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  1469
                #isButton: true
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  1470
                #value: #openApplication:
1533
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
  1471
                #activeHelpKey: #fileFileBrowser
1527
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  1472
                #argument: 'FileBrowser'
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  1473
                #labelImage: #(#ResourceRetriever nil #startFileBrowserIcon)
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1474
            )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1475
             #(#MenuItem
1527
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  1476
                #label: 'save image'
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  1477
                #isButton: true
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  1478
                #value: #saveImageAs
1533
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
  1479
                #activeHelpKey: #fileSaveImageAs
1527
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  1480
                #labelImage: #(#ResourceRetriever nil #saveImageIcon)
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1481
            )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1482
             #(#MenuItem
1527
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  1483
                #label: ''
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
1527
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  1486
                #label: 'open system browser'
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  1487
                #isButton: true
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  1488
                #value: #openApplication:
1533
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
  1489
                #activeHelpKey: #classesSystemBrowser
1527
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  1490
                #argument: 'SystemBrowser'
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  1491
                #labelImage: #(#ResourceRetriever nil #startSystemBrowserIcon)
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1492
            )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1493
             #(#MenuItem
1533
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
  1494
                #label: 'System Browser On Class'
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
  1495
                #isButton: true
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
  1496
                #activeHelpKey: #classesSystemBrowserOnClass
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
  1497
                #labelImage: #(#ResourceRetriever nil #startSystemBrowserOnHistoryClassIcon)
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
  1498
                #submenuChannel: #menuClassHistory
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
  1499
            )
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
  1500
             #(#MenuItem
1527
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  1501
                #label: 'open changes browser'
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  1502
                #isButton: true
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  1503
                #value: #openApplication:
1533
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
  1504
                #activeHelpKey: #toolsChangesBrowser
1527
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  1505
                #argument: 'ChangesBrowser'
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  1506
                #labelImage: #(#ResourceRetriever nil #startChangesBrowserIcon)
1441
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
             #(#MenuItem
1527
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  1509
                #label: ''
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1510
            )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1511
             #(#MenuItem
1527
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  1512
                #label: 'open GUI Builder'
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  1513
                #isButton: true
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  1514
                #value: #openApplication:
1533
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
  1515
                #activeHelpKey: #toolsGUIPainter
1527
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  1516
                #argument: 'UIPainter'
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  1517
                #labelImage: #(#ResourceRetriever nil #startUIPainterIcon)
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1518
            )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1519
             #(#MenuItem
1527
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  1520
                #label: 'open menu editor'
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  1521
                #isButton: true
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  1522
                #value: #openApplication:
1533
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
  1523
                #activeHelpKey: #toolsMenuEditor
1527
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  1524
                #argument: 'MenuEditor'
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  1525
                #labelImage: #(#ResourceRetriever nil #startMenuEditorIcon)
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1526
            )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1527
             #(#MenuItem
1527
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  1528
                #label: 'open image editor'
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  1529
                #isButton: true
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  1530
                #value: #openApplication:
1533
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
  1531
                #activeHelpKey: #toolsImageEditor
1527
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  1532
                #argument: 'ImageEditor'
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  1533
                #labelImage: #(#ResourceRetriever nil #startImageEditorIcon)
1441
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
             #(#MenuItem
1527
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  1536
                #label: ''
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1537
            )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1538
             #(#MenuItem
1533
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
  1539
                #label: 'garbage collect and compress'
1527
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  1540
                #isButton: true
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  1541
                #value: #compressingGarbageCollect
1544
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1542
                #activeHelpKey: #systemGarbageCollectAndCompress
1527
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  1543
                #labelImage: #(#ResourceRetriever nil #garbageCollectIcon)
1441
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1544
            )
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1545
          ) nil
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1546
          nil
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
! !
b39eb6200d20 calculates preferredExtent depending on screen extent
tz
parents: 1437
diff changeset
  1549
1424
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  1550
!NewLauncher class methodsFor:'resources'!
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  1551
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  1552
garbageCollectIcon
1527
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  1553
    "This resource specification was automatically generated
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  1554
     by the ImageEditor of ST/X."
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  1555
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  1556
    "Do not manually edit this!! If it is corrupted,
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  1557
     the ImageEditor may not be able to read the specification."
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  1558
1424
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  1559
    "
1527
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  1560
     ImageEditor openOnClass:self andSelector:#garbageCollectIcon
1424
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  1561
    "
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  1562
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  1563
    <resource: #image>
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  1564
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  1565
    ^Icon
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  1566
        constantNamed:#'NewLauncher garbageCollectIcon'
1527
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  1567
        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
  1568
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  1569
saveImageIcon
1527
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  1570
    "This resource specification was automatically generated
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  1571
     by the ImageEditor of ST/X."
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  1572
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  1573
    "Do not manually edit this!! If it is corrupted,
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  1574
     the ImageEditor may not be able to read the specification."
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  1575
1424
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  1576
    "
1527
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  1577
     ImageEditor openOnClass:self andSelector:#saveImageIcon
1424
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  1578
    "
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  1579
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  1580
    <resource: #image>
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  1581
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  1582
    ^Icon
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  1583
        constantNamed:#'NewLauncher saveImageIcon'
1527
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  1584
        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
  1585
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  1586
startChangesBrowserIcon
1527
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  1587
    "This resource specification was automatically generated
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  1588
     by the ImageEditor of ST/X."
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  1589
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  1590
    "Do not manually edit this!! If it is corrupted,
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  1591
     the ImageEditor may not be able to read the specification."
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  1592
1424
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  1593
    "
1527
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  1594
     ImageEditor openOnClass:self andSelector:#startChangesBrowserIcon
1424
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  1595
    "
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  1596
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  1597
    <resource: #image>
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  1598
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  1599
    ^Icon
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  1600
        constantNamed:#'NewLauncher startChangesBrowserIcon'
1527
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  1601
        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
  1602
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  1603
startFileBrowserIcon
1527
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  1604
    "This resource specification was automatically generated
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  1605
     by the ImageEditor of ST/X."
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  1606
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  1607
    "Do not manually edit this!! If it is corrupted,
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  1608
     the ImageEditor may not be able to read the specification."
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  1609
1424
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  1610
    "
1527
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  1611
     ImageEditor openOnClass:self andSelector:#startFileBrowserIcon
1424
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  1612
    "
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  1613
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  1614
    <resource: #image>
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  1615
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  1616
    ^Icon
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  1617
        constantNamed:#'NewLauncher startFileBrowserIcon'
1527
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  1618
        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
  1619
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  1620
startImageEditorIcon
1527
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  1621
    "This resource specification was automatically generated
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  1622
     by the ImageEditor of ST/X."
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  1623
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  1624
    "Do not manually edit this!! If it is corrupted,
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  1625
     the ImageEditor may not be able to read the specification."
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  1626
1424
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  1627
    "
1527
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  1628
     ImageEditor openOnClass:self andSelector:#startImageEditorIcon
1424
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  1629
    "
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  1630
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  1631
    <resource: #image>
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  1632
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  1633
    ^Icon
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  1634
        constantNamed:#'NewLauncher startImageEditorIcon'
1527
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  1635
        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
  1636
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  1637
startMenuEditorIcon
1527
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  1638
    "This resource specification was automatically generated
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  1639
     by the ImageEditor of ST/X."
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  1640
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  1641
    "Do not manually edit this!! If it is corrupted,
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  1642
     the ImageEditor may not be able to read the specification."
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  1643
1424
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  1644
    "
1527
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  1645
     ImageEditor openOnClass:self andSelector:#startMenuEditorIcon
1424
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  1646
    "
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  1647
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  1648
    <resource: #image>
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  1649
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  1650
    ^Icon
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  1651
        constantNamed:#'NewLauncher startMenuEditorIcon'
1527
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  1652
        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
  1653
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  1654
startSystemBrowserIcon
1527
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  1655
    "This resource specification was automatically generated
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  1656
     by the ImageEditor of ST/X."
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  1657
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  1658
    "Do not manually edit this!! If it is corrupted,
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  1659
     the ImageEditor may not be able to read the specification."
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  1660
1424
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  1661
    "
1527
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  1662
     ImageEditor openOnClass:self andSelector:#startSystemBrowserIcon
1424
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  1663
    "
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  1664
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  1665
    <resource: #image>
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  1666
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  1667
    ^Icon
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  1668
        constantNamed:#'NewLauncher startSystemBrowserIcon'
1527
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  1669
        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
  1670
1533
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
  1671
startSystemBrowserOnHistoryClassIcon
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
  1672
    "This resource specification was automatically generated
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
  1673
     by the ImageEditor of ST/X."
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
  1674
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
  1675
    "Do not manually edit this!! If it is corrupted,
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
  1676
     the ImageEditor may not be able to read the specification."
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
  1677
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
  1678
    "
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
  1679
     ImageEditor openOnClass:self andSelector:#startSystemBrowserOnHistoryClassIcon
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
  1680
    "
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
  1681
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
  1682
    <resource: #image>
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
  1683
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
  1684
    ^Icon
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
  1685
        constantNamed:#'NewLauncher startSystemBrowserOnHistoryClassIcon'
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
  1686
        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@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@C @@@@8@8@@N@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@N@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@8@@@8@8@@@@@@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:'??0@@O?<@@C??@@@??0@@O?<@@C??@@@@ @@@@H@@@@B@?? A0O?8@_??>@G@?? @ O?8@H@@@@B@?? A0O?8@_??>@G@?? @@O?8@@@@@@@@@@@%]7/TITIJUBUBR%P=H$/TIQIJRBTRR$ %\'')P@@a') ; yourself); yourself]!
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
  1687
1424
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  1688
startUIPainterIcon
1527
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  1689
    "This resource specification was automatically generated
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  1690
     by the ImageEditor of ST/X."
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  1691
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  1692
    "Do not manually edit this!! If it is corrupted,
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  1693
     the ImageEditor may not be able to read the specification."
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  1694
1424
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  1695
    "
1527
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  1696
     ImageEditor openOnClass:self andSelector:#startUIPainterIcon
1424
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  1697
    "
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  1698
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  1699
    <resource: #image>
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  1700
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  1701
    ^Icon
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  1702
        constantNamed:#'NewLauncher startUIPainterIcon'
1527
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  1703
        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
  1704
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  1705
startWorkspaceIcon
1527
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  1706
    "This resource specification was automatically generated
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  1707
     by the ImageEditor of ST/X."
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  1708
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  1709
    "Do not manually edit this!! If it is corrupted,
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  1710
     the ImageEditor may not be able to read the specification."
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  1711
1424
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  1712
    "
1527
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  1713
     ImageEditor openOnClass:self andSelector:#startWorkspaceIcon
1424
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  1714
    "
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  1715
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  1716
    <resource: #image>
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  1717
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  1718
    ^Icon
0312a2765a42 new icon method format applied
tz
parents: 1423
diff changeset
  1719
        constantNamed:#'NewLauncher startWorkspaceIcon'
1527
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  1720
        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
  1721
1544
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1722
!NewLauncher methodsFor:'aspects'!
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1723
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1724
enableDangerousMenuItemsInRemoteLauncher
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1725
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1726
    |holder|
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1727
    (holder := builder bindingAt:#enableDangerousMenuItemsInRemoteLauncher) isNil ifTrue:[
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1728
        builder aspectAt:#enableDangerousMenuItemsInRemoteLauncher put:(holder :=  true asValue).
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1729
    ].
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1730
    ^ holder
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1731
!
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1732
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1733
javaSupportPresent
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1734
    ^ (JavaVM notNil and:[JavaVM isBehavior and:[JavaVM isLoaded]]) asValue
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1735
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1736
    "Created: / 13.2.1998 / 14:25:59 / cg"
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1737
    "Modified: / 13.2.1998 / 14:26:31 / cg"
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1738
! !
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1739
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1740
!NewLauncher methodsFor:'change & update'!
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1741
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1742
update:something with:aParameter from:changedObject
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1743
    "care for project changes & update my infoView"
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1744
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1745
    ((something == #currentProject) or:[changedObject == Project]) ifTrue: [self updateInfo]
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1746
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1747
!
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1748
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1749
updateInfo
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1750
    "update the infoView from the current project"
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1751
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1752
    |project projectName projectDir packageName defNameSpace msg args projectInfo|
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1753
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1754
    (Project isNil or:[(project := Project current) isNil]) ifTrue:[
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1755
        projectName := '* none *'.
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1756
        projectDir := '.'.
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1757
        packageName := '* none *'.
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1758
    ] ifFalse:[
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1759
        projectName := project name.
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1760
        projectDir := project directory.
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1761
        packageName := project packageName.
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1762
        defNameSpace := project defaultNameSpace.
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1763
    ].
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1764
    defNameSpace isNil ifTrue:[
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1765
        defNameSpace := Smalltalk.
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1766
    ].
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1767
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1768
    defNameSpace == Smalltalk ifTrue:[
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1769
        msg := 'Project: ''%1'' fileOut to: ''%3'' package: ''%2'''.
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1770
        args := Array 
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1771
                    with:projectName
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1772
                    with:packageName 
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1773
                    with:(projectDir contractTo:30).
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1774
    ] ifFalse:[
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1775
        msg := 'Project: ''%1'' fileOut to: ''%3'' package: ''%2''  nameSpace: %4'.
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1776
        args := Array 
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1777
                        with:projectName
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1778
                        with:packageName 
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1779
                        with:(projectDir contractTo:30)
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1780
                        with:defNameSpace name.
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1781
    ].
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1782
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1783
    self valueOfInfoLabel value:(projectInfo := resources string:msg withArgs:args).
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1784
    ^projectInfo
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1785
! !
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1786
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1787
!NewLauncher methodsFor:'help'!
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1788
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1789
defaultInfoLabel
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1790
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1791
    ^self updateInfo
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1792
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1793
! !
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1794
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1795
!NewLauncher methodsFor:'private'!
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1796
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1797
changeViewStyleTo:newStyle
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1798
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1799
    newStyle notNil ifTrue:[
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1800
        self withWaitCursorDo:[
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1801
            transcript showCR:'change style to ' , newStyle , ' ...'.
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1802
            View defaultStyle:newStyle asSymbol.
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1803
        ].
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1804
        self reOpen
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1805
    ]
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1806
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1807
!
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1808
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1809
findWindow:title
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1810
    "a helper for find & destroy and find & raise operations;
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1811
     let user choose a view and return it; return nil on cancel"
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1812
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1813
    |knownTopViews nameList box|
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1814
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1815
    knownTopViews := IdentitySet new.
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1816
    Screen allScreens do:[:aScreen |
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1817
        aScreen knownViews do:[:aView |
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1818
            |top showIt wg|
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1819
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1820
            aView notNil ifTrue:[
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1821
                top := aView topView.
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1822
                (top isKindOf:DebugView) ifTrue:[
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1823
                    "/ although modal, show it.
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1824
                    showIt := top realized
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1825
                ] ifFalse:[
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1826
                    wg := top windowGroup.
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1827
                    showIt := (wg notNil and:[wg isModal not]).
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1828
                ].
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1829
                showIt ifTrue:[
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1830
                    knownTopViews add:top
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1831
                ]
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1832
            ]
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1833
        ]
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1834
    ].
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1835
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1836
    knownTopViews := knownTopViews asOrderedCollection.
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1837
    knownTopViews sort:[:v1 :v2 | |l1 l2|
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1838
                                l1 := v1 label ? 'aView'.
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1839
                                l2 := v2 label ? 'aView'.
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1840
                                l1 < l2
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1841
                       ].
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1842
    nameList := knownTopViews collect:[:v | 
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1843
                                        |isDead wg p l|
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1844
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1845
                                        l := v label ? 'aView'.
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1846
                                        ((wg := v windowGroup) notNil
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1847
                                        and:[(p := wg process) notNil
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1848
                                        and:[p state ~~ #dead]]) ifTrue:[
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1849
                                            l  
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1850
                                        ] ifFalse:[
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1851
                                            l , ' (dead ?)'
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1852
                                        ]
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1853
                                      ].
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1854
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1855
    box := ListSelectionBox new.
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1856
    box noEnterField.
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1857
    box list:nameList.
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1858
    box label:(resources string:'view selection').
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1859
    box title:(resources string:title) withCRs.
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1860
    box action:[:selection |
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1861
        |v|
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1862
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1863
        v := knownTopViews at:box selectionIndex.
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1864
        box destroy.
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1865
        ^ v
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1866
    ].
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1867
    box extent:400@300.
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1868
    box showAtPointer.
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1869
    ^ nil
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1870
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1871
!
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1872
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1873
fontBoxForEncoding:encodingMatch
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1874
    "open a fontBox, showing fonts which match some encoding
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1875
     (used when changing to japanese ...)"
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1876
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1877
    |box y b
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1878
     labelDef buttonDef listDef menuDef textDef
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1879
     models labels allOfThem filter|
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1880
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1881
    encodingMatch notNil ifTrue:[
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1882
        filter := [:f | f encoding notNil 
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1883
                        and:[encodingMatch match:f encoding]].
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1884
    ].
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1885
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1886
    models := OrderedCollection new.
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1887
    labels := OrderedCollection new.
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1888
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1889
    models add:(allOfThem := nil asValue).
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1890
    models add:(labelDef := Label defaultFont asValue).
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1891
    models add:(buttonDef := Button defaultFont asValue).
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1892
    models add:(listDef := SelectionInListView defaultFont asValue).
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1893
    models add:(menuDef := MenuView defaultFont asValue).
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1894
    models add:(textDef := TextView defaultFont asValue).
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1895
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1896
    box := Dialog new.
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1897
    box label:(resources string:'Font settings').
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1898
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1899
    models
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1900
    with:(resources array:#('all' 'labels' 'buttons' 'lists' 'menus' 'edit text'))
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1901
    do:[:model :title |
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1902
        |y2 lbl f i|
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1903
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1904
        f := model value.
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1905
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1906
        (box addTextLabel:title) adjust:#left.
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1907
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1908
        y := box yPosition.
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1909
        b := box addComponent:(Button label:(resources string:'change ...')) tabable:true.
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1910
        b relativeExtent:nil; extent:(b preferredExtent).
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1911
        y2 := box yPosition.
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1912
        box yPosition:y.
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1913
        i := box leftIndent.
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1914
        box leftIndent:(b widthIncludingBorder + View viewSpacing).
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1915
        (lbl := box addTextLabel:'')
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1916
            adjust:#left;
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1917
            font:(model value);
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1918
            labelChannel:(BlockValue 
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1919
                            with:[:v | |f|
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1920
                                f := v value.
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1921
                                f isNil ifTrue:[
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1922
                                    ''
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1923
                                ] ifFalse:[
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1924
                                    f userFriendlyName
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1925
                                ]
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1926
                            ]
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1927
                            argument:model).
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1928
        labels add:lbl.
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1929
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1930
        box leftIndent:i.
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1931
        box yPosition:(box yPosition max:y2).
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1932
        box addVerticalSpace.
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1933
        box addHorizontalLine.
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1934
        box addVerticalSpace.
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1935
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1936
        b action:[
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1937
            |f|
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1938
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1939
            f := FontPanel 
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1940
                fontFromUserInitial:(model value) 
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1941
                              title:(resources string:'font for %1' with:title)
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1942
                             filter:filter.
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1943
            f notNil ifTrue:[
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1944
                model == allOfThem ifTrue:[
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1945
                    models do:[:m | m value:f].
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1946
                    labels do:[:l | l font:f]
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1947
                ] ifFalse:[
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1948
                    model value:f.  
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1949
                    lbl font:f.
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1950
                ].
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1951
            ]
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1952
        ].
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1953
        model == allOfThem ifTrue:[
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1954
            box addVerticalSpace
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1955
        ]
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1956
    ].
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1957
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1958
    box addAbortButton; addOkButton.
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1959
    (box addButton:(Button label:(resources string:'defaults')) before:nil)
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1960
        action:[
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1961
            "/ fetch defaults
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1962
            View updateAllStyleCaches.
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1963
            labelDef value: Label defaultFont.
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1964
            buttonDef value: Button defaultFont.
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1965
            listDef value: SelectionInListView defaultFont.
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1966
            menuDef value: MenuView defaultFont.
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1967
            textDef value: TextView defaultFont.
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1968
        ].
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1969
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1970
    box open.
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1971
    box accepted ifTrue:[
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1972
        Label defaultFont:labelDef value.
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1973
        Button defaultFont:buttonDef value.
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1974
        Toggle defaultFont:buttonDef value.
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1975
        SelectionInListView defaultFont:listDef value.
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1976
        MenuView defaultFont:menuDef value.
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1977
        PullDownMenu defaultFont:menuDef value.
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1978
        TextView defaultFont:textDef value.
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1979
        EditTextView defaultFont:textDef value.
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1980
        CodeView defaultFont:textDef value.
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1981
    ].
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1982
    box destroy.
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1983
    ^ box accepted
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1984
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1985
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1986
!
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1987
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1988
menuClassHistory
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1989
    "returns a sub menu on the history of the classes"
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1990
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1991
    |menu|
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1992
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1993
    menu := Menu new receiver: self.
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1994
    menu addItemGroup: (BrowserView classHistory collect:
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1995
        [:histEntry|  
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1996
            MenuItem new 
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1997
                label: (histEntry upTo: $ ); 
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1998
                value: [SystemBrowser open loadFromMessage: histEntry]; 
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  1999
                activeHelpKey: #classesSystemBrowserOnClass
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2000
        ]
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2001
    ).
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2002
    menu addItem: (MenuItem new label: 'Empty History'; value: [BrowserView classHistory removeAll]; activeHelpKey: #historyEmptyMenu).
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2003
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2004
    ^menu
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2005
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2006
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2007
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2008
!
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2009
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2010
openApplication: className
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2011
     "open an application, given by the classe name."
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2012
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2013
    self openApplication:className nameSpace:nil
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2014
!
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2015
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2016
openApplication:className nameSpace:aNameSpace
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2017
    "open some application, given the classes name.
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2018
     Look for it in Smalltalk and the given nameSpace"
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2019
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2020
    self openApplication:className nameSpace:aNameSpace with:#open
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2021
!
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2022
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2023
openApplication:className nameSpace:aNameSpace with:aSelector
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2024
    "open some application, given the classes name.
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2025
     Look for it in Smalltalk and the given nameSpace"
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2026
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2027
    |cls|
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2028
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2029
    cls := Smalltalk at:className asSymbol.
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2030
    cls isNil ifTrue:[
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2031
        "/ look if its in the nameSpace
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2032
        aNameSpace notNil ifTrue:[
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2033
            cls := aNameSpace at:className asSymbol
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2034
        ]
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2035
    ].
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2036
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2037
    cls isNil ifTrue:[
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2038
        self warn:(resources string:'Sorry, the %1 class is not available.' with:className).
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2039
    ] ifFalse:[
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2040
        Autoload autoloadFailedSignal handle:[:ex |
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2041
            self warn:(resources string:'Sorry, the %1 class seems to be not available.' with:className)
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2042
        ] do:[
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2043
            self withWaitCursorDo:[cls perform:aSelector]
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2044
        ]
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2045
    ]
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2046
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2047
!
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2048
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2049
saveAllViews
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2050
    "tell each topview that we are going to terminate and give it chance
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2051
     to save its contents."
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2052
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2053
    ObjectMemory changed:#aboutToExit
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2054
!
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2055
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2056
saveScreenImage:anImage defaultName:defaultName
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2057
    "save an image into a file 
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2058
     - ask user for filename using a fileSelectionBox."
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2059
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2060
    |fileName|
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2061
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2062
    fileName := Dialog
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2063
                    requestFileName:(resources string:'save image in:')
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2064
                    default:(defaultName , '.tiff')
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2065
                    ok:(resources string:'save')
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2066
                    abort:(resources string:'cancel')
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2067
                    pattern:'*.tiff'.
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2068
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2069
    fileName notNil ifTrue:[
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2070
        anImage saveOn:fileName
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2071
    ].
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2072
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2073
    "Modified: / 21.2.1996 / 13:09:28 / cg"
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2074
    "Created: / 29.1.1998 / 23:20:36 / cg"
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2075
!
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2076
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2077
showDocumentation:aRelativeDocFilePath
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2078
    "open an HTML browser on some document"
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2079
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2080
    "
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2081
     although that one is not yet finished,
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2082
     its better than nothing ...
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2083
    "
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2084
    HTMLDocumentView notNil ifTrue:[
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2085
        self withWaitCursorDo:[
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2086
            "
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2087
             temporary kludge;
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2088
             not all machines can autoload binaries;
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2089
             however, on my SGI (which can) we want it
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2090
             to load automatically.
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2091
            "
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2092
            HTMLDocumentView isLoaded ifFalse:[
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2093
                ErrorSignal catch:[HTMLDocumentView autoload]
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2094
            ].
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2095
            HTMLDocumentView isLoaded ifTrue:[
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2096
                HTMLDocumentView openFullOnDocumentationFile:aRelativeDocFilePath. 
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2097
                ^ self
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2098
            ].
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2099
        ]
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2100
    ].
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2101
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2102
    self warn:'Sorry, the ST/X HTML reader is not
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2103
included in this release.
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2104
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2105
Please use Mosaic, netscape, chimera or any
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2106
other HTML viewer to see the documentation.
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2107
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2108
The documentation is found in the ''doc/online'' directory.'.
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2109
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2110
    "Modified: / 25.2.1998 / 21:24:20 / cg"
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2111
! !
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2112
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2113
!NewLauncher methodsFor:'queries'!
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2114
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2115
preferredExtent
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2116
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2117
    ^super preferredExtent max: Screen current extent//(2.5@3.5)
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2118
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2119
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2120
!
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2121
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2122
processName
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2123
    "for monitors only - my name"
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2124
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2125
    ^ 'ST/X Launcher'
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2126
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2127
!
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2128
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2129
transcript
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2130
    "my transcript"
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2131
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2132
    ^ transcript
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2133
! !
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2134
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2135
!NewLauncher methodsFor:'startup / release'!
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2136
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2137
addTopViewsToCurrentProject
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2138
    "ignored here - the launcher is always global (i.e. not project private)."
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2139
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2140
    ^ self
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2141
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2142
!
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2143
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2144
allButOpenInterface:anInterface
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2145
    "sent by my superclass to open up my interface"
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2146
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2147
    "/ if there is already a transcript on my device,
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2148
    "/ I am a slave launcher with limited functionality.
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2149
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2150
    Transcript notNil ifTrue:[
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2151
        Transcript ~~ Stderr ifTrue:[
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2152
            isMainLauncher := (Transcript graphicsDevice == device).
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2153
            self enableDangerousMenuItemsInRemoteLauncher value: isMainLauncher.
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2154
        ] ifFalse:[
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2155
            isMainLauncher := true
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2156
        ]
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2157
    ] ifFalse:[
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2158
        isMainLauncher := true
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2159
    ].
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2160
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2161
    super allButOpenInterface:anInterface.
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2162
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2163
    self setupTranscript; updateInfo.
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2164
    Project notNil ifTrue: [Project addDependent:self].
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2165
    self class openLaunchers add: self.
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2166
    ^ builder
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2167
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2168
    "Created: / 5.2.1998 / 19:45:07 / cg"
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2169
    "Modified: / 5.2.1998 / 19:56:43 / cg"
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2170
!
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2171
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2172
closeRequest
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2173
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2174
    (self confirm:(resources string:'really close %1 ?' with:self class name)) ifTrue:[
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2175
        super closeRequest
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2176
    ]
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2177
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2178
!
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2179
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2180
postOpenWith:aBuilder
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2181
    "increase my priority"
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2182
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2183
    self builder window windowGroup process priority:(Processor userSchedulingPriority + 1).
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2184
    super postOpenWith:aBuilder.
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2185
    self startClockOnTimedBlock: 
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2186
    [
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2187
        |now hours minutes suffix|
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2188
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2189
        now := Time now.
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2190
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2191
        hours := now hours.
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2192
        minutes := now minutes printString.
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2193
        suffix := ''.
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2194
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2195
        (resources at:'TIME_FORMAT' ifAbsent:12) == 12 ifTrue:[
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2196
            suffix := ' am '.  
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2197
            hours > 12 ifTrue: [hours := hours - 12. suffix := ' pm '].
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2198
        ].
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2199
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2200
        minutes size = 1 ifTrue: [minutes := '0', minutes].
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2201
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2202
        self valueOfTimeLabel value: hours printString, ':', minutes, suffix.
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2203
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2204
        Processor removeTimedBlock: timeBlock.
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2205
        Processor addTimedBlock: timeBlock afterSeconds: 1
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2206
    ].
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2207
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2208
!
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2209
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2210
reOpen
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2211
    "reopen a new launcher.
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2212
     for now (since style & language settings currently do
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2213
     not affect living views ...)"
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2214
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2215
    |contents builder newLauncher|
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2216
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2217
    contents := transcript endEntry; list.
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2218
    builder := self class openAt:(self window origin).
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2219
    builder window waitUntilVisible.
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2220
    newLauncher := builder application.
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2221
    newLauncher transcript list:contents; hideCursor; scrollToBottom; cursorToEnd; showCursor.
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2222
    DebugView newDebugger.
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2223
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2224
    "Modified: / 5.2.1998 / 20:08:31 / cg"
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2225
!
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2226
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2227
restarted
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2228
    "image restart - since WindowGroup recreates the process with
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2229
     the default priority, we have to raise the prio again.
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2230
     Mhmh - this looks like a bug to me ...
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2231
     Also, the cursor (which was stored as a write or waitCursor) must
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2232
     be reset to normal."
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2233
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2234
    Processor activeProcess priority:(Processor userSchedulingPriority + 1).
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2235
    builder window extent: self preferredExtent.
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2236
    super restarted
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2237
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2238
!
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2239
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2240
saveAndTerminateRequest
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2241
    "some windowManagers can send this, to shutDown an application
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2242
     but let it save its state before, for later restart. 
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2243
     Although I have not yet encountered such a windowManager,
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2244
     we are already prepared for this ;-)"
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2245
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2246
    self snapshot.
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2247
    super saveAndTerminateRequest
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2248
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2249
!
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2250
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2251
setupTranscript 
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2252
    "create the transcript view"
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2253
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2254
    |launcher oldLauncher|
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2255
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2256
    "/ check if this is an additional launcher on a remote display.
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2257
    "/ if so, do not close the real launcher.
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2258
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2259
    (Transcript notNil and:[Transcript ~~ Stderr]) ifTrue:[
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2260
        isMainLauncher ifTrue:[
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2261
            launcher := Transcript topView application
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2262
        ] ifFalse:[
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2263
            launcher := self class current.
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2264
        ].
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2265
        launcher notNil ifTrue:[
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2266
            launcher window graphicsDevice == device ifTrue:[
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2267
                OpenLaunchers notNil ifTrue:[
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2268
                    OpenLaunchers removeIdentical:launcher ifAbsent:nil.
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2269
                ].
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2270
                (oldLauncher := Smalltalk at: #Launcher) notNil
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2271
                    ifTrue: [oldLauncher openLaunchers removeIdentical:launcher ifAbsent:nil].
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2272
                launcher close
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2273
            ]
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2274
        ]
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2275
    ].
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2276
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2277
    transcript := (builder componentAt: #transcriptView) subViews first.
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2278
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2279
    isMainLauncher ifTrue:[
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2280
        transcript beTranscript.
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2281
    ] ifFalse:[
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2282
        transcript showCR:'**************** Notice ***********************'.
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2283
        transcript showCR:'**       this is NOT the Transcript          **'.
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2284
        transcript showCR:'** The real Transcript is on the main screen **'.
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2285
        transcript showCR:'**                                           **'.
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2286
        transcript showCR:'** Menus affecting common state are disabled **'.
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2287
        transcript showCR:'***********************************************'.
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2288
    ]
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2289
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2290
    "Modified: / 29.1.1998 / 22:06:03 / cg"
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2291
!
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2292
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2293
uninitialize
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2294
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2295
    super uninitialize.
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2296
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2297
    Display beep.
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2298
    OpenLaunchers notNil ifTrue:[OpenLaunchers removeIdentical:self ifAbsent:nil].
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2299
    Project notNil ifTrue:[Project removeDependent:self]
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2300
! !
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2301
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2302
!NewLauncher methodsFor:'user actions - about'!
1533
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
  2303
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
  2304
openLicenseConditions
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
  2305
    "open an HTML browser on the 'LICENCE' document"
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
  2306
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
  2307
    self withWaitCursorDo:[
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
  2308
        |lang doc|
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
  2309
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
  2310
        ((lang := Smalltalk language) = 'de'
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
  2311
        or:[lang = 'german']) ifTrue:[
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
  2312
            doc := 'german/LICENCE_STX.html'
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
  2313
        ] ifFalse:[
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
  2314
            doc := 'english/LICENCE_STX.html'
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
  2315
        ].
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
  2316
        doc := resources at:'LICENCEFILE' default:doc.
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
  2317
        self showDocumentation:('../' , doc)
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
  2318
    ]
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
  2319
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
  2320
    "Created: / 5.2.1998 / 21:43:19 / cg"
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
  2321
    "Modified: / 25.2.1998 / 21:23:41 / cg"
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
  2322
! !
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
  2323
1544
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2324
!NewLauncher methodsFor:'user actions - classes'!
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2325
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2326
browseAllBreakAndTracePoints
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2327
    "open a browser showing all breakPointed/traced methods
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2328
     (but, to get rid of them, there is also a menu itme to remove them all)"
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2329
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2330
    SystemBrowser browseMethods: WrappedMethod allInstances title:'all breakPointed/traced methods'
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2331
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2332
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2333
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2334
browseImplementors
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2335
    "open an implementors- browser after asking for a selector"
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2336
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2337
    |enterBox selector|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2338
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2339
    enterBox := EnterBox 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2340
                    title:(resources at:'Browse implementors of:') withCRs
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2341
                    okText:(resources at:'browse')
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2342
                    action:[:acceptedString | selector := acceptedString].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2343
    enterBox showAtPointer.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2344
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2345
    selector notNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2346
        self withWaitCursorDo:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2347
            SystemBrowser browseImplementorsOf:selector
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2348
        ]  
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2349
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2350
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2351
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2352
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2353
browseResources
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2354
    "open a resource- browser after asking for a resource string"
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2355
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2356
    |box resourceHolder valueHolder component rsrc value t anyString|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2357
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2358
    anyString := resources string:'* any *'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2359
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2360
    resourceHolder := ValueHolder newString.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2361
    valueHolder := '*' asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2362
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2363
    box := DialogBox new.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2364
    box label:(resources at:'Resource search:').
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2365
    component := box addTextLabel:(resources at:'Search for methods which contain a\particular resource specification') withCRs.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2366
    component adjust:#left.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2367
    box addVerticalSpace:10.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2368
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2369
    component := box addTextLabel:(resources at:'Resource symbol (empty for any; no matchPattern allowed):') withCRs.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2370
    component adjust:#left.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2371
    component :=  box addComboBoxOn:resourceHolder tabable:true.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2372
    component list:((Array with:anyString) , #('canvas' 'menu' 'keyboard' 'style' 'image' 'programMenu' nil 'needsFix')).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2373
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2374
    component := box addTextLabel:(resources at:'Resource value (* for any; matchPattern is allowed):') withCRs.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2375
    component adjust:#left.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2376
    box addInputFieldOn:valueHolder tabable:true.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2377
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2378
    box addVerticalSpace:10.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2379
    box addHelpButtonFor:'programming/language.html#RESOURCEDEFS'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2380
    box addAbortButton; addOkButton.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2381
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2382
    box showAtPointer.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2383
    box destroy.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2384
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2385
    box accepted ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2386
        rsrc := resourceHolder value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2387
        value := valueHolder value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2388
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2389
        (rsrc isNil or:[rsrc isEmpty or:[rsrc = '*' or:[rsrc = anyString]]]) ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2390
            t := 'methods with any resource'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2391
            rsrc := nil
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2392
        ] ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2393
            t := 'methods with #' , rsrc , '-resource'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2394
            rsrc := rsrc withoutSeparators asSymbol
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2395
        ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2396
        (value isNil or:[value isEmpty or:[value = '*']]) ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2397
            t := t , ' and any value'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2398
            value := nil
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2399
        ] ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2400
            t := t , ' and value ' , value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2401
        ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2402
        self withWaitCursorDo:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2403
            SystemBrowser browseForResource:rsrc
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2404
                          containing:value
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2405
                          in:(Smalltalk allClasses)
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2406
                          title:t
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2407
        ]  
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2408
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2409
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2410
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2411
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2412
browseSenders
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2413
    "open a senders- browser after asking for a selector"
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2414
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2415
    |enterBox selector|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2416
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2417
    enterBox := EnterBox 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2418
                    title:(resources at:'Browse senders of:') withCRs
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2419
                    okText:(resources at:'browse')
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2420
                    action:[:acceptedString | selector := acceptedString].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2421
    enterBox showAtPointer.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2422
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2423
    selector notNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2424
        self withWaitCursorDo:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2425
            SystemBrowser browseAllCallsOn:selector
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2426
        ]  
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2427
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2428
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2429
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2430
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2431
browseUndeclared
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2432
    "open a browser on methods refering to undeclared variables"
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2433
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2434
    self withWaitCursorDo:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2435
        SystemBrowser 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2436
            browseReferendsOf:(Smalltalk underclaredPrefix , '*')
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2437
            title:(resources string:'references to undeclared variables')
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2438
            warnIfNone:true
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2439
    ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2440
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2441
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2442
1467
59bf087a0423 missing call added + using own extent calc routine for opening
tz
parents: 1466
diff changeset
  2443
removeAllBreakAndTracePoints
59bf087a0423 missing call added + using own extent calc routine for opening
tz
parents: 1466
diff changeset
  2444
    "remove all break- and trace points"
59bf087a0423 missing call added + using own extent calc routine for opening
tz
parents: 1466
diff changeset
  2445
59bf087a0423 missing call added + using own extent calc routine for opening
tz
parents: 1466
diff changeset
  2446
    MessageTracer cleanup
59bf087a0423 missing call added + using own extent calc routine for opening
tz
parents: 1466
diff changeset
  2447
59bf087a0423 missing call added + using own extent calc routine for opening
tz
parents: 1466
diff changeset
  2448
!
59bf087a0423 missing call added + using own extent calc routine for opening
tz
parents: 1466
diff changeset
  2449
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2450
startClassBrowser
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2451
    "open a classBrowser; asks for class"
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2452
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2453
    SystemBrowser askThenBrowseClass
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2454
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2455
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2456
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2457
startClassHierarchyBrowser
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2458
    "open a classHierarchyBrowser; asks for class"
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2459
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2460
    SystemBrowser askThenBrowseClassHierarchy
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2461
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2462
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2463
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2464
startFullClassBrowser
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2465
    "open a fullClass systemBrowser; asks for class"
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2466
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2467
    SystemBrowser askThenBrowseFullClassProtocol
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2468
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2469
! !
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2470
1544
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2471
!NewLauncher methodsFor:'user actions - demos'!
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2472
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2473
openDemo:className
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2474
    "open a demo, given its name.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2475
     Looks in both the Smalltalk- and the Demos-Namespace
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2476
     for that class."
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2477
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2478
    self openApplication:className nameSpace:Demos
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2479
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2480
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2481
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2482
startTicTacToe2
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2483
    "opens a 2-user ticTacToe game"
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2484
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2485
    self openApplication:'TicTacToeGame' nameSpace:Games with:#open2UserGame
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2486
! !
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2487
1544
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2488
!NewLauncher methodsFor:'user actions - file'!
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2489
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2490
exit
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2491
    "saves a snapshot image and exits, after asking for a fileName"
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2492
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2493
    |fileName saveAndExit box|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2494
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2495
    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
  2496
        okText:' Save & Exit ' 
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2497
        abortText:'Cancel'
1422
bd1798d4454c exit dialog changed + info bar as subSpec to class ToolApplicationModel moved
tz
parents: 1420
diff changeset
  2498
        action:[:str|fileName := str. saveAndExit := true].
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2499
    box label: 'Exiting ST/X'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2500
    box initialText: ObjectMemory nameForSnapshot.
1422
bd1798d4454c exit dialog changed + info bar as subSpec to class ToolApplicationModel moved
tz
parents: 1420
diff changeset
  2501
    box okText2:'Exit' action2:[:str|saveAndExit := false]; showAtPointer.
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2502
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2503
    saveAndExit notNil
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2504
    ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2505
        saveAndExit
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2506
        ifTrue:
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2507
        [
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2508
            self saveImageAs: fileName
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2509
        ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2510
        Smalltalk exit
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
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2516
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2517
objectModuleDialog
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2518
    "opens a moduleInfo dialog"
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2519
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2520
    |allModules moduleNames
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2521
     allObjects methodObjects methodNames 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2522
     cObjects cObjectNames
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2523
     otherObjects otherObjectNames
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2524
     box l handles unloadButton
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2525
     list1 list2 listView1 listView2
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2526
     y panel 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2527
     showBuiltIn showModules showMethods showCObjects showOthers
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2528
     moduleListUpdater check canDoIt menu|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2529
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2530
    showBuiltIn := true asValue. 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2531
    canDoIt := ObjectFileLoader notNil and:[ObjectFileLoader canLoadObjectFiles].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2532
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2533
    showModules := canDoIt asValue. 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2534
    showMethods := canDoIt asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2535
    showCObjects := canDoIt asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2536
    showOthers := canDoIt asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2537
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2538
    list1 := SelectionInList new.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2539
    list2 := SelectionInList new.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2540
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2541
    moduleListUpdater := [
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2542
            |l|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2543
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2544
            list2 list:nil.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2545
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2546
            l := Array new.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2547
            handles := Array new.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2548
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2549
            (showModules value or:[showBuiltIn value]) ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2550
                allModules := ObjectMemory binaryModuleInfo asOrderedCollection.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2551
                (showBuiltIn value and:[showModules value]) ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2552
                    allModules := allModules select:[:i |
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2553
                        |wantToSee|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2554
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2555
                        wantToSee := i dynamic.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2556
                        showBuiltIn value ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2557
                            wantToSee := wantToSee not
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2558
                        ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2559
                        wantToSee
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2560
                    ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2561
                ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2562
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2563
                "/ sorting by reverse id brings newest ones to the top (a side effect)
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2564
                allModules sort:[:a :b | (a id) > (b id)].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2565
                moduleNames := allModules collect:[:entry | entry name].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2566
                l := l , moduleNames.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2567
                handles := handles , allModules.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2568
            ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2569
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2570
            showMethods value ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2571
                allObjects := ObjectFileLoader loadedObjectHandles.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2572
                methodObjects := (allObjects select:[:h | h isMethodHandle]) asArray.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2573
                methodNames := methodObjects collect:[:mH | mH method isNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2574
                                                                'compiled method - removed' , ' (in ' , mH pathName , ')'
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2575
                                                            ] ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2576
                                                                'compiled method ' , mH method whoString , ' (in ' , mH pathName , ')'
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2577
                                                            ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2578
                                                     ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2579
                l := l , methodNames.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2580
                handles := handles , methodObjects.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2581
            ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2582
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2583
            showCObjects value ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2584
                allObjects := ObjectFileLoader loadedObjectHandles.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2585
                cObjects := (allObjects select:[:h | h isFunctionObjectHandle]) asArray.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2586
                cObjectNames := cObjects collect:[:entry | entry pathName].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2587
                l := l , cObjectNames.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2588
                handles := handles , cObjects.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2589
            ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2590
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2591
            showOthers value ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2592
                allObjects := ObjectFileLoader loadedObjectHandles.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2593
                otherObjects := (allObjects select:[:h | (h isFunctionObjectHandle
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2594
                                                         or:[h isMethodHandle
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2595
                                                         or:[h isClassLibHandle]]) not]) asArray.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2596
                otherObjectNames := otherObjects collect:[:entry | entry pathName].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2597
                l := l , otherObjectNames.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2598
                handles := handles , otherObjects.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2599
            ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2600
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2601
            list1 list:l.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2602
            unloadButton disable.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2603
        ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2604
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2605
    showBuiltIn onChangeSend:#value to:moduleListUpdater.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2606
    showModules onChangeSend:#value to:moduleListUpdater.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2607
    showMethods onChangeSend:#value to:moduleListUpdater.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2608
    showCObjects onChangeSend:#value to:moduleListUpdater.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2609
    showOthers onChangeSend:#value to:moduleListUpdater.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2610
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2611
    box := Dialog new.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2612
    box label:(resources string:'Module dialog').
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2613
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2614
    listView1 := HVScrollableView for:SelectionInListView miniScrollerH:true.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2615
    listView1 model:list1.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2616
    listView1 origin:0.0@0.0 corner:1.0@0.4. "/ ; inset:2.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2617
    listView1 action:[:sel |
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2618
        |info classNames tabs module|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2619
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2620
        listView1 middleButtonMenu:nil.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2621
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2622
        box withWaitCursorDo:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2623
            |nm fileName addr entry1 entry2 entry3 method|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2624
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2625
            tabs := TabulatorSpecification unit:#inch positions:#(0 2.6).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2626
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2627
            (showModules value or:[showBuiltIn value]) ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2628
                info := allModules at:sel ifAbsent:nil.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2629
            ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2630
            info isNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2631
                "/ selected a method, cObject or unknown
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2632
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2633
                module := handles at:sel.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2634
                fileName := module pathName.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2635
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2636
                module isMethodHandle ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2637
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2638
                    (method := module method) isNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2639
                        nm := '** removed **'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2640
                    ] ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2641
                        menu := PopUpMenu
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2642
                                    labels:#('inspect' 'browse')
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2643
                                    selectors:#(inspect browse).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2644
                        menu actionAt:#inspect put:[ method inspect ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2645
                        menu actionAt:#browse put:[ |who|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2646
                                                    who := method who.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2647
                                                    SystemBrowser 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2648
                                                        openInClass:(who methodClass) 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2649
                                                        selector:(who methodSelector) 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2650
                                                  ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2651
                        listView1 middleButtonMenu:menu.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2652
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2653
                        nm := (method whoString) asText emphasizeAllWith:(#color->Color blue).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2654
                    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2655
                    entry1 := MultiColListEntry new:2 tabulatorSpecification:tabs.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2656
                    entry1 colAt:1 put:'compiled method'; colAt:2 put:nm.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2657
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2658
                    entry2 := MultiColListEntry new:2 tabulatorSpecification:tabs.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2659
                    entry2 colAt:1 put:'path'; colAt:2 put:fileName.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2660
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2661
                    entry3 := MultiColListEntry new:2 tabulatorSpecification:tabs.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2662
                    entry3 colAt:1 put:'address'; colAt:2 put:('(16r) ' , (method code hexPrintString leftPaddedTo:8 with:$0)).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2663
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2664
                    list2 list:(Array with:entry1 with:entry2 with:entry3).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2665
                ] ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2666
                    (module isFunctionObjectHandle 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2667
                    and:[module functions notEmpty]) ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2668
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2669
                        menu := PopUpMenu
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2670
                                    labels:#('inspect')
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2671
                                    selectors:#(inspect).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2672
                        menu actionAt:#inspect put:[ module functions inspect  ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2673
                        listView1 middleButtonMenu:menu.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2674
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2675
                        list2 list:((module functions select:[:f | f notNil])
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2676
                                        collect:[:f | |entry|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2677
                                                        entry := MultiColListEntry new:2 tabulatorSpecification:tabs.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2678
                                                        entry colAt:1 put:(f name asText emphasizeAllWith:(#color->Color blue)).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2679
                                                        entry colAt:2 put:('address: (16r) ' , (f code hexPrintString leftPaddedTo:8 with:$0)).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2680
                                                        entry
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2681
                                                ]).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2682
                    ] ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2683
                        list2 list:#('nothing known about contents (no functions have been extracted)').    
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2684
                    ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2685
                ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2686
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2687
                unloadButton enable.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2688
            ] ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2689
                "/ selected a package
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2690
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2691
                "/ fill bottom list with class-info
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2692
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2693
                classNames := info classNames asSortedCollection.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2694
                classNames := classNames collect:[:cName |
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2695
                                |cls entry rev listEntry|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2696
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2697
                                listEntry := MultiColListEntry new:2 tabulatorSpecification:tabs.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2698
                                listEntry colAt:1 put:cName.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2699
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2700
                                cls := Smalltalk classNamed:cName.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2701
                                cls isNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2702
                                    listEntry colAt:2 put:'(class removed)'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2703
                                ] ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2704
                                    rev := cls binaryRevision.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2705
                                    rev notNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2706
                                        cls isLoaded ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2707
                                            entry := '(stub for: ' , rev.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2708
                                        ] ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2709
                                            entry :='(bin: ' , rev.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2710
                                        ].    
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2711
                                        cls revision ~= rev ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2712
                                            entry := entry , ' / src: ' , cls revision    
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2713
                                        ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2714
                                        listEntry colAt:2 put:entry , ')'
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2715
                                    ] ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2716
                                       cls revision notNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2717
                                            listEntry colAt:2 put:'(overloaded by: ' , cls revision , ')' 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2718
                                       ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2719
                                    ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2720
                                ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2721
                                listEntry
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2722
                              ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2723
                list2 list:classNames.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2724
                info dynamic ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2725
                    unloadButton enable.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2726
                ] ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2727
                    unloadButton disable.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2728
                ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2729
            ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2730
        ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2731
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2732
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2733
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2734
    panel := HorizontalPanelView new.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2735
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2736
    panel add:(l := Label label:'show:').
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2737
    l adjust:#left; borderWidth:0.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2738
    panel add:(check := CheckBox label:'builtin' model:showBuiltIn).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2739
    box makeTabable:check.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2740
    panel add:(check := CheckBox label:'classLibs' model:showModules).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2741
    canDoIt ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2742
        check disable
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2743
    ] ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2744
        box makeTabable:check.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2745
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2746
    panel add:(check := CheckBox label:'methods' model:showMethods).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2747
    canDoIt ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2748
        check disable
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2749
    ] ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2750
        box makeTabable:check.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2751
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2752
    panel add:(check := CheckBox label:'c-objects' model:showCObjects).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2753
    canDoIt ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2754
        check disable
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2755
    ] ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2756
        box makeTabable:check.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2757
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2758
    panel add:(check := CheckBox label:'others' model:showOthers).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2759
    canDoIt ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2760
        check disable
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2761
    ] ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2762
        box makeTabable:check.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2763
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2764
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2765
    panel horizontalLayout:#fitSpace.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2766
    "/ panel horizontalLayout:#leftSpace.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2767
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2768
    box addComponent:panel tabable:false.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2769
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2770
    box addVerticalSpace.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2771
    box addComponent:listView1 tabable:true.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2772
    listView1 topInset:(View viewSpacing + panel preferredExtent y).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2773
    listView1 origin:0.0@0.0 corner:1.0@0.4. "/ ; inset:2.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2774
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2775
    l := box addTextLabel:(resources string:'contained classes/subsets:').
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2776
    l adjust:#left; borderWidth:0.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2777
    l origin:0.0@0.4 corner:1.0@0.4.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2778
    l topInset:(View viewSpacing).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2779
    l bottomInset:((l preferredExtent y) negated - View viewSpacing).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2780
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2781
    listView2 := HVScrollableView for:SelectionInListView  miniScrollerH:true.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2782
    listView2 model:list2; printItems:false.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2783
    box addComponent:listView2 tabable:true.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2784
    listView2 origin:0.0@0.4 corner:1.0@1.0. "/ ; inset:2.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2785
    listView2 disable.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2786
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2787
    unloadButton := Button label:(resources string:'unload').
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2788
    unloadButton action:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2789
        self withWaitCursorDo:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2790
            box withWaitCursorDo:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2791
                |info idx pathName|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2792
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2793
                idx := list1 selectionIndex.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2794
                info := allModules at:idx ifAbsent:nil.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2795
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2796
                list1 selectionIndex:nil.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2797
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2798
                info isNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2799
                    "/ selected a method
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2800
                    "/ idx := idx - allModules size.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2801
                    pathName := (handles at:idx) pathName.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2802
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2803
                ] ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2804
                    "/ selected a package
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2805
                    pathName := info pathName.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2806
                ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2807
                ObjectFileLoader unloadObjectFile:pathName.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2808
                moduleListUpdater value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2809
                unloadButton disable.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2810
            ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2811
        ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2812
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2813
    moduleListUpdater value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2814
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2815
    box addButton:unloadButton.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2816
    box addAbortButtonLabelled:(resources string:'dismiss').
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2817
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2818
    y := box yPosition.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2819
    listView2 topInset:(l preferredExtent y + 5).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2820
    listView2 bottomInset:(box preferredExtent y - y).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2821
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2822
"/    box width:(400 min:(box device width * 2 // 3)); 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2823
"/        height:(450 min:(box device height - 50)); 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2824
"/        sizeFixed:true.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2825
    box open.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2826
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2827
    box destroy.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2828
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2829
    "Modified: 17.9.1995 / 16:47:50 / claus"
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2830
    "Modified: 18.10.1997 / 03:43:39 / cg"
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2831
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2832
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2833
saveImage
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2834
    "save image"
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2835
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2836
    self showCursor:Cursor write.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2837
    [
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2838
        (ObjectMemory snapShotOn:ObjectMemory nameForSnapshot) ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2839
            self warn:(resources string:'Failed to save snapshot image (disk full or not writable)').
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2840
        ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2841
    ] valueNowOrOnUnwindDo:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2842
        self restoreCursors.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2843
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2844
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2845
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2846
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2847
saveImageAs
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2848
    "save image, after asking for a file name"
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2849
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2850
    self saveImageAs: (
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2851
        FileSelectionBrowser 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2852
            request: 'Save Image As' 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2853
            fileName: ObjectMemory nameForSnapshot
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2854
            inDirectory: Filename currentDirectory name
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2855
            withFileFilters: #('*.img'))
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2856
 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2857
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2858
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2859
saveImageAs: aFileName
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2860
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2861
    aFileName notNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2862
        self showCursor:Cursor write.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2863
        [       
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2864
            (ObjectMemory snapShotOn:aFileName) ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2865
                self warn:(resources string:'Failed to save snapshot image (disk full or not writable)').
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2866
            ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2867
        ] valueNowOrOnUnwindDo:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2868
            self restoreCursors.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2869
        ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2870
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2871
! !
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2872
1544
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2873
!NewLauncher methodsFor:'user actions - help'!
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2874
1429
aa6ce97097dc NewLauncher has got its own (global) active help
tz
parents: 1424
diff changeset
  2875
activeHelp
aa6ce97097dc NewLauncher has got its own (global) active help
tz
parents: 1424
diff changeset
  2876
aa6ce97097dc NewLauncher has got its own (global) active help
tz
parents: 1424
diff changeset
  2877
    ^helpIsOn ? (helpIsOn := false)
aa6ce97097dc NewLauncher has got its own (global) active help
tz
parents: 1424
diff changeset
  2878
!
aa6ce97097dc NewLauncher has got its own (global) active help
tz
parents: 1424
diff changeset
  2879
1411
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  2880
showBookPrintDocument
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  2881
    "open an HTML browser on the 'book'-printing document"
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  2882
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  2883
    self showDocumentation:'BOOK.html'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  2884
!
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  2885
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  2886
startClassDocumentation
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  2887
    "open an HTML browser on the 'classDoc/TOP' document"
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  2888
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  2889
    self showDocumentation:'classDoc/TOP.html'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  2890
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  2891
!
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  2892
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  2893
startDocumentationIndex
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  2894
    "open an HTML browser on the 'index' document"
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  2895
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  2896
    self showDocumentation:'index.html'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  2897
!
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  2898
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2899
startDocumentationTool
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2900
    "open an HTML browser on the 'TOP' document"
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2901
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2902
    self showDocumentation:'TOP.html'
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2903
1411
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  2904
!
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  2905
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  2906
startWhatsNewDocumentation
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  2907
    "open an HTML browser on the 'whatsNew.html' document"
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  2908
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  2909
    self showDocumentation:'whatsNew.html'
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  2910
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  2911
!
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  2912
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  2913
toggleActiveHelp:aBoolean
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  2914
    "turn on/off active help"
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  2915
1429
aa6ce97097dc NewLauncher has got its own (global) active help
tz
parents: 1424
diff changeset
  2916
    ActiveHelp notNil ifTrue:[
aa6ce97097dc NewLauncher has got its own (global) active help
tz
parents: 1424
diff changeset
  2917
        helpIsOn := aBoolean.
aa6ce97097dc NewLauncher has got its own (global) active help
tz
parents: 1424
diff changeset
  2918
        helpIsOn ifTrue:[
aa6ce97097dc NewLauncher has got its own (global) active help
tz
parents: 1424
diff changeset
  2919
            ActiveHelp start
aa6ce97097dc NewLauncher has got its own (global) active help
tz
parents: 1424
diff changeset
  2920
        ] ifFalse:[
aa6ce97097dc NewLauncher has got its own (global) active help
tz
parents: 1424
diff changeset
  2921
            ActiveHelp stop
aa6ce97097dc NewLauncher has got its own (global) active help
tz
parents: 1424
diff changeset
  2922
        ]
aa6ce97097dc NewLauncher has got its own (global) active help
tz
parents: 1424
diff changeset
  2923
    ].
1411
da20bf21fb13 first offical release
tz
parents: 1406
diff changeset
  2924
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2925
! !
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2926
1544
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  2927
!NewLauncher methodsFor:'user actions - settings'!
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2928
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2929
compilerSettings
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2930
    "open a dialog on compiler related settings"
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2931
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2932
    |box warnings warnSTX warnUnderscore warnDollar warnOldStyle 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2933
     allowDollar allowUnderscore immutableArrays
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2934
     warnSTXBox warnUnderscoreBox warnOldStyleBox warnCommonMistakes warnCommonMistakesBox
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2935
     warnCompatibility warnCompatibilityBox warnDollarBox
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2936
     stcCompilation compilationList stcCompilationOptions stcIncludes stcDefines stcOptions
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2937
     stcLibraries stcLibraryPath cc ccOptions historyLines fullHistoryUpdate catchRedefs keepSourceOptions keepSource  
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2938
     constantFoldingOptions constantFolding justInTimeCompilation 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2939
     warnEnabler check component oldIndent t supportsJustInTimeCompilation y
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2940
     y2 fullDebugSupport yMax
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2941
     compileLazy loadBinaries canLoadBinaries|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2942
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2943
    canLoadBinaries := ObjectFileLoader notNil and:[ObjectFileLoader canLoadObjectFiles].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2944
    loadBinaries := Smalltalk loadBinaries asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2945
    compileLazy := Autoload compileLazy asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2946
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2947
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2948
    warnings := Compiler warnings asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2949
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2950
    warnSTX := Compiler warnSTXSpecials asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2951
    warnUnderscore := Compiler warnUnderscoreInIdentifier asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2952
    warnDollar := Compiler warnDollarInIdentifier asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2953
    warnOldStyle := Compiler warnOldStyleAssignment asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2954
    warnCommonMistakes := Compiler warnCommonMistakes asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2955
    warnCompatibility := Compiler warnPossibleIncompatibilities asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2956
    allowUnderscore := Compiler allowUnderscoreInIdentifier asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2957
    allowDollar := Compiler allowDollarInIdentifier asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2958
    immutableArrays := Compiler arraysAreImmutable asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2959
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2960
    constantFoldingOptions := #( nil #level1 #level2 #full ).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2961
    constantFolding := SelectionInList new list:(resources array:#('disabled' 'level1 (always safe)' 'level2 (usually safe)' 'full')).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2962
    constantFolding selectionIndex:3.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2963
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2964
    stcCompilationOptions := #( always default never).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2965
    stcCompilation := SelectionInList new 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2966
                        list:(resources array:#('always' 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2967
                                                'primitive code only' 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2968
                                                'never'
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2969
                                               )).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2970
    stcCompilation selectionIndex:2.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2971
    (supportsJustInTimeCompilation := ObjectMemory supportsJustInTimeCompilation)
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2972
    ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2973
        justInTimeCompilation := ObjectMemory justInTimeCompilation:nil.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2974
        fullDebugSupport := ObjectMemory fullSingleStepSupport:nil.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2975
    ] ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2976
        justInTimeCompilation := false.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2977
        fullDebugSupport := (Compiler lineNumberInfo == #full) asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2978
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2979
    justInTimeCompilation := justInTimeCompilation asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2980
    fullDebugSupport := fullDebugSupport asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2981
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2982
    stcIncludes := Compiler stcCompilationIncludes asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2983
    stcDefines := Compiler stcCompilationDefines asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2984
    stcOptions := Compiler stcCompilationOptions asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2985
    ccOptions := Compiler ccCompilationOptions asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2986
    cc := Compiler ccPath asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2987
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2988
    ObjectFileLoader notNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2989
        (t := ObjectFileLoader searchedLibraries) notNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2990
            stcLibraries := (String fromStringCollection:t separatedBy:' ') asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2991
        ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2992
        (t := ObjectFileLoader libPath) notNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2993
            stcLibraryPath := t asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2994
        ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2995
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2996
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2997
    catchRedefs := Class catchMethodRedefinitions asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2998
    historyLines := HistoryManager notNil and:[HistoryManager isLoaded and:[HistoryManager isActive]].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  2999
    historyLines ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3000
        fullHistoryUpdate := false    
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3001
    ] ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3002
        fullHistoryUpdate := HistoryManager fullHistoryUpdate asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3003
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3004
    historyLines := historyLines asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3005
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3006
    keepSourceOptions := #( keep reference absReference sourceReference discard ).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3007
    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
  3008
    keepSource selectionIndex:1.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3009
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3010
    warnEnabler := [
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3011
              warnings value ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3012
                warnSTXBox enable. 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3013
                warnOldStyleBox enable.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3014
                warnCommonMistakesBox enable.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3015
                warnCompatibilityBox enable.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3016
                allowUnderscore value ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3017
                    warnUnderscoreBox enable.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3018
                ] ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3019
                    warnUnderscoreBox disable.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3020
                ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3021
                allowDollar value ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3022
                    warnDollarBox enable.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3023
                ] ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3024
                    warnDollarBox disable.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3025
                ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3026
              ] ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3027
                warnSTXBox disable. 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3028
                warnUnderscoreBox disable.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3029
                warnDollarBox disable.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3030
                warnOldStyleBox disable.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3031
                warnCommonMistakesBox disable.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3032
                warnCompatibilityBox disable.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3033
              ]].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3034
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3035
    warnings onChangeSend:#value to:warnEnabler.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3036
    allowUnderscore onChangeSend:#value to:warnEnabler.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3037
    allowDollar onChangeSend:#value to:warnEnabler.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3038
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3039
    box := DialogBox new.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3040
    box label:(resources string:'Compiler settings').
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3041
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3042
    box addCheckBox:(resources string:'catch method redefinitions') on:catchRedefs.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3043
    y := box yPosition.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3044
    check := box addCheckBox:(resources string:'keep history line in methods') on:historyLines.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3045
    HistoryManager isNil ifTrue:[check disable].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3046
    box yPosition:y.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3047
    check := box addCheckBox:(resources string:'keep full class history') on:fullHistoryUpdate.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3048
    check left:0.5.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3049
    HistoryManager isNil ifTrue:[check disable] ifFalse:[check enableChannel:historyLines].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3050
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3051
    box addPopUpList:(resources string:'fileIn source mode:') on:keepSource.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3052
    keepSource selectionIndex:( keepSourceOptions indexOf:(ClassCategoryReader sourceMode) ifAbsent:1).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3053
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3054
    box addHorizontalLine.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3055
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3056
    box addCheckBox:(resources string:'lazy compilation when autoloading') on:compileLazy.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3057
    check := box addCheckBox:(resources string:'if present, load binary objects when autoloading') on:loadBinaries.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3058
    canLoadBinaries ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3059
        loadBinaries value:false.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3060
        check disable
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3061
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3062
    supportsJustInTimeCompilation ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3063
        component := box 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3064
                        addCheckBox:(resources string:'just in time compilation to machine code') 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3065
                        on:justInTimeCompilation.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3066
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3067
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3068
    box addHorizontalLine.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3069
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3070
    ObjectFileLoader notNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3071
        compilationList := box addPopUpList:(resources string:'stc compilation to machine code') on:stcCompilation.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3072
        stcCompilation selectionIndex:( stcCompilationOptions indexOf:(Compiler stcCompilation) ifAbsent:2).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3073
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3074
        component := box 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3075
                        addLabelledInputField:(resources string:'include directories:')
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3076
                        adjust:#right
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3077
                        on:stcIncludes 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3078
                        tabable:true
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3079
                        separateAtX:0.3.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3080
        component immediateAccept:true; acceptOnLeave:false; cursorMovementWhenUpdating:#beginOfLine.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3081
        component preferredExtent:(250 @ component preferredExtent y).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3082
        canLoadBinaries ifFalse:[component disable].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3083
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3084
"/        box addVerticalSpace.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3085
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3086
        component := box 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3087
                        addLabelledInputField:(resources string:'defines:')
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3088
                        adjust:#right
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3089
                        on:stcDefines 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3090
                        tabable:true
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3091
                        separateAtX:0.3.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3092
        component immediateAccept:true; acceptOnLeave:false; cursorMovementWhenUpdating:#beginOfLine.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3093
        component preferredExtent:(250 @ component preferredExtent y).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3094
        canLoadBinaries ifFalse:[component disable].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3095
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3096
"/        box addVerticalSpace.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3097
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3098
        component := box 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3099
                        addLabelledInputField:(resources string:'stc options:')
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3100
                        adjust:#right
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3101
                        on:stcOptions 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3102
                        tabable:true
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3103
                        separateAtX:0.3.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3104
        component immediateAccept:true; acceptOnLeave:false; cursorMovementWhenUpdating:#beginOfLine.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3105
        component preferredExtent:(250 @ component preferredExtent y).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3106
        canLoadBinaries ifFalse:[component disable].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3107
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3108
"/        box addVerticalSpace.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3109
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3110
        component := box 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3111
                        addLabelledInputField:(resources string:'cc command:')
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3112
                        adjust:#right
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3113
                        on:cc 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3114
                        tabable:true
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3115
                        separateAtX:0.3.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3116
        component immediateAccept:true; acceptOnLeave:false; cursorMovementWhenUpdating:#beginOfLine.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3117
        component preferredExtent:(250 @ component preferredExtent y).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3118
        canLoadBinaries ifFalse:[component disable].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3119
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3120
        component := box 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3121
                        addLabelledInputField:(resources string:'cc options:')
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3122
                        adjust:#right
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3123
                        on:ccOptions 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3124
                        tabable:true
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3125
                        separateAtX:0.3.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3126
        component immediateAccept:true; acceptOnLeave:false; cursorMovementWhenUpdating:#beginOfLine.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3127
        component preferredExtent:(250 @ component preferredExtent y).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3128
        canLoadBinaries ifFalse:[component disable].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3129
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3130
        stcLibraries notNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3131
"/            box addVerticalSpace.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3132
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3133
            component := box 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3134
                            addLabelledInputField:(resources string:'C-libraries:')
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3135
                            adjust:#right
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3136
                            on:stcLibraries 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3137
                            tabable:true
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3138
                            separateAtX:0.3.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3139
            component immediateAccept:true; acceptOnLeave:false; cursorMovementWhenUpdating:#beginOfLine.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3140
            component preferredExtent:(250 @ component preferredExtent y).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3141
            canLoadBinaries ifFalse:[component disable].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3142
        ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3143
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3144
        stcLibraryPath notNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3145
"/            box addVerticalSpace.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3146
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3147
            component := box 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3148
                            addLabelledInputField:(resources string:'stc libPath:')
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3149
                            adjust:#right
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3150
                            on:stcLibraryPath 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3151
                            tabable:true
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3152
                            separateAtX:0.3.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3153
            component immediateAccept:true; acceptOnLeave:false; cursorMovementWhenUpdating:#beginOfLine.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3154
            component preferredExtent:(250 @ component preferredExtent y).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3155
            canLoadBinaries ifFalse:[component disable].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3156
        ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3157
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3158
"/        box addVerticalSpace.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3159
        box addHorizontalLine.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3160
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3161
        "/ if there is no compiler around,
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3162
        "/ change to compile nothing, and disable the checkBoxes
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3163
        Compiler canCreateMachineCode ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3164
            stcCompilation selectionIndex:3.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3165
            compilationList disable.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3166
        ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3167
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3168
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3169
    y := box yPosition.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3170
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3171
    component := box addCheckBox:(resources string:'allow underscore in identifiers') on:allowUnderscore.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3172
    component width:0.4.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3173
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3174
    component := box addCheckBox:(resources string:'allow dollar in identifiers') on:allowDollar.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3175
    component width:0.4.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3176
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3177
    component := box addCheckBox:(resources string:'literal arrays are immutable') on:immutableArrays.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3178
    component width:0.4.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3179
    y2 := box yPosition.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3180
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3181
    box yPosition:y.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3182
    box leftIndent:0.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3183
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3184
    component :=box addPopUpList:(resources string:'constant folding:') on:constantFolding.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3185
    component superView left:0.5; width:0.5.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3186
    constantFolding selectionIndex:( constantFoldingOptions indexOf:(Compiler foldConstants) ifAbsent:1).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3187
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3188
    component := box addCheckBox:(resources string:'full debug info') on:fullDebugSupport.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3189
    component left:0.5; width:0.4.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3190
    box yPosition:(box yPosition max:y2).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3191
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3192
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3193
    box addHorizontalLine.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3194
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3195
    box addCheckBox:(resources string:'warnings') on:warnings.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3196
"/    box addVerticalSpace.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3197
    oldIndent := box leftIndent.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3198
    box leftIndent:30.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3199
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3200
    y := box yPosition.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3201
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3202
    warnSTXBox := box addCheckBox:(resources string:'ST/X extensions') on:warnSTX.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3203
    warnSTXBox width:0.4.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3204
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3205
    warnUnderscoreBox := box addCheckBox:(resources string:'underscores in identifiers') on:warnUnderscore.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3206
    warnUnderscoreBox width:0.4.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3207
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3208
    warnDollarBox := box addCheckBox:(resources string:'dollars in identifiers') on:warnDollar.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3209
    warnDollarBox width:0.4.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3210
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3211
    yMax := box yPosition.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3212
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3213
    box yPosition:y.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3214
    box leftIndent:0.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3215
    warnOldStyleBox := box addCheckBox:(resources string:'oldStyle assignment') on:warnOldStyle.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3216
    warnOldStyleBox left:0.5; width:0.4.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3217
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3218
    warnCommonMistakesBox := box addCheckBox:(resources string:'common mistakes') on:warnCommonMistakes.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3219
    warnCommonMistakesBox left:0.5; width:0.4.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3220
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3221
    warnCompatibilityBox := box addCheckBox:(resources string:'possible incompatibilities') on:warnCompatibility.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3222
    warnCompatibilityBox left:0.5; width:0.4.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3223
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3224
    box leftIndent:oldIndent.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3225
    box yPosition:(yMax max: box yPosition).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3226
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3227
    box 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3228
        addHelpButtonFor:'Launcher/compilerSettings.html';
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3229
        addAbortButton; 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3230
        addOkButton.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3231
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3232
    warnEnabler value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3233
    box open.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3234
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3235
    box accepted ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3236
        HistoryManager notNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3237
            HistoryManager fullHistoryUpdate:fullHistoryUpdate value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3238
            historyLines value ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3239
                HistoryManager activate
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3240
            ] ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3241
                HistoryManager deactivate
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3242
            ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3243
        ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3244
        Class catchMethodRedefinitions:catchRedefs value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3245
        ClassCategoryReader sourceMode:(keepSourceOptions at:keepSource selectionIndex).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3246
        Compiler warnings:warnings value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3247
        Compiler warnSTXSpecials:warnSTX value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3248
        Compiler warnOldStyleAssignment:warnOldStyle value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3249
        Compiler warnUnderscoreInIdentifier:warnUnderscore value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3250
        Compiler warnDollarInIdentifier:warnDollar value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3251
        Compiler warnCommonMistakes:warnCommonMistakes value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3252
        Compiler warnPossibleIncompatibilities:warnCompatibility value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3253
        Compiler allowUnderscoreInIdentifier:allowUnderscore value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3254
        Compiler allowDollarInIdentifier:allowDollar value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3255
        Compiler arraysAreImmutable:immutableArrays value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3256
        fullDebugSupport value ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3257
            Compiler lineNumberInfo:#full.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3258
        ] ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3259
            Compiler lineNumberInfo:true
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3260
        ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3261
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3262
        Compiler stcCompilation:(stcCompilationOptions at:stcCompilation selectionIndex).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3263
        Compiler stcCompilationIncludes:stcIncludes value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3264
        Compiler stcCompilationDefines:stcDefines value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3265
        Compiler stcCompilationOptions:stcOptions value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3266
        Compiler ccCompilationOptions:ccOptions value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3267
        Compiler ccPath:cc value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3268
        Compiler foldConstants:(constantFoldingOptions at:constantFolding selectionIndex).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3269
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3270
        supportsJustInTimeCompilation ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3271
            justInTimeCompilation value ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3272
                Method allInstancesDo:[:m | m checked:false].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3273
            ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3274
            ObjectMemory justInTimeCompilation:justInTimeCompilation value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3275
            ObjectMemory fullSingleStepSupport:fullDebugSupport value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3276
        ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3277
        ObjectFileLoader notNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3278
            stcLibraries notNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3279
                ObjectFileLoader searchedLibraries:(stcLibraries value asCollectionOfWords).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3280
            ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3281
            stcLibraryPath notNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3282
                ObjectFileLoader libPath:(stcLibraryPath value).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3283
            ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3284
        ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3285
        Autoload compileLazy:compileLazy value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3286
        Smalltalk loadBinaries:loadBinaries value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3287
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3288
    box destroy
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3289
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3290
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3291
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3292
displaySettings
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3293
    "open a dialog on display related settings"
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3294
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3295
    |box listOfSizes sizeInfos
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3296
     sizes sizeNames sizeList sizeX sizeY deepIcons
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3297
     isColorMonitor useFixPalette useFixGrayPalette idx ditherStyles ditherSyms ditherList
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3298
     y component screen visual clipEncodings clipEncodingSyms clipEncodingList|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3299
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3300
    listOfSizes := resources at:'LIST_OF_OFFERED_SCREEN_SIZES' default:#default.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3301
    listOfSizes == #default ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3302
        "/ nothing in resource file; offer at least some.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3303
        sizeInfos := #(
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3304
                           ( '11.3'' (235mm x 175mm) LCD'   (235 175)    )
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3305
                           ( '17''   (325mm x 245mm)'       (325 245)    )
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3306
                           ( '19''   (340mm x 270mm)'       (340 270)    )
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3307
                           ( '20''   (350mm x 280mm)'       (350 280)    )
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3308
                           ( '21''   (365mm x 285mm)'       (365 285)    )
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3309
                       ).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3310
    ] ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3311
        sizeInfos := resources array:listOfSizes.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3312
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3313
    sizeNames := sizeInfos collect:[:entry | entry at:1].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3314
    sizes := sizeInfos collect:[:entry | entry at:2].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3315
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3316
    screen := Screen current.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3317
    visual := screen visualType.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3318
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3319
    isColorMonitor := screen hasColors asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3320
    deepIcons := screen supportsDeepIcons asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3321
    useFixPalette := screen fixColors notNil asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3322
    useFixGrayPalette := screen fixGrayColors notNil asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3323
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3324
    sizeList := SelectionInList with:sizeNames.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3325
    sizeX := screen widthInMillimeter asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3326
    sizeY := screen heightInMillimeter asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3327
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3328
    clipEncodingSyms := #(nil #iso8859 #jis #jis7 #sjis #euc #big5).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3329
    clipEncodings := resources array:#('untranslated' 'iso8859' 'jis' 'jis7' 'shift-JIS' 'EUC' 'big5').
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3330
    clipEncodingList := SelectionInList new.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3331
    clipEncodingList list:clipEncodings.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3332
    clipEncodingList selectionIndex:(clipEncodingSyms indexOf:screen clipBoardEncoding ifAbsent:1).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3333
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3334
    ditherList := SelectionInList new.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3335
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3336
    (visual == #StaticGray or:[visual == #GrayScale]) ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3337
        ditherStyles := #('threshold' 'ordered dither' 'error diffusion').
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3338
        ditherSyms := #(threshold ordered floydSteinberg).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3339
    ] ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3340
        visual ~~ #TrueColor ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3341
            ditherStyles := #('nearest color' 'error diffusion').
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3342
            ditherSyms := #(ordered floydSteinberg).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3343
        ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3344
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3345
    ditherSyms notNil ifTrue:[    
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3346
        ditherList list:ditherStyles.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3347
        ditherList selectionIndex:(ditherSyms indexOf:(Image ditherAlgorithm) ifAbsent:#threshold).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3348
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3349
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3350
    box := DialogBox new.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3351
    box label:(resources string:'Display screen settings').
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3352
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3353
    (box addTextLabel:(resources string:'Actual visible screen area:'))
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3354
        adjust:#left.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3355
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3356
    (box addPopUpList:(resources string:'common sizes:') on:sizeList)
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3357
        label:'monitor size'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3358
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3359
    idx := sizes findFirst:[:entry |
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3360
                                ((entry at:1) = sizeX value)
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3361
                                and:[((entry at:2) = sizeY value)]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3362
                           ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3363
    idx ~~ 0 ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3364
        sizeList selectionIndex:idx
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3365
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3366
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3367
    sizeList onChangeSend:#value to:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3368
                                        |idx|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3369
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3370
                                        idx := sizeList selectionIndex.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3371
                                        sizeX value:((sizes at:idx) at:1).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3372
                                        sizeY value:((sizes at:idx) at:2).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3373
                                    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3374
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3375
    y := box yPosition.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3376
    component := box addTextLabel:(resources string:'screen size:').
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3377
    component width:0.3; adjust:#right; borderWidth:0.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3378
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3379
    box yPosition:y.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3380
    component := box addInputFieldOn:nil tabable:true.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3381
    component width:0.25; left:0.3; 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3382
              immediateAccept:false; acceptOnLeave:false; 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3383
              cursorMovementWhenUpdating:#beginOfLine;
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3384
              converter:(PrintConverter new initForInteger);
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3385
              model:sizeX.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3386
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3387
    box yPosition:y.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3388
    component := box addTextLabel:(' x ').
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3389
    component width:0.1; left:0.55; adjust:#center; borderWidth:0.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3390
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3391
    box yPosition:y.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3392
    component := box addInputFieldOn:nil tabable:true.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3393
    component width:0.25; left:0.65; 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3394
              immediateAccept:false; acceptOnLeave:false; 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3395
              cursorMovementWhenUpdating:#beginOfLine;
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3396
              converter:(PrintConverter new initForInteger);
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3397
              model:sizeY.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3398
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3399
    box yPosition:y.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3400
    component := box addTextLabel:('(mm)').
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3401
    component width:0.1; left:0.9; adjust:#center; borderWidth:0.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3402
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3403
    box addVerticalSpace.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3404
    box addHorizontalLine.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3405
    box addVerticalSpace.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3407
    (box addTextLabel:(resources string:'Screen: depth: %1 visual: %2  (%3)'
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3408
                                 with:Screen current depth printString
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3409
                                 with:Screen current visualType
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3410
                                 with:Screen current serverVendor))
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3411
        adjust:#left.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3412
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3413
    box addVerticalSpace.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3414
    box addHorizontalLine.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3415
    box addVerticalSpace.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3416
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3417
    box addCheckBox:(resources string:'color monitor') on:isColorMonitor.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3418
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3419
    visual == #PseudoColor ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3420
        box addVerticalSpace.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3421
        component := box addCheckBox:(resources string:'use fix color palette %1' with:'(4x8x4)') on:useFixPalette.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3422
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3423
        box addVerticalSpace.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3424
        component := box addCheckBox:(resources string:'use fix gray color palette %1' with:'(32)') on:useFixGrayPalette.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3425
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3426
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3427
    ditherSyms notNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3428
        box addVerticalSpace.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3429
        component := box addPopUpList:(resources string:'image display:') on:ditherList.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3430
        component defaultLabel:'image display'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3431
        component superView horizontalLayout:#leftSpace.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3432
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3433
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3434
    box addVerticalSpace.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3435
    box addCheckBox:(resources string:'allow colored/grayscale icons') on:deepIcons.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3436
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3437
    box addVerticalSpace.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3438
    box addHorizontalLine.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3439
    box addVerticalSpace.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3440
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3441
    component := box addPopUpList:(resources string:'clipBoard encoding:') on:clipEncodingList.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3442
    component superView horizontalLayout:#leftSpace.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3443
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3444
    box 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3445
        addHelpButtonFor:'Launcher/screenSettings.html';
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3446
        addAbortButton; addOkButton.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3447
    box open.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3448
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3449
    box accepted ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3450
        Image flushDeviceImages.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3451
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3452
        screen visualType == #PseudoColor ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3453
            useFixPalette value ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3454
                Color colorAllocationFailSignal handle:[:ex |
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3455
                    self warn:(resources string:'Could not allocate colors.').
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3456
                ] do:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3457
                    Color getColorsRed:4 green:8 blue:4 on:screen
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3458
                ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3459
            ] ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3460
                screen releaseFixColors
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3461
            ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3462
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3463
            useFixGrayPalette value ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3464
                Color colorAllocationFailSignal handle:[:ex |
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3465
                    self warn:(resources string:'Could not allocate colors.').
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3466
                ] do:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3467
                    Color getGrayColors:32 on:screen
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3468
                ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3469
            ] ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3470
                screen releaseFixGrayColors
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3471
            ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3472
        ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3473
        screen hasColors:isColorMonitor value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3474
        screen widthInMillimeter:sizeX value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3475
        screen heightInMillimeter:sizeY value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3476
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3477
        screen supportsDeepIcons:deepIcons value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3478
        ditherSyms notNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3479
            Image ditherAlgorithm:(ditherSyms at:ditherList selectionIndex).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3480
        ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3481
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3482
        self withWaitCursorDo:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3483
            View defaultStyle:(View defaultStyle).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3484
        ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3485
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3486
        screen clipBoardEncoding:(clipEncodingSyms at:clipEncodingList selectionIndex).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3487
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3488
    box destroy
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3489
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3490
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3491
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3492
fontSettings
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3493
    "open a dialog on font related settings"
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3494
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3495
    (self fontBoxForEncoding:nil) ifTrue:[self reOpen]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3496
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3497
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3498
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3499
keyboardSetting 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3500
    "open a dialog on keyboard related settings"
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3501
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3502
    |mappings listOfRawKeys listOfFunctions
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3503
     box l
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3504
     list1 list2 listView1 listView2 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3505
     frame selectionForwarder macroForwarder macroTextView y|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3506
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3507
    mappings := Screen current keyboardMap.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3508
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3509
    listOfRawKeys := (mappings keys asArray collect:[:key | key asString]) sort.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3510
    listOfFunctions := (mappings values asSet asArray collect:[:key | key asString]) sort.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3511
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3512
    selectionForwarder := Plug new.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3513
    selectionForwarder respondTo:#showFunction
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3514
                  with:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3515
                        |raw|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3516
                        raw := list1 selection.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3517
                        list2 retractInterestsFor:selectionForwarder.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3518
                        list2 selection:(mappings at:raw asSymbol) asString.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3519
                        list2 onChangeSend:#showRawKey to:selectionForwarder.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3520
                       ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3521
    selectionForwarder respondTo:#showRawKey
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3522
                  with:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3523
                        |f raw|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3524
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3525
                        f := list2 selection.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3526
                        list1 retractInterestsFor:selectionForwarder.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3527
                        raw := mappings keyAtValue:f asString.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3528
                        raw isNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3529
                            raw := mappings keyAtValue:f first.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3530
                            raw isNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3531
                                raw := mappings keyAtValue:f asSymbol.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3532
                            ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3533
                        ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3534
                        list1 selection:raw.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3535
                        list1 onChangeSend:#showFunction to:selectionForwarder.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3536
                       ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3537
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3538
    macroForwarder := [
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3539
                        |f macro indent|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3540
                        f := list2 selection.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3541
                        (f startsWith:'Cmd') ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3542
                            f := f copyFrom:4
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3543
                        ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3544
                        macro := FunctionKeySequences at:(f asSymbol) ifAbsent:nil.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3545
                        macro notNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3546
                            macro := macro asStringCollection.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3547
                            indent := macro
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3548
                                         inject:99999 into:[:min :element |
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3549
                                             |stripped|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3550
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3551
                                             stripped := element withoutLeadingSeparators.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3552
                                             stripped size == 0 ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3553
                                                 min
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3554
                                             ] ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3555
                                                 min min:(element size - stripped size)
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3556
                                             ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3557
                                         ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3558
                            indent ~~ 0 ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3559
                                macro := macro collect:[:line | 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3560
                                             line size > indent ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3561
                                                line copyFrom:indent+1
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3562
                                             ] ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3563
                                                line
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3564
                                             ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3565
                                        ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3566
                            ].                        
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3567
                        ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3568
                        macroTextView contents:macro.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3569
                       ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3570
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3571
    list1 := SelectionInList with:listOfRawKeys.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3572
    list1 onChangeSend:#showFunction to:selectionForwarder.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3573
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3574
    list2 := SelectionInList with:listOfFunctions.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3575
    list2 onChangeSend:#showRawKey to:selectionForwarder.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3576
    list2 onChangeSend:#value to:macroForwarder.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3577
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3578
    box := Dialog new.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3579
    box label:(resources string:'Keyboard mappings').
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3580
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3581
    l := box addTextLabel:(resources string:'KEY_MSG') withCRs.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3582
    l adjust:#left; borderWidth:0.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3583
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3584
    frame := View new.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3585
    frame extent:300 @ 300.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3586
    frame borderWidth:0.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3587
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3588
    listView1 := ScrollableView for:SelectionInListView in:frame.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3589
    listView1 model:list1.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3590
    listView1 origin:0.0@0.0 corner:0.5@1.0; inset:2.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3591
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3592
    listView2 := ScrollableView for:SelectionInListView in:frame.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3593
    listView2 model:list2.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3594
    listView2 origin:0.5@0.0 corner:1.0@1.0; inset:2.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3595
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3596
    frame topInset:box yPosition.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3597
    box addComponent:frame withExtent:350@200.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3598
    box makeTabable:listView1. 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3599
    box makeTabable:listView2. 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3600
    frame origin:0.0@0.0 corner:1.0@0.6.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3601
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3602
    box addVerticalSpace.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3603
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3604
    l := box addTextLabel:(resources string:'Macro text (if any):') withCRs.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3605
    l adjust:#left; borderWidth:0.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3606
    l origin:0.0@0.6 corner:1.0@0.6.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3607
    l topInset:(View viewSpacing).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3608
    l bottomInset:(l preferredExtent y negated - View viewSpacing).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3609
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3610
    macroTextView := HVScrollableView for:TextView miniScroller:true.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3611
    box addComponent:macroTextView tabable:true.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3612
    macroTextView origin:0.0@0.6 corner:1.0@1.0.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3613
    y := box yPosition.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3614
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3615
    box
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3616
        addHelpButtonFor:'Launcher/keyboardSetting.html';
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3617
        "addAbortButton;" 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3618
        addOkButtonLabelled:(resources string:'dismiss').
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3619
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3620
    macroTextView topInset:(l preferredExtent y + 5).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3621
    macroTextView bottomInset:(box preferredExtent y - y).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3622
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3623
    box open.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3624
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3625
    box accepted ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3626
        "no action yet ..."
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3627
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3628
    box destroy
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3629
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3630
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3631
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3632
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3633
languageSetting 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3634
    "open a dialog on language related settings"
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3635
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3636
    |listOfLanguages translatedLanguages switch box languageList flags|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3637
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3638
    "
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3639
     get list of supported languages from the launchers resources ...
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3640
    "
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3641
    listOfLanguages := resources at:'LIST_OF_OFFERED_LANGUAGES' default:#('default').
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3642
    listOfLanguages := listOfLanguages asOrderedCollection.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3643
    translatedLanguages := listOfLanguages collect:[:lang | |item|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3644
                                        item := resources at:lang.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3645
                                        item isString ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3646
                                            item
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3647
                                        ] ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3648
                                            item at:1
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3649
                                        ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3650
                                ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3651
    flags := listOfLanguages collect:[:lang | |item|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3652
                                        item := resources at:lang.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3653
                                        item isArray ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3654
                                            item at:2
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3655
                                        ] ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3656
                                            nil
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3657
                                        ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3658
                                ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3659
    flags := flags collect:[:nm | nm notNil ifTrue:[Image fromFile:nm] ifFalse:[nil]].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3660
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3661
    languageList := translatedLanguages with:flags collect:[:lang :flag |
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3662
                                LabelAndIcon icon:flag string:lang.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3663
                        ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3664
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3665
    box := ListSelectionBox title:(resources string:'LANG_MSG') withCRs.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3666
    box label:(resources string:'Language selection').
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3667
    box list:languageList.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3668
    box initialText:(Language).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3669
    box action:[:newLanguage |
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3670
        self withWaitCursorDo:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3671
            |fontPref idx language oldLanguage enc answer matchingFonts|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3672
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3673
            idx := translatedLanguages indexOf:newLanguage withoutSeparators.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3674
            idx ~~ 0 ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3675
                language := listOfLanguages at:idx
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3676
            ] ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3677
                language := newLanguage
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3678
            ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3679
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3680
            "/ check if the new language needs a differently encoded font;
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3681
            "/ ask user to switch font and allow cancellation.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3682
            "/ Otherwise, you are left with unreadable menu & button items ...
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3683
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3684
            oldLanguage := Smalltalk language.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3685
            Smalltalk language:language asSymbol.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3686
            ResourcePack flushCachedResourcePacks.
1465
4e73891eba4a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1462
diff changeset
  3687
            fontPref := self class classResources at:'PREFERRED_FONT_ENCODING' default:'iso8859*'.
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3688
            Smalltalk language:oldLanguage.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3689
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3690
            switch := true.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3691
            enc := MenuView defaultFont encoding.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3692
            (fontPref match:enc) ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3693
                "/ look if there is one at all.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3694
                matchingFonts := Screen current listOfAvailableFonts select:[:f | fontPref match:f encoding].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3695
                matchingFonts size == 0 ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3696
                    (Dialog 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3697
                        confirm:(resources 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3698
                                    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
  3699
                                      with:fontPref) withCRs)
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3700
                    ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3701
                        switch := false
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3702
                    ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3703
                ] ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3704
                    answer := Dialog 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3705
                                confirmWithCancel:(resources 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3706
                                                        string:'menu font is not %1-encoded.\\Change it ?'
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3707
                                                        with:fontPref) withCRs
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3708
                                           labels:(resources
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3709
                                                        array:#('cancel' 'no' 'yes'))
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3710
                                           default:3.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3711
                    answer isNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3712
                        switch := false
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3713
                    ] ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3714
                        answer ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3715
                            switch := (self fontBoxForEncoding:fontPref)
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3716
                        ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3717
                    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3718
                ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3719
            ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3720
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3721
            switch ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3722
                transcript showCR:'change language to ' , newLanguage , ' ...'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3723
                Smalltalk language:language asSymbol.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3724
                ResourcePack flushCachedResourcePacks
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3725
            ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3726
        ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3727
        switch ifTrue:[
1460
f58b047b892c open new launchers at old position;
Claus Gittinger <cg@exept.de>
parents: 1457
diff changeset
  3728
            self reOpen.
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3729
            DebugView newDebugger.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3730
        ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3731
    ].    
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3732
    box
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3733
        addHelpButtonFor:'Launcher/languageSetting.html'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3734
    box open.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3735
    box destroy
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3736
1465
4e73891eba4a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1462
diff changeset
  3737
    "Modified: / 6.2.1998 / 00:01:01 / cg"
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3738
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3739
1533
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
  3740
loadSettings
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
  3741
    "restore settings from a settings-file."
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
  3742
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
  3743
    "a temporary kludge - we need a central systemSettings object for this,
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
  3744
     which can be saved/restored with a single store/read."
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
  3745
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
  3746
    |fileName|
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
  3747
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
  3748
    fileName := Dialog 
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
  3749
        requestFileName:(resources string:'load settings from:') 
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
  3750
        default:'settings.stx'
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
  3751
        ok:(resources string:'load') 
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
  3752
        abort:(resources string:'cancel') 
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
  3753
        pattern:'*.stx'
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
  3754
        fromDirectory:nil.
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
  3755
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
  3756
    (fileName isNil or:[fileName isEmpty]) ifTrue:[
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
  3757
        "/ canceled
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
  3758
        ^ self
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
  3759
    ].
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
  3760
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
  3761
    self withWaitCursorDo:[
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
  3762
        Smalltalk fileIn:fileName.
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
  3763
        self reOpen
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
  3764
    ].
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
  3765
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
  3766
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
  3767
!
d4b9776714f6 help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents: 1532
diff changeset
  3768
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3769
memorySettings
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3770
    "open a dialog on objectMemory related settings"
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3771
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3772
    |box igcLimit igcFreeLimit igcFreeAmount newSpaceSize
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3773
     compressLimit
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3774
     oldIncr component fields codeLimit codeTrigger stackLimit|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3775
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3776
    "/
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3777
    "/ extract relevant system settings ...
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3778
    "/
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3779
    igcLimit := ObjectMemory incrementalGCLimit asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3780
    igcFreeLimit := ObjectMemory freeSpaceGCLimit asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3781
    igcFreeAmount := ObjectMemory freeSpaceGCAmount asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3782
    newSpaceSize := ObjectMemory newSpaceSize asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3783
    oldIncr := ObjectMemory oldSpaceIncrement asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3784
    compressLimit := ObjectMemory oldSpaceCompressLimit asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3785
    codeLimit := ObjectMemory dynamicCodeLimit asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3786
    codeTrigger := ObjectMemory dynamicCodeGCTrigger asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3787
    stackLimit := Process defaultMaximumStackSize asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3788
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3789
    "/
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3790
    "/ create a box on those values ...
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3791
    "/
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3792
    fields := OrderedCollection new.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3793
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3794
    box := DialogBox new.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3795
    box label:(resources string:'Memory manager settings').
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3796
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3797
    (box addTextLabel:'Warning - invalid settings may result in failures or poor performance
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3798
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3799
You have been warned.') adjust:#left.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3800
    box addHorizontalLine.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3801
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3802
    component := box 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3803
                    addLabelledInputField:(resources string:'size of newSpace:')
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3804
                    adjust:#right
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3805
                    on:nil "/ newSpaceSize 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3806
                    tabable:true
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3807
                    separateAtX:0.7.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3808
    component acceptOnLeave:false.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3809
    component converter:(PrintConverter new initForNumber).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3810
    component model:newSpaceSize.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3811
    fields add:component.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3812
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3813
    box addHorizontalLine.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3814
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3815
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3816
    component := box 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3817
                    addLabelledInputField:(resources string:'incremental GC allocation trigger:')
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3818
                    adjust:#right
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3819
                    on:nil "/ igcLimit 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3820
                    tabable:true
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3821
                    separateAtX:0.7.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3822
    component acceptOnLeave:false.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3823
    component converter:(PrintConverter new initForNumber).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3824
    component model:igcLimit.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3825
    fields add:component.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3826
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3827
    box addTextLabel:'(start IGC whenever this amount has been allocated)'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3828
    box addHorizontalLine.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3829
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3830
    component := box 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3831
                    addLabelledInputField:(resources string:'incremental GC freespace trigger:')
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3832
                    adjust:#right
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3833
                    on:nil "/ igcFreeLimit 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3834
                    tabable:true
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3835
                    separateAtX:0.7.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3836
    component acceptOnLeave:false.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3837
    component converter:(PrintConverter new initForNumber).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3838
    component model:igcFreeLimit.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3839
    fields add:component.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3840
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3841
    box addTextLabel:'(start IGC whenever freespace drops below this)'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3842
    box addHorizontalLine.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3843
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3844
    component := box 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3845
                    addLabelledInputField:(resources string:'incremental GC amount:')
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3846
                    adjust:#right
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3847
                    on:nil "/ igcFreeAmount 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3848
                    tabable:true
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3849
                    separateAtX:0.7.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3850
    component acceptOnLeave:false.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3851
    component converter:(PrintConverter new initForNumber).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3852
    component model:igcFreeAmount.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3853
    fields add:component.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3854
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3855
    box addTextLabel:'(try to keep this amount for peak requests)'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3856
    box addHorizontalLine.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3857
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3858
    component := box 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3859
                    addLabelledInputField:(resources string:'oldspace increment:')
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3860
                    adjust:#right
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3861
                    on:nil "/ oldIncr 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3862
                    tabable:true
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3863
                    separateAtX:0.7.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3864
    component acceptOnLeave:false.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3865
    component converter:(PrintConverter new initForNumber).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3866
    component model:oldIncr.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3867
    fields add:component.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3868
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3869
    box addTextLabel:'(increase oldSpace in chunks of this size)'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3870
    box addHorizontalLine.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3871
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3872
    component := box 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3873
                    addLabelledInputField:(resources string:'oldspace compress limit:')
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3874
                    adjust:#right
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3875
                    on:nil "/ compressLimit 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3876
                    tabable:true
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3877
                    separateAtX:0.7.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3878
    component acceptOnLeave:false.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3879
    component converter:(PrintConverter new initForNumber).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3880
    component model:compressLimit.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3881
    fields add:component.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3882
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3883
    box addTextLabel:'(suppress compressing GC if more memory is in use)'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3884
    box addHorizontalLine.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3885
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3886
    component := box 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3887
                    addLabelledInputField:(resources string:'stack limit:')
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3888
                    adjust:#right
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3889
                    on:nil 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3890
                    tabable:true
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3891
                    separateAtX:0.7.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3892
    component acceptOnLeave:false.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3893
    component converter:(PrintConverter new initForNumber).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3894
    component model:stackLimit.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3895
    fields add:component.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3896
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3897
    box addTextLabel:'(trigger recursionInterrupt if more stack is used by a process)'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3898
    box addHorizontalLine.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3899
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3900
    ObjectMemory supportsJustInTimeCompilation ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3901
        component := box 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3902
                        addLabelledInputField:(resources string:'dynamic code limit:')
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3903
                        adjust:#right
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3904
                        on:nil
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3905
                        tabable:true
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3906
                        separateAtX:0.7.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3907
        component acceptOnLeave:false.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3908
        component converter:(PrintConverter new initForNumberOrNil).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3909
        component model:codeLimit.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3910
        fields add:component.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3911
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3912
        box addTextLabel:'(flush dynamic compiled code to stay within this limit)'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3913
        box addHorizontalLine.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3914
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3915
        component := box 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3916
                        addLabelledInputField:(resources string:'dynamic code GC trigger:')
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3917
                        adjust:#right
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3918
                        on:nil
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3919
                        tabable:true
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3920
                        separateAtX:0.7.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3921
        component acceptOnLeave:false.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3922
        component converter:(PrintConverter new initForNumberOrNil).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3923
        component model:codeTrigger.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3924
        fields add:component.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3925
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3926
        box addTextLabel:'(start incremental GC whenever this amount of code has been allocated)'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3927
        box addHorizontalLine.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3928
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3929
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3930
    box addAbortButton; addOkButton.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3931
    box
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3932
        addHelpButtonFor:'Launcher/memorySettings.html'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3933
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3934
    "/
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3935
    "/ show the box ...
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3936
    "/
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3937
    box open.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3938
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3939
    "/
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3940
    "/ update system settings
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3941
    "/
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3942
    box accepted ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3943
        fields do:[:comp | comp accept].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3944
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3945
        igcFreeAmount value ~~ ObjectMemory freeSpaceGCAmount ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3946
            ObjectMemory freeSpaceGCAmount:igcFreeAmount value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3947
        ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3948
        igcFreeLimit value ~~ ObjectMemory freeSpaceGCLimit ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3949
            ObjectMemory freeSpaceGCLimit:igcFreeLimit value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3950
        ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3951
        igcLimit value ~~ ObjectMemory incrementalGCLimit ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3952
            ObjectMemory incrementalGCLimit:igcLimit value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3953
        ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3954
        newSpaceSize value ~~ ObjectMemory newSpaceSize ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3955
            ObjectMemory newSpaceSize:newSpaceSize value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3956
        ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3957
        oldIncr value ~~ ObjectMemory oldSpaceIncrement ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3958
            ObjectMemory oldSpaceIncrement:oldIncr value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3959
        ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3960
        stackLimit value ~~ Process defaultMaximumStackSize ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3961
            Process defaultMaximumStackSize:stackLimit value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3962
        ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3963
        ObjectMemory oldSpaceCompressLimit:compressLimit value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3964
        ObjectMemory dynamicCodeLimit:codeLimit value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3965
        ObjectMemory dynamicCodeGCTrigger:codeTrigger value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3966
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3967
    box destroy
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3968
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3969
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3970
messageSettings
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3971
    "open a dialog on infoMessage related settings"
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3972
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3973
    |box vmInfo vmErrors displayErrors classInfos|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3974
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3975
    vmInfo := ObjectMemory infoPrinting asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3976
    vmErrors := ObjectMemory debugPrinting asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3977
    classInfos := Object infoPrinting asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3978
    displayErrors := DeviceWorkstation errorPrinting asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3979
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3980
    box := DialogBox new.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3981
    box label:(resources string:'Messages').
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3982
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3983
    box addCheckBox:(resources string:'VM info messages') on:vmInfo.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3984
    box addCheckBox:(resources string:'VM error messages') on:vmErrors.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3985
    box addHorizontalLine.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3986
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3987
    box addCheckBox:(resources string:'Display error messages (Xlib, Xtlib ...)') on:displayErrors.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3988
    box addCheckBox:(resources string:'Other info messages') on:classInfos.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3989
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3990
    box addHelpButtonFor:'Launcher/messageSettings.html'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3991
    box addAbortButton; addOkButton.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3992
    box open.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3993
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3994
    box accepted ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3995
        ObjectMemory infoPrinting:vmInfo value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3996
        ObjectMemory debugPrinting:vmErrors value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3997
        Object infoPrinting:classInfos value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3998
        DeviceWorkstation errorPrinting:displayErrors value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  3999
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4000
    box destroy
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4001
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4002
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4003
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4004
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4005
miscSettings
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4006
    "open a dialog on misc other settings"
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4007
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4008
    |box shadows takeFocus returnFocus
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4009
     hostNameInLabel showAccelerators 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4010
     preemptive hostNameInLabelHolder|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4011
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4012
    "/ 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4013
    "/ extract relevant system settings ...
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4014
    "/
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4015
    shadows := PopUpView shadows asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4016
    hostNameInLabel := StandardSystemView includeHostNameInLabel.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4017
    hostNameInLabelHolder := hostNameInLabel asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4018
    returnFocus := StandardSystemView returnFocusWhenClosingModalBoxes asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4019
    takeFocus := StandardSystemView takeFocusWhenMapped asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4020
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4021
    showAccelerators := MenuView showAcceleratorKeys asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4022
    preemptive := Processor isTimeSlicing asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4023
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4024
    "/
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4025
    "/ create a box on those values ...
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4026
    "/
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4027
    box := DialogBox new.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4028
    box label:(resources string:'Other settings').
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4029
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4030
    box addCheckBox:(resources string:'shadows under popup views') on:shadows.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4031
    box addCheckBox:(resources string:'boxes return focus to previously active view') on:returnFocus.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4032
    box addCheckBox:(resources string:'views catch focus when mapped') on:takeFocus.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4033
    box addCheckBox:(resources string:'hostname in window labels') on:hostNameInLabelHolder.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4034
    box addCheckBox:(resources string:'show accelerator keys in menus') on:showAccelerators.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4035
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4036
    box addHorizontalLine.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4037
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4038
    box addCheckBox:(resources string:'preemptive scheduling') on:preemptive.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4039
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4040
    box 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4041
        addHelpButtonFor:'Launcher/miscSettings.html';
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4042
        addAbortButton; 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4043
        addOkButton.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4044
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4045
    "/
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4046
    "/ show the box ...
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4047
    "/
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4048
    box open.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4049
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4050
    "/
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4051
    "/ update system settings
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4052
    "/
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4053
    box accepted ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4054
        PopUpView shadows:shadows value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4055
        hostNameInLabelHolder value ~~ hostNameInLabel ifTrue:[ 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4056
            StandardSystemView includeHostNameInLabel:hostNameInLabelHolder value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4057
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4058
            Screen allScreens do:[:aDisplay |
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4059
                aDisplay allViewsDo:[:aView |
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4060
                    |l|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4061
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4062
                    aView isTopView ifTrue:[
1475
d985c7c23d8e fixed show-hostname-in-label (ignore popups)
Claus Gittinger <cg@exept.de>
parents: 1469
diff changeset
  4063
                        aView isPopUpView ifFalse:[
d985c7c23d8e fixed show-hostname-in-label (ignore popups)
Claus Gittinger <cg@exept.de>
parents: 1469
diff changeset
  4064
                            l := aView label.
d985c7c23d8e fixed show-hostname-in-label (ignore popups)
Claus Gittinger <cg@exept.de>
parents: 1469
diff changeset
  4065
                            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
  4066
                        ]
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4067
                    ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4068
                ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4069
            ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4070
        ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4071
        StandardSystemView returnFocusWhenClosingModalBoxes:returnFocus value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4072
        StandardSystemView takeFocusWhenMapped:takeFocus value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4073
        MenuView showAcceleratorKeys:showAccelerators value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4074
        Processor isTimeSlicing ~~ preemptive value ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4075
            preemptive value ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4076
                Processor startTimeSlicing
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4077
            ] ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4078
                Processor stopTimeSlicing
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4079
            ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4080
        ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4081
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4082
    box destroy
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4083
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4084
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4085
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4086
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4087
printerSettings
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4088
    "open a dialog on printer related settings"
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4089
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4090
    |box 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4091
     possiblePrinters possibleTypes printerType printCommand 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4092
     pageFormat landscape updater
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4093
     formatLabel formatComponent landscapeLabel landscapeComponent
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4094
     topMargin leftMargin rightMargin bottomMargin unitList unit
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4095
     topMarginComponent leftMarginComponent
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4096
     rightMarginComponent
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4097
     bottomMarginComponent supportsColor supportsColorComponent
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4098
     y y1 commandListPop component commandList row|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4099
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4100
    possiblePrinters := PrinterStream withAllSubclasses asArray.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4101
    possibleTypes := possiblePrinters collect:[:cls | cls printerTypeName].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4102
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4103
    printerType := SelectionInList new list:(resources array:possibleTypes).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4104
    printerType selectionIndex:(possiblePrinters identityIndexOf:Printer).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4105
    printCommand := Printer printCommand asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4106
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4107
    pageFormat := SelectionInList new list:(Printer defaultPageFormats).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4108
    pageFormat selection:(Printer pageFormat).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4109
    landscape := Printer landscape asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4110
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4111
    topMargin := Printer topMargin asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4112
    leftMargin := Printer leftMargin asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4113
    rightMargin := Printer rightMargin asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4114
    bottomMargin := Printer bottomMargin asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4115
    supportsColor := Printer supportsColor asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4116
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4117
    box := DialogBox new.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4118
    box label:(resources string:'Printer settings').
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4119
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4120
"/ either use a popUpList ...
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4121
"/    box addPopUpList:(resources string:'printer type:') on:printerType.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4122
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4123
"/ or a comboList;
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4124
"/ which one looks better ?
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4125
    y := box yPosition.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4126
    component := box addTextLabel:(resources string:'printer type:').
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4127
    component width:0.25; adjust:#right; borderWidth:0.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4128
    box yPosition:y.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4129
    component := box addComboListOn:printerType tabable:true.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4130
    component aspect:#selectionIndex; changeMessage:#selectionIndex:; useIndex:true.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4131
    component width:0.75; left:0.25.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4132
"/ end of question
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4133
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4134
    y := box yPosition.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4135
    component := box addTextLabel:(resources string:'print command:').
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4136
    component width:0.25; adjust:#right; borderWidth:0.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4137
    box yPosition:y.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4138
    commandListPop := box addComboBoxOn:printCommand tabable:true.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4139
"/    commandListPop := box addInputFieldOn:printCommand tabable:true.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4140
    commandListPop width:0.75; left:0.25; immediateAccept:true; acceptOnLeave:false; cursorMovementWhenUpdating:#beginOfLine.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4141
    "/ some common print commands ...
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4142
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4143
    commandList := resources at:'PRINT_COMMANDS' ifAbsent:nil.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4144
    commandList isNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4145
        commandList := PrinterStream defaultCommands.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4146
        commandList isNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4147
            commandList := #('lpr' 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4148
                             'lp' 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4149
                            ).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4150
        ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4151
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4152
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4153
    commandListPop list:commandList.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4154
    box addVerticalSpace.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4155
    box addHorizontalLine.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4156
    box addVerticalSpace.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4157
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4158
    row := OrderedCollection new.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4159
    row add:(formatLabel := Label label:(resources string:'page format:')).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4160
    formatLabel borderWidth:0.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4161
    row add:(formatComponent := PopUpList on:pageFormat).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4162
    formatComponent label:'unknown'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4163
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4164
    row add:(landscapeLabel := Label label:(resources string:'landscape:')).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4165
    landscapeLabel borderWidth:0.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4166
    row add:(landscapeComponent := CheckToggle on:landscape).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4167
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4168
    y := box yPosition.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4169
    box
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4170
        addRow:(1 to:2)
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4171
        fromX:0
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4172
        toX:0.5
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4173
        collect:[:idx | row at:idx]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4174
        tabable:false
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4175
        horizontalLayout:#leftSpace
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4176
        verticalLayout:#center.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4177
    y1 := box yPosition.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4178
    box yPosition:y.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4179
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4180
    box
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4181
        addRow:(3 to:4)
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4182
        fromX:0.5
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4183
        toX:1.0
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4184
        collect:[:idx | row at:idx]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4185
        tabable:false
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4186
        horizontalLayout:#leftSpace
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4187
        verticalLayout:#center.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4188
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4189
    box yPosition:(box yPosition max:y1).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4190
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4191
    box makeTabable:(formatComponent).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4192
    box makeTabable:(landscapeComponent).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4193
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4194
    box addVerticalSpace.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4195
    box addHorizontalLine.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4196
    box addVerticalSpace.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4197
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4198
    y := box yPosition.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4199
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4200
    topMarginComponent := box 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4201
        addLabelledInputField:(resources string:'top margin:')
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4202
        adjust:#right
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4203
        on:nil "/ topMargin 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4204
        tabable:true
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4205
        from:0.0 to:0.5
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4206
        separateAtX:0.6.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4207
    topMarginComponent converter:(PrintConverter new initForNumber).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4208
    topMarginComponent model:topMargin.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4209
    y1 := box yPosition.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4210
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4211
    box yPosition:y.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4212
    unitList := SelectionInList with:#('inch' 'mm').
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4213
    unitList selectionIndex:1.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4214
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4215
    component := box addComponent:(PopUpList on:unitList).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4216
    component
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4217
        left:0.6;
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4218
        width:0.3.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4219
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4220
    box yPosition:y1.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4221
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4222
    leftMarginComponent := box 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4223
        addLabelledInputField:(resources string:'left margin:')
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4224
        adjust:#right
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4225
        on:nil "/ leftMargin 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4226
        tabable:true
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4227
        from:0.0 to:0.5
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4228
        separateAtX:0.6.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4229
    leftMarginComponent converter:(PrintConverter new initForNumber).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4230
    leftMarginComponent model:leftMargin.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4231
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4232
    rightMarginComponent := box 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4233
        addLabelledInputField:(resources string:'right margin:')
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4234
        adjust:#right
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4235
        on:nil "/ rightMargin 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4236
        tabable:true
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4237
        from:0.0 to:0.5
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4238
        separateAtX:0.6.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4239
    rightMarginComponent converter:(PrintConverter new initForNumber).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4240
    rightMarginComponent model:rightMargin.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4241
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4242
    bottomMarginComponent := box 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4243
        addLabelledInputField:(resources string:'bottom margin:')
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4244
        adjust:#right
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4245
        on:nil "/ bottomMargin 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4246
        tabable:true
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4247
        from:0.0 to:0.5
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4248
        separateAtX:0.6.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4249
    bottomMarginComponent converter:(PrintConverter new initForNumber).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4250
    bottomMarginComponent model:bottomMargin.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4251
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4252
    box addHorizontalLine.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4253
    supportsColorComponent := box addCheckBox:(resources string:'Color printer') on:supportsColor.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4254
    box addVerticalSpace.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4255
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4256
    updater := [ |p fg hasPageSize hasMargins|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4257
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4258
                       printerType selectionIndex ~~ 0 ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4259
                           p := possiblePrinters at:(printerType selectionIndex).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4260
                           hasPageSize := p supportsPageSizes. 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4261
                           hasMargins := p supportsMargins. 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4262
                       ] ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4263
                           hasPageSize := false.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4264
                           hasMargins := false.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4265
                       ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4266
                       hasPageSize ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4267
                          fg := Button new foregroundColor.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4268
                          formatComponent enable.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4269
                          landscapeComponent enable.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4270
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4271
                          formatComponent label:p pageFormat.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4272
                          pageFormat value:(p pageFormat).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4273
                          landscape value:(p landscape).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4274
                       ] ifFalse:[ 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4275
                          fg := Button new disabledForegroundColor.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4276
                          formatComponent disable.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4277
                          landscapeComponent disable.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4278
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4279
                          formatComponent label:'unknown'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4280
                          landscape value:nil.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4281
                       ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4282
                       hasMargins ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4283
                          unitList selectionIndex == 2 ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4284
                              unit := #mm
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4285
                          ] ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4286
                              unit := #inch
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4287
                          ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4288
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4289
                          topMargin value:(UnitConverter convert:p topMargin from:#inch to:unit).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4290
                          leftMargin value:(UnitConverter convert:p leftMargin from:#inch to:unit).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4291
                          rightMargin value:(UnitConverter convert:p rightMargin from:#inch to:unit).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4292
                          bottomMargin value:(UnitConverter convert:p bottomMargin from:#inch to:unit).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4293
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4294
                          topMarginComponent enable.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4295
                          leftMarginComponent enable.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4296
                          rightMarginComponent enable.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4297
                          bottomMarginComponent enable.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4298
                       ] ifFalse:[ 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4299
                          topMarginComponent disable.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4300
                          leftMarginComponent disable.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4301
                          rightMarginComponent disable.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4302
                          bottomMarginComponent disable.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4303
                       ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4304
                       formatLabel foregroundColor:fg.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4305
                       landscapeLabel foregroundColor:fg.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4306
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4307
                       p notNil ifTrue:[ 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4308
                           commandList := p defaultCommands.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4309
                           commandList notNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4310
                                commandListPop list:commandList 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4311
                           ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4312
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4313
                           printCommand value:(p printCommand).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4314
                       ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4315
                       p supportsPostscript ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4316
                           supportsColorComponent disable.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4317
                           supportsColor value:false
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4318
                       ] ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4319
                           supportsColorComponent enable.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4320
                           supportsColor value:(Printer supportsColor).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4321
                       ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4322
                     ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4323
    unitList onChangeSend:#value to:updater.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4324
    printerType onChangeSend:#value to:updater.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4325
    updater value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4326
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4327
    box addVerticalSpace;
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4328
        addHelpButtonFor:'Launcher/printerSettings.html';
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4329
        addAbortButton; addOkButton.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4330
    box open.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4331
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4332
    box accepted ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4333
        Printer := possiblePrinters at:(printerType selectionIndex).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4334
        Printer printCommand:printCommand value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4335
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4336
        Printer supportsPageSizes ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4337
            Printer pageFormat:(pageFormat selection).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4338
            Printer landscape:(landscape value).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4339
        ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4340
        Printer supportsMargins ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4341
            unitList selectionIndex == 2 ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4342
                unit := #mm
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4343
            ] ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4344
                unit := #inch
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4345
            ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4346
            Printer topMargin:(UnitConverter convert:topMargin value from:unit to:#inch).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4347
            Printer leftMargin:(UnitConverter convert:leftMargin value from:unit to:#inch).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4348
            Printer rightMargin:(UnitConverter convert:rightMargin value from:unit to:#inch).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4349
            Printer bottomMargin:(UnitConverter convert:bottomMargin value from:unit to:#inch).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4350
        ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4351
        Printer supportsPostscript ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4352
            Printer supportsColor:supportsColor value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4353
        ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4354
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4355
    box destroy
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4356
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4357
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4358
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4359
saveSettings
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4360
    "save settings to a settings-file."
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4361
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4362
    "a temporary kludge - we need a central systemSettings object for this,
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4363
     which can be saved/restored with a single store/read."
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4364
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4365
    |s screen fileName|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4366
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4367
    fileName := Dialog 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4368
        requestFileName:(resources string:'save settings in:') 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4369
        default:'settings.stx'
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4370
        ok:(resources string:'save') 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4371
        abort:(resources string:'cancel') 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4372
        pattern:'*.stx'
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4373
        fromDirectory:nil.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4374
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4375
    (fileName isNil or:[fileName isEmpty]) ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4376
        "/ canceled
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4377
        ^ self
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4378
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4379
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4380
    s := fileName asFilename writeStream.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4381
    s isNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4382
        self warn:'cannot write the ''' , fileName , ''' file'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4383
        ^ self
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4384
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4385
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4386
    s nextPutLine:'"/ ST/X saved settings';
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4387
      nextPutLine:'"/ DO NOT MODIFY MANUALLY';
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4388
      nextPutLine:'"/ (modifications would be lost with next save-settings)';
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4389
      nextPutLine:'"/';
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4390
      nextPutLine:'"/ this file was automatically generated by the';
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4391
      nextPutLine:'"/ ''save settings'' function of the Launcher';
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4392
      nextPutLine:'"/'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4393
    s cr.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4394
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4395
    s nextPutLine:'"/'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4396
    s nextPutLine:'"/ saved by ' , OperatingSystem getLoginName , '@' , OperatingSystem getHostName , ' at ' , AbsoluteTime now printString.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4397
    s nextPutLine:'"/'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4398
    s cr.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4399
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4400
    s nextPutLine:'"/'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4401
    s nextPutLine:'"/ Display settings:'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4402
    s nextPutLine:'"/'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4403
    s nextPutLine:'"/ only restore the display settings, if on the same Display ...'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4404
    s nextPutLine:'Display displayName = ' , (Display displayName storeString) , ' ifTrue:['.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4405
      screen := Screen current.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4406
      screen fixColors notNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4407
        s nextPutLine:'  Image flushDeviceImages.'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4408
        s nextPutLine:'  Color colorAllocationFailSignal catch:['.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4409
        s nextPutLine:'    Color getColorsRed:6 green:6 blue:4 on:Display'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4410
        s nextPutLine:'  ].'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4411
      ] ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4412
        s nextPutLine:'  Display releaseFixColors.'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4413
      ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4414
      s nextPutLine:'  Display hasColors: ' , (screen hasColors storeString) , '.'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4415
      s nextPutLine:'  Display widthInMillimeter: ' , (screen widthInMillimeter storeString) , '.'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4416
      s nextPutLine:'  Display heightInMillimeter: ' , (screen heightInMillimeter storeString) , '.'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4417
      s nextPutLine:'  Display supportsDeepIcons: ' , (screen supportsDeepIcons storeString) , '.'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4418
      s nextPutLine:'  Image ditherAlgorithm: ' , (Image ditherAlgorithm storeString) , '.'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4419
      s nextPutLine:'  View defaultStyle:(View defaultStyle). "/ to flush any device images'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4420
    s nextPutLine:'].'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4421
    s cr.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4422
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4423
    s nextPutLine:'"/'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4424
    s nextPutLine:'"/ Compiler settings:'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4425
    s nextPutLine:'"/'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4426
    s nextPutLine:'Compiler warnSTXSpecials: ' , (Compiler warnSTXSpecials storeString) , '.';
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4427
      nextPutLine:'Compiler warnUnderscoreInIdentifier: ' , (Compiler warnUnderscoreInIdentifier storeString) , '.';
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4428
      nextPutLine:'Compiler warnOldStyleAssignment: ' , (Compiler warnOldStyleAssignment storeString) , '.';
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4429
      nextPutLine:'Compiler warnCommonMistakes: ' , (Compiler warnCommonMistakes storeString) , '.';
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4430
      nextPutLine:'Compiler warnPossibleIncompatibilities: ' , (Compiler warnPossibleIncompatibilities storeString) , '.';
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4431
      nextPutLine:'Compiler allowUnderscoreInIdentifier: ' , (Compiler allowUnderscoreInIdentifier storeString) , '.';
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4432
      nextPutLine:'Compiler arraysAreImmutable: ' , (Compiler arraysAreImmutable storeString) , '.';
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4433
      nextPutLine:'Compiler lineNumberInfo: ' , (Compiler lineNumberInfo storeString) , '.';
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4434
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4435
      nextPutLine:'Compiler foldConstants: ' , (Compiler foldConstants storeString) , '.';
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4436
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4437
      nextPutLine:'Compiler stcCompilationIncludes: ' , (Compiler stcCompilationIncludes storeString) , '.';
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4438
      nextPutLine:'Compiler stcCompilationDefines: ' , (Compiler stcCompilationDefines storeString) , '.';
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4439
      nextPutLine:'Compiler stcCompilationOptions: ' , (Compiler stcCompilationOptions storeString) , '.';
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4440
      nextPutLine:'Compiler ccCompilationOptions: ' , (Compiler ccCompilationOptions storeString) , '.';
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4441
      nextPutLine:'Compiler ccPath: ' , (Compiler ccPath storeString) , '.';
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4442
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4443
      nextPutLine:'ObjectMemory justInTimeCompilation: ' , (ObjectMemory justInTimeCompilation storeString) , '.';
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4444
      nextPutLine:'ObjectMemory fullSingleStepSupport: ' , (ObjectMemory fullSingleStepSupport storeString) , '.'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4445
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4446
    HistoryManager notNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4447
        HistoryManager isActive ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4448
            s nextPutLine:'HistoryManager notNil ifTrue:[HistoryManager activate].'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4449
            s nextPutLine:'HistoryManager notNil ifTrue:[HistoryManager fullHistoryUpdate:' , HistoryManager fullHistoryUpdate storeString , '].'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4450
        ] ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4451
            s nextPutLine:'HistoryManager notNil ifTrue:[HistoryManager deactivate].'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4452
        ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4453
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4454
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4455
    ObjectFileLoader notNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4456
        s nextPutLine:'ObjectFileLoader searchedLibraries: ' , (ObjectFileLoader searchedLibraries storeString) , '.'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4457
        s nextPutLine:'ObjectFileLoader libPath: ' , (ObjectFileLoader libPath storeString) , '.'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4458
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4459
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4460
    s nextPutLine:'Class catchMethodRedefinitions: ' , (Class catchMethodRedefinitions storeString) , '.'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4461
    s nextPutLine:'ClassCategoryReader sourceMode: ' , (ClassCategoryReader sourceMode storeString) , '.'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4462
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4463
    s cr.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4464
    s nextPutLine:'"/'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4465
    s nextPutLine:'"/ Info & Debug Messages:'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4466
    s nextPutLine:'"/'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4467
    s nextPutLine:'ObjectMemory infoPrinting: ' , (ObjectMemory infoPrinting storeString) , '.';
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4468
      nextPutLine:'ObjectMemory debugPrinting: ' , (ObjectMemory debugPrinting storeString) , '.';
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4469
      nextPutLine:'Object infoPrinting: ' , (Object infoPrinting storeString) , '.';
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4470
      nextPutLine:'DeviceWorkstation errorPrinting: ' , (DeviceWorkstation errorPrinting storeString) , '.'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4471
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4472
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4473
    s cr.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4474
    s nextPutLine:'"/'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4475
    s nextPutLine:'"/ Misc settings:'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4476
    s nextPutLine:'"/'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4477
    s nextPutLine:'Class keepMethodHistory: ' , (Class methodHistory notNil storeString) , '.';
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4478
      nextPutLine:'Smalltalk logDoits: ' , (Smalltalk logDoits storeString) , '.';
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4479
      nextPutLine:'Autoload compileLazy: ' , (Autoload compileLazy storeString) , '.';
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4480
      nextPutLine:'Smalltalk loadBinaries: ' , (Smalltalk loadBinaries storeString) , '.';
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4481
      nextPutLine:'StandardSystemView includeHostNameInLabel: ' , (StandardSystemView includeHostNameInLabel storeString) , '.';
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4482
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4483
      "/ claus - I dont think its a good idea to save those ...
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4484
      nextPutLine:'"/ Class updateChanges: ' , (Class updatingChanges storeString) , '.';
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4485
      nextPutLine:'"/ ObjectMemory nameForChanges: ' , (ObjectMemory nameForChanges storeString) , '.';
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4486
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4487
      nextPutLine:'StandardSystemView returnFocusWhenClosingModalBoxes: ' , (StandardSystemView returnFocusWhenClosingModalBoxes storeString) , '.';
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4488
      nextPutLine:'StandardSystemView takeFocusWhenMapped: ' , (StandardSystemView takeFocusWhenMapped storeString) , '.';
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4489
      nextPutLine:'MenuView showAcceleratorKeys: ' , (MenuView showAcceleratorKeys storeString) , '.';
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4490
      nextPutLine:'Class tryLocalSourceFirst: ' , (Class tryLocalSourceFirst storeString) , '.'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4491
    (Exception emergencyHandler == Launcher notifyingEmergencyHandler) ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4492
        s nextPutLine:'Exception emergencyHandler:(Launcher notifyingEmergencyHandler).'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4493
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4494
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4495
    s cr.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4496
    s nextPutLine:'"/'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4497
    s nextPutLine:'"/ Printer settings:'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4498
    s nextPutLine:'"/'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4499
    s nextPutLine:'Printer := ' , (Printer name) , '.';
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4500
      nextPutLine:'Printer printCommand: ' , (Printer printCommand storeString) , '.'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4501
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4502
    Printer supportsPageSizes ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4503
        s nextPutLine:'Printer pageFormat: ' , (Printer pageFormat storeString) , '.'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4504
        s nextPutLine:'Printer landscape: ' , (Printer landscape storeString) , '.'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4505
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4506
    Printer supportsMargins ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4507
        s nextPutLine:'Printer topMargin: ' , (Printer topMargin storeString) , '.'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4508
        s nextPutLine:'Printer leftMargin: ' , (Printer leftMargin storeString) , '.'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4509
        s nextPutLine:'Printer rightMargin: ' , (Printer rightMargin storeString) , '.'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4510
        s nextPutLine:'Printer bottomMargin: ' , (Printer bottomMargin storeString) , '.'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4511
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4512
    Printer supportsPostscript ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4513
        s nextPutLine:'Printer supportsColor: ' , (Printer supportsColor storeString) , '.'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4514
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4515
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4516
    s cr.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4517
    s nextPutLine:'"/'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4518
    s nextPutLine:'"/ Font settings:'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4519
    s nextPutLine:'"/'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4520
    s nextPutLine:'View defaultFont: ' , (View defaultFont storeString) , '.'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4521
    s nextPutLine:'Label defaultFont: ' , (Label defaultFont storeString) , '.'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4522
    s nextPutLine:'Button defaultFont: ' , (Button defaultFont storeString) , '.'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4523
    s nextPutLine:'Toggle defaultFont: ' , (Toggle defaultFont storeString) , '.'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4524
    s nextPutLine:'SelectionInListView defaultFont: ' , (SelectionInListView defaultFont storeString) , '.'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4525
    s nextPutLine:'MenuView defaultFont: ' , (MenuView defaultFont storeString) , '.'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4526
    s nextPutLine:'PullDownMenu defaultFont: ' , (PullDownMenu defaultFont storeString) , '.'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4527
    s nextPutLine:'TextView defaultFont: ' , (TextView defaultFont storeString) , '.'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4528
    s nextPutLine:'EditTextView defaultFont: ' , (EditTextView defaultFont storeString) , '.'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4529
    s nextPutLine:'CodeView defaultFont: ' , (CodeView defaultFont storeString) , '.'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4530
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4531
    s cr.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4532
    s nextPutLine:'"/'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4533
    s nextPutLine:'"/ Language setting:'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4534
    s nextPutLine:'"/'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4535
    s nextPutLine:'Smalltalk language: ' , (Smalltalk language storeString) , '.'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4536
    s nextPutLine:'Smalltalk languageTerritory: ' , (Smalltalk languageTerritory storeString) , '.'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4537
    s close.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4538
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4539
    "
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4540
     Transcript topView application saveSettings
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4541
    " 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4542
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4543
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4544
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4545
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4546
sourceAndDebuggerSettings
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4547
    "open a dialog on misc other settings"
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4548
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4549
    |box check logDoits updChanges changeFileName
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4550
     useManager hasManager 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4551
     repository repositoryHolder localSourceFirst 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4552
     sourceCacheDir cacheEntry
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4553
     component localCheck oldIndent nm fn manager
1527
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  4554
     keepMethodHistory showErrorNotifier showVerboseStack
1544
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  4555
     syntaxColoring syntaxColor syntaxColors colorMenu oldUserPreferences
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  4556
     syntaxEmphasises syntaxColorSelector syntaxEmphasisSelector syntaxColoringBox
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  4557
     syntaxEmphasisesBox syntaxColoringResetBox syntaxColoringEnableBlock|
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4558
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4559
    "/ 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4560
    "/ extract relevant system settings ...
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4561
    "/
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4562
    keepMethodHistory := Class methodHistory notNil asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4563
    logDoits := Smalltalk logDoits asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4564
    updChanges := Class updatingChanges asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4565
    changeFileName := ObjectMemory nameForChanges asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4566
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4567
    hasManager := AbstractSourceCodeManager notNil
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4568
                  and:[AbstractSourceCodeManager isLoaded].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4569
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4570
    hasManager ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4571
        useManager := (manager := Smalltalk at:#SourceCodeManager) notNil asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4572
        localSourceFirst := Class tryLocalSourceFirst asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4573
        manager notNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4574
            repository := manager repositoryName.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4575
            repository notNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4576
                repositoryHolder := repository asValue
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4577
            ] ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4578
                repositoryHolder := '' asValue
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4579
            ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4580
        ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4581
    ] ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4582
        useManager := false.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4583
        localSourceFirst := false
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4584
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4585
    showErrorNotifier := (Exception emergencyHandler == Launcher notifyingEmergencyHandler) asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4586
    showVerboseStack := (DebugView defaultVerboseBacktrace ? false) asValue.
1527
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  4587
    syntaxColoring := UserPreferences current syntaxColoring asValue.
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4588
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4589
    sourceCacheDir := nil asValue.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4590
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4591
    "/
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4592
    "/ create a box on those values ...
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4593
    "/
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4594
    box := DialogBox new.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4595
    box label:(resources string:'Source & Debugger settings').
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4596
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4597
    box addCheckBox:(resources string:'remember changed methods (for previous method in browser)') on:keepMethodHistory.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4598
    box addCheckBox:(resources string:'log compiles in changes file') on:updChanges.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4599
    box addCheckBox:(resources string:'log doIts in changes file') on:logDoits.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4600
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4601
    component := box 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4602
                    addLabelledInputField:(resources string:'change file name:')
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4603
                    adjust:#right
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4604
                    on:changeFileName 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4605
                    tabable:true
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4606
                    separateAtX:0.4.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4607
    component immediateAccept:true; acceptOnLeave:false.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4608
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4609
"/    y := box yPosition.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4610
"/    component := box addTextLabel:(resources string:'change file name:').
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4611
"/    component width:0.5; adjust:#right; borderWidth:0.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4612
"/    box yPosition:y.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4613
"/    component := box addInputFieldOn:changeFileName tabable:true.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4614
"/    component width:0.5; left:0.5; immediateAccept:true; acceptOnLeave:false.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4615
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4616
    box addHorizontalLine.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4617
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4618
    hasManager ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4619
        check := box addCheckBox:(resources string:'sourcecode from sourcecode management') on:useManager.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4620
        oldIndent := box leftIndent.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4621
        box leftIndent:30.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4622
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4623
        repositoryHolder notNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4624
            component := box 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4625
                            addLabelledInputField:(resources string:'repository:')
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4626
                            adjust:#right
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4627
                            on:repositoryHolder 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4628
                            tabable:true
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4629
                            separateAtX:0.4.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4630
            component immediateAccept:true; acceptOnLeave:false.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4631
            component enableChannel:useManager.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4632
        ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4633
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4634
        cacheEntry := box 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4635
                        addLabelledInputField:(resources string:'source cache dir:')
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4636
                        adjust:#right
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4637
                        on:sourceCacheDir 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4638
                        tabable:true
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4639
                        separateAtX:0.4.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4640
        cacheEntry immediateAccept:true; acceptOnLeave:false.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4641
        cacheEntry enableChannel:useManager.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4642
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4643
        localCheck := box addCheckBox:(resources string:'if present, use local source (suppress checkout)') on:localSourceFirst.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4644
        localCheck enableChannel:useManager.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4645
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4646
        box leftIndent:oldIndent.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4647
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4648
        (AbstractSourceCodeManager isNil 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4649
        or:[AbstractSourceCodeManager defaultManager isNil]) ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4650
            useManager value:false.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4651
            cacheEntry disable.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4652
            check disable.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4653
            localCheck enable.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4654
        ] ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4655
            sourceCacheDir value:(AbstractSourceCodeManager cacheDirectoryName).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4656
        ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4657
        box addHorizontalLine.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4658
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4659
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4660
    box addCheckBox:(resources string:'show error notifier before opening debugger') on:showErrorNotifier.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4661
    box addCheckBox:(resources string:'verbose backtrace by default in debugger') on:showVerboseStack.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4662
1527
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  4663
    box addHorizontalLine.
58d10367b84d syntax coloring
tz
parents: 1515
diff changeset
  4664
    box addCheckBox:(resources string:'syntax coloring') on:syntaxColoring.
1544
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  4665
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  4666
    oldUserPreferences := UserPreferences current copy.
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  4667
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  4668
    syntaxColoringBox := box addComboListOn: (syntaxColors := SelectionInList with:UserPreferences syntaxColors asValue initialSelection:1).
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  4669
    syntaxColorSelector    := [(syntaxColors selection replChar:$  withString: '') asLowercaseFirst asSymbol].
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  4670
    syntaxEmphasisSelector := [((syntaxColorSelector value readStream upToAll: 'Color'), 'Emphasis') asLowercaseFirst asSymbol].
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  4671
    syntaxColor := (UserPreferences current perform: syntaxColorSelector value) asValue.
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  4672
    colorMenu := ColorMenu new.
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  4673
    colorMenu model: syntaxColor.
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  4674
    syntaxColor onChangeSend: #value to: 
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  4675
        [UserPreferences current at:  syntaxColorSelector value put: syntaxColor value].
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  4676
    syntaxColors onChangeSend: #value to: 
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  4677
        [syntaxColor value: (UserPreferences current perform:syntaxColorSelector value).
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  4678
         syntaxEmphasises selection: (UserPreferences current perform: syntaxEmphasisSelector value)].
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  4679
    syntaxEmphasisesBox := box addComboListOn: (syntaxEmphasises := SelectionInList with:#(normal bold italic) asValue initialSelection:1).
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  4680
    syntaxEmphasises onChangeSend: #value to: 
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  4681
        [UserPreferences current at: syntaxEmphasisSelector value put: syntaxEmphasises selection asSymbol].
1547
c0798d0ca18e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1544
diff changeset
  4682
    syntaxColors changed:#value. "/ to force initial update of emphasis
1544
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  4683
    box addComponent:colorMenu tabable:true.
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  4684
    syntaxColoringResetBox := box addComponent:(Button new label: (resources string:'reset'); action: [UserPreferences reset. syntaxColor value: (UserPreferences current perform:syntaxColorSelector value)]).
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  4685
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  4686
    syntaxColoringEnableBlock := 
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  4687
    [syntaxColoring value 
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  4688
        ifTrue: [syntaxColoringBox enable.  colorMenu enable.  syntaxEmphasisesBox enable.  syntaxColoringResetBox enable] 
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  4689
        ifFalse:[syntaxColoringBox disable. colorMenu disable. syntaxEmphasisesBox disable. syntaxColoringResetBox disable]
1531
9cc7272b9162 define syntax colors from the settings
tz
parents: 1527
diff changeset
  4690
    ].
1544
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  4691
    syntaxColoringEnableBlock value.
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  4692
    syntaxColoring onChangeSend: #value to: syntaxColoringEnableBlock.
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  4693
1531
9cc7272b9162 define syntax colors from the settings
tz
parents: 1527
diff changeset
  4694
    box addHorizontalLine.
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4695
    box 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4696
        addHelpButtonFor:'Launcher/sourceSettings.html';
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4697
        addAbortButton; 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4698
        addOkButton.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4699
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4700
    "/
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4701
    "/ show the box ...
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4702
    "/
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4703
    box open.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4704
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4705
    "/
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4706
    "/ update system settings
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4707
    "/
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4708
    box accepted ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4709
        Class keepMethodHistory:keepMethodHistory value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4710
        Smalltalk logDoits:logDoits value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4711
        Class updateChanges:updChanges value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4712
        ObjectMemory nameForChanges:changeFileName value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4713
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4714
        (hasManager and:[useManager value]) ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4715
            manager isNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4716
                Smalltalk at:#SourceCodeManager put:(AbstractSourceCodeManager defaultManager).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4717
                manager := Smalltalk at:#SourceCodeManager.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4718
            ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4719
            Class tryLocalSourceFirst:(localSourceFirst value).
1538
94f322638245 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1533
diff changeset
  4720
            manager notNil ifTrue:[
94f322638245 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1533
diff changeset
  4721
                localSourceFirst value ifFalse:[
94f322638245 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1533
diff changeset
  4722
                    nm := sourceCacheDir value.
94f322638245 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1533
diff changeset
  4723
94f322638245 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1533
diff changeset
  4724
                    (fn := nm asFilename) exists ifFalse:[
94f322638245 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1533
diff changeset
  4725
                        (self confirm:('cache directory ''' , nm , ''' does not exists\create ?' withCRs)) ifTrue:[
94f322638245 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1533
diff changeset
  4726
                            fn makeDirectory; 
94f322638245 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1533
diff changeset
  4727
                               makeReadableForAll;
94f322638245 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1533
diff changeset
  4728
                               makeWritableForAll;
94f322638245 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1533
diff changeset
  4729
                               makeExecutableForAll.
94f322638245 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1533
diff changeset
  4730
                        ]
94f322638245 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1533
diff changeset
  4731
                    ].
94f322638245 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1533
diff changeset
  4732
                    (fn exists 
94f322638245 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1533
diff changeset
  4733
                    and:[fn isDirectory
94f322638245 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1533
diff changeset
  4734
                    and:[fn isReadable
94f322638245 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1533
diff changeset
  4735
                    and:[fn isWritable]]]) ifTrue:[
94f322638245 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1533
diff changeset
  4736
                        AbstractSourceCodeManager cacheDirectoryName:(sourceCacheDir value).
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4737
                    ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4738
                ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4739
            ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4740
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4741
            repositoryHolder notNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4742
                repositoryHolder value size > 0 ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4743
                    manager initializeForRepository:repositoryHolder value.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4744
                ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4745
            ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4746
        ] ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4747
            Smalltalk at:#SourceCodeManager put:nil
1549
9ee0dae8bdf1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1547
diff changeset
  4748
        ].
9ee0dae8bdf1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1547
diff changeset
  4749
9ee0dae8bdf1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1547
diff changeset
  4750
        showErrorNotifier value ifFalse:[
9ee0dae8bdf1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1547
diff changeset
  4751
            Exception emergencyHandler:nil
9ee0dae8bdf1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1547
diff changeset
  4752
        ] ifTrue:[
9ee0dae8bdf1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1547
diff changeset
  4753
            Exception emergencyHandler:(Launcher notifyingEmergencyHandler)
9ee0dae8bdf1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1547
diff changeset
  4754
        ].
9ee0dae8bdf1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1547
diff changeset
  4755
        DebugView defaultVerboseBacktrace:(showVerboseStack value).
9ee0dae8bdf1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1547
diff changeset
  4756
        UserPreferences current syntaxColoring:syntaxColoring value.
9ee0dae8bdf1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1547
diff changeset
  4757
1544
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  4758
    ] ifFalse: [
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  4759
        (UserPreferences reset; current) declareAllFrom: oldUserPreferences
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4760
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4761
    box destroy
1547
c0798d0ca18e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1544
diff changeset
  4762
c0798d0ca18e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1544
diff changeset
  4763
    "Modified: / 15.4.1998 / 13:41:37 / cg"
1549
9ee0dae8bdf1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1547
diff changeset
  4764
    "Modified: / 16.4.1998 / 17:18:16 / ca"
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4765
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4766
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4767
viewStyleSetting 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4768
    "open a dialog on viewStyle related settings"
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4769
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4770
    |listOfStyles resourceDir dir box 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4771
     list listView scrView infoLabel infoForwarder newStyle
1491
fa75bbd0aee9 removed unused locals
Claus Gittinger <cg@exept.de>
parents: 1489
diff changeset
  4772
     someRsrcFile didApply|
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4773
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4774
    "
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4775
     search resources directory for a list of .style files ...
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4776
    "
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4777
    someRsrcFile := Smalltalk getSystemFileName:('resources' asFilename constructString:'normal.style').
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4778
    someRsrcFile notNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4779
        resourceDir := someRsrcFile asFilename directoryName
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4780
    ] ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4781
        resourceDir := Smalltalk getSystemFileName:'resources'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4782
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4783
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4784
    resourceDir isNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4785
        self warn:'no styles found (missing ''resources'' directory)'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4786
        ^ self
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4787
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4788
    dir := resourceDir asFilename directoryContents.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4789
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4790
    listOfStyles := dir select:[:aFileName | aFileName asFilename hasSuffix:'style'].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4791
    listOfStyles := listOfStyles collect:[:aFileName | aFileName asFilename withoutSuffix name].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4792
    Filename isCaseSensitive ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4793
        listOfStyles := listOfStyles collect:[:aStyleName | aStyleName asLowercase].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4794
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4795
    listOfStyles sort.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4796
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4797
"/ old code: used a standard ListSelectionBox
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4798
"/ changed to intercept selection and add info-output.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4799
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4800
"/    box := ListSelectionBox title:(resources string:'STYLE_MSG') withCRs.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4801
"/    box label:(resources string:'Style selection').
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4802
"/    box list:listOfStyles.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4803
"/    box initialText:View defaultStyle.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4804
"/    box selectAction:[:newStyle |
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4805
"/    ].    
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4806
"/    box action:[:newStyle |
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4807
"/        transcript topView withCursor:Cursor wait do:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4808
"/            transcript showCR:'change style to ' , newStyle , ' ...'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4809
"/            View defaultStyle:newStyle asSymbol.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4810
"/        ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4811
"/    ].    
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4812
"/    box showAtPointer
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4813
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4814
"/ new code: build box 'by 'hand'
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4815
"/
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4816
    infoForwarder := [
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4817
                        |nm sheet comment|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4818
                        nm := list selection.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4819
                        sheet := ViewStyle fromFile:(nm , '.style').
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4820
                        comment := sheet at:#comment ifAbsent:''.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4821
                        infoLabel label:comment withCRs asStringCollection
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4822
                       ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4823
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4824
    list := SelectionInList with:listOfStyles.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4825
    list onChangeSend:#value to:infoForwarder.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4826
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4827
    box := Dialog new.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4828
    box label:(resources string:'Style selection').
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4829
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4830
    (box addTextLabel:(resources string:'STYLE_MSG') withCRs) adjust:#left.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4831
    listView := SelectionInListView on:list.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4832
    listView doubleClickAction:[:sel | box accept value:true. box hide].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4833
    scrView := box addComponent:(ScrollableView forView:listView) tabable:true.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4834
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4835
    box addVerticalSpace.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4836
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4837
    (infoLabel := box addTextLabel:'\\' withCRs) adjust:#centerLeft.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4838
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4839
    box addAbortButton.
1467
59bf087a0423 missing call added + using own extent calc routine for opening
tz
parents: 1466
diff changeset
  4840
    "b := box addButton:(Button label:(resources string:'apply'))."
59bf087a0423 missing call added + using own extent calc routine for opening
tz
parents: 1466
diff changeset
  4841
    "b action:[didApply := true. self changeViewStyleTo:(list selection)]."
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4842
    box addOkButton.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4843
    list selection:(View defaultStyle).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4844
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4845
    box stickAtBottomWithVariableHeight:scrView.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4846
    box stickAtBottomWithFixHeight:infoLabel.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4847
    box open.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4848
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4849
    box accepted ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4850
        ((newStyle := list selection) ~= View defaultStyle
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4851
        or:[didApply ~~ true]) ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4852
            self changeViewStyleTo:newStyle.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4853
        ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4854
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4855
    box destroy
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4856
! !
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4857
1544
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  4858
!NewLauncher methodsFor:'user actions - system'!
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4859
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4860
compressingGarbageCollect
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4861
    "perform a compressing garbageCollect"
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4862
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4863
    ObjectMemory verboseGarbageCollect
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4864
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4865
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4866
1544
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  4867
garbageCollect
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  4868
    "perform a non-compressing garbageCollect"
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  4869
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  4870
    ObjectMemory reclaimSymbols
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  4871
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  4872
!
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  4873
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  4874
initJavaVM
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  4875
    JavaVM initializeVM
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  4876
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  4877
    "Created: / 9.2.1998 / 12:06:07 / cg"
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  4878
!
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  4879
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  4880
startLatencyMonitor
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  4881
    "open an interruptLatencyMonitor view"
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  4882
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  4883
    InterruptLatencyMonitor notNil ifTrue:[
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  4884
        Autoload autoloadFailedSignal catch:[
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  4885
            InterruptLatencyMonitor autoload.
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  4886
        ].
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  4887
        InterruptLatencyMonitor isLoaded ifTrue:[
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  4888
            InterruptLatencyMonitor open.
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  4889
            ^ self.
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  4890
        ]
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  4891
    ].
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  4892
    self warn:'Sorry - the irq latency monitor is only available
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  4893
in the full commercial release'.
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  4894
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  4895
!
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  4896
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  4897
startStopEventTrace
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  4898
    "start/stop event tracing for a particular view"
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  4899
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  4900
    |v wg|
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  4901
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  4902
    v := Screen current viewFromUser.
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  4903
    v notNil ifTrue:[
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  4904
        v := v topView.
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  4905
        wg := v windowGroup.
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  4906
        wg notNil ifTrue:[
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  4907
            "/
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  4908
            "/ toggle eventTrace in its windowGroup
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  4909
            "/
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  4910
            wg traceEvents:(wg preEventHook isNil)
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  4911
        ]
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  4912
    ]
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  4913
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  4914
! !
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  4915
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  4916
!NewLauncher methodsFor:'user actions - tools'!
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  4917
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  4918
newProject 
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  4919
    "creates a new project & opens a projectView for it"
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  4920
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  4921
    Project notNil ifTrue: [(ProjectView for: Project new) open]
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  4922
!
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  4923
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  4924
selectProject
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  4925
    "asks for and switch to another project"
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  4926
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  4927
    |list box|
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  4928
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  4929
    Project notNil ifTrue:[
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  4930
        list := Project allInstances.
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  4931
        box := ListSelectionBox new.
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  4932
        box list:(list collect:[:p | p name]).
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  4933
        box title:(resources string:'select a project').
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  4934
        box action:[:selection |
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  4935
            |project|
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  4936
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  4937
            project := list detect:[:p | p name = selection] ifNone:[nil].
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  4938
            project isNil ifTrue:[
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  4939
                transcript showCR:'no such project.'
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  4940
            ] ifFalse:[
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  4941
                project showViews.
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  4942
                Project current:project
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  4943
            ]
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  4944
        ].
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  4945
        box showAtPointer.
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  4946
        box destroy
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  4947
    ]
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  4948
!
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  4949
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  4950
startNewLauncher
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  4951
    "opens the new launcher"
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  4952
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  4953
    NewLauncher openAt:(self window origin)
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  4954
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  4955
!
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  4956
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  4957
startOldLauncher
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  4958
    "opens the old launcher"
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  4959
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  4960
    Launcher openAt:(self window origin)
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  4961
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  4962
! !
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  4963
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  4964
!NewLauncher methodsFor:'user actions - windows'!
8f3dedc772af menu rearranged
tz
parents: 1538
diff changeset
  4965
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4966
deIconifyAllWindows
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4967
    |setOfViews|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4968
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4969
    setOfViews := Project current views asIdentitySet.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4970
    setOfViews addAll:(Project defaultProject views).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4971
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4972
    setOfViews do:[:aTopView |
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4973
        aTopView device == Screen current ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4974
            aTopView expand
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4975
        ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4976
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4977
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4978
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4979
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4980
findAndDestroyWindow
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4981
    "find a window (by name) and destroy it"
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4982
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4983
    |v|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4984
    v := self findWindow:'select view to close:'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4985
    v notNil ifTrue:[v destroy]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4986
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4987
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4988
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4989
findAndRaiseWindow
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4990
    "find a window (by name) and raise it"
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4991
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4992
    |v|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4993
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4994
    v := self findWindow:'select view to raise deiconified:'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4995
    v notNil ifTrue:[v raiseDeiconified]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4996
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4997
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4998
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  4999
fullScreenHardcopy
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5000
    "after a second (to allow redraw of views under menu ...),
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5001
     save the contents of the whole screen."
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5002
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5003
    Processor 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5004
        addTimedBlock:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5005
                        self 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5006
                            saveScreenImage:(Image fromScreen) 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5007
                            defaultName:'screen'
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5008
                      ] 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5009
        afterSeconds:1
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5010
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5011
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5012
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5013
iconifyAllWindows
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5014
    |setOfViews|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5015
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5016
    setOfViews := Project current views asIdentitySet.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5017
    setOfViews addAll:(Project defaultProject views).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5018
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5019
    setOfViews do:[:aTopView |
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5020
        aTopView device == Screen current ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5021
            aTopView collapse
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5022
        ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5023
    ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5024
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5025
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5026
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5027
pickAView
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5028
    "let user pick a view and return it"
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5029
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5030
    |v|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5031
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5032
    (Delay forSeconds:1) wait.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5033
    v := Screen current viewFromUser.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5034
    v isNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5035
        self warn:'Sorry, this is not a smalltalk view'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5036
        ^ nil
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5037
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5038
    ^ v
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5039
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5040
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5041
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5042
screenHardcopy
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5043
    "after a second (to allow redraw of views under menu ...),
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5044
     let user specify a rectangular area on the screen
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5045
     and save its contents."
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5046
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5047
    |area|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5048
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5049
    Processor 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5050
        addTimedBlock:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5051
                        [Screen current leftButtonPressed] whileTrue:[Processor yield].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5052
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5053
                        area := Rectangle fromUser.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5054
                        (area width > 0 and:[area height > 0]) ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5055
                            self saveScreenImage:(Image fromScreen:area) defaultName:'hardcopy'
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5056
                        ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5057
                      ] 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5058
        afterSeconds:1
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5059
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5060
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5061
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5062
startWindowTreeView
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5063
    "open a windowTree view (on a topView)"
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5064
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5065
    |v|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5066
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5067
    v := self pickAView.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5068
    v notNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5069
        WindowTreeView openOn:v topView
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5070
    ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5071
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5072
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5073
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5074
viewDestroy
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5075
    "let user pick a view and destroy it.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5076
     Even allow destroying non-smalltalk views
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5077
     (also for views which I forgot due to some error)"
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5078
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5079
    |device v id i c|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5080
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5081
    (Delay forSeconds:1) wait.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5082
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5083
    device := Screen current.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5084
    i := Image fromFile:'bitmaps/xpmBitmaps/cursors/cross2.xpm'.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5085
    i isNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5086
        c := Cursor crossHair
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5087
    ] ifFalse:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5088
        c := Cursor fromImage:i
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5089
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5090
    id := device viewIdFromPoint:(device pointFromUserShowing:c).
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5091
    (v := device viewFromId:id) notNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5092
        v topView destroy.
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5093
        ^ self
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5094
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5095
    id = device rootView id ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5096
        ^ self
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5097
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5098
    (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
  5099
    ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5100
        device destroyView:nil withId:id
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5101
    ].
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5102
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5103
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5104
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5105
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5106
viewHardcopy
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5107
    "after a second (to allow redraw of views under menu ...),
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5108
     let user specify a view and save its contents."
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5109
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5110
    Processor 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5111
        addTimedBlock:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5112
                        |v|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5113
                        (v := Screen current viewFromUser) notNil ifTrue:[
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5114
                            self saveScreenImage:(Image fromView:(v topView)) defaultName:'hardcopy'
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5115
                        ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5116
                      ] 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5117
        afterSeconds:1
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5118
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5119
!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5120
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5121
viewInspect
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5122
    "let user pick a view and inspect it. Only smalltalk views are allowed"
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5123
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5124
    |v|
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5125
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5126
    (v := self pickAView) notNil 
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5127
    ifTrue:
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5128
    [
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5129
        v inspect
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5130
    ]
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5131
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5132
! !
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5133
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5134
!NewLauncher class methodsFor:'documentation'!
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5135
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5136
version
1549
9ee0dae8bdf1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1547
diff changeset
  5137
    ^ '$Header: /cvs/stx/stx/libtool/NewLauncher.st,v 1.54 1998-04-16 15:22:15 cg Exp $'
1406
60e6a7d07c93 initial checkin
tz
parents:
diff changeset
  5138
! !