ToolApplicationModel.st
author Claus Gittinger <cg@exept.de>
Sat, 20 Jun 1998 16:48:01 +0200
changeset 984 a0a868c45691
parent 982 807f440e0df7
child 987 54c15a2642f6
permissions -rw-r--r--
show help synchronously
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
756
4dba5a8797ec *** empty log message ***
tz
parents: 753
diff changeset
     1
"
784
b08b05900f30 copyright changed
tz
parents: 783
diff changeset
     2
 COPYRIGHT (c) 1997 by eXept Software AG
756
4dba5a8797ec *** empty log message ***
tz
parents: 753
diff changeset
     3
              All Rights Reserved
4dba5a8797ec *** empty log message ***
tz
parents: 753
diff changeset
     4
4dba5a8797ec *** empty log message ***
tz
parents: 753
diff changeset
     5
 This software is furnished under a license and may be used
4dba5a8797ec *** empty log message ***
tz
parents: 753
diff changeset
     6
 only in accordance with the terms of that license and with the
4dba5a8797ec *** empty log message ***
tz
parents: 753
diff changeset
     7
 inclusion of the above copyright notice. This software may not
4dba5a8797ec *** empty log message ***
tz
parents: 753
diff changeset
     8
 be provided or otherwise made available to, or used by, any
4dba5a8797ec *** empty log message ***
tz
parents: 753
diff changeset
     9
 other person. No title to or ownership of the software is
4dba5a8797ec *** empty log message ***
tz
parents: 753
diff changeset
    10
 hereby transferred.
4dba5a8797ec *** empty log message ***
tz
parents: 753
diff changeset
    11
"
4dba5a8797ec *** empty log message ***
tz
parents: 753
diff changeset
    12
4dba5a8797ec *** empty log message ***
tz
parents: 753
diff changeset
    13
4dba5a8797ec *** empty log message ***
tz
parents: 753
diff changeset
    14
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
    15
ApplicationModel subclass:#ToolApplicationModel
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
    16
	instanceVariableNames:'timeBlock'
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
    17
	classVariableNames:''
9c837d99f109 intitial checkin
tz
parents:
diff changeset
    18
	poolDictionaries:''
834
ac1655bd31bb class category changed
tz
parents: 833
diff changeset
    19
	category:'Interface-Framework'
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
    20
!
9c837d99f109 intitial checkin
tz
parents:
diff changeset
    21
850
cdf5ecf904e2 some obselete icons removed
tz
parents: 846
diff changeset
    22
ToolApplicationModel class instanceVariableNames:'history clipboard settings showHelp'
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
    23
9c837d99f109 intitial checkin
tz
parents:
diff changeset
    24
"
9c837d99f109 intitial checkin
tz
parents:
diff changeset
    25
 The following class instance variables are inherited by this class:
9c837d99f109 intitial checkin
tz
parents:
diff changeset
    26
9c837d99f109 intitial checkin
tz
parents:
diff changeset
    27
	ApplicationModel - ClassResources
9c837d99f109 intitial checkin
tz
parents:
diff changeset
    28
	Model - 
9c837d99f109 intitial checkin
tz
parents:
diff changeset
    29
	Object - 
9c837d99f109 intitial checkin
tz
parents:
diff changeset
    30
"
9c837d99f109 intitial checkin
tz
parents:
diff changeset
    31
!
9c837d99f109 intitial checkin
tz
parents:
diff changeset
    32
9c837d99f109 intitial checkin
tz
parents:
diff changeset
    33
!ToolApplicationModel class methodsFor:'documentation'!
9c837d99f109 intitial checkin
tz
parents:
diff changeset
    34
756
4dba5a8797ec *** empty log message ***
tz
parents: 753
diff changeset
    35
copyright
4dba5a8797ec *** empty log message ***
tz
parents: 753
diff changeset
    36
"
784
b08b05900f30 copyright changed
tz
parents: 783
diff changeset
    37
 COPYRIGHT (c) 1997 by eXept Software AG
756
4dba5a8797ec *** empty log message ***
tz
parents: 753
diff changeset
    38
              All Rights Reserved
4dba5a8797ec *** empty log message ***
tz
parents: 753
diff changeset
    39
4dba5a8797ec *** empty log message ***
tz
parents: 753
diff changeset
    40
 This software is furnished under a license and may be used
4dba5a8797ec *** empty log message ***
tz
parents: 753
diff changeset
    41
 only in accordance with the terms of that license and with the
4dba5a8797ec *** empty log message ***
tz
parents: 753
diff changeset
    42
 inclusion of the above copyright notice. This software may not
4dba5a8797ec *** empty log message ***
tz
parents: 753
diff changeset
    43
 be provided or otherwise made available to, or used by, any
4dba5a8797ec *** empty log message ***
tz
parents: 753
diff changeset
    44
 other person. No title to or ownership of the software is
4dba5a8797ec *** empty log message ***
tz
parents: 753
diff changeset
    45
 hereby transferred.
4dba5a8797ec *** empty log message ***
tz
parents: 753
diff changeset
    46
"
4dba5a8797ec *** empty log message ***
tz
parents: 753
diff changeset
    47
4dba5a8797ec *** empty log message ***
tz
parents: 753
diff changeset
    48
4dba5a8797ec *** empty log message ***
tz
parents: 753
diff changeset
    49
!
4dba5a8797ec *** empty log message ***
tz
parents: 753
diff changeset
    50
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
    51
documentation
9c837d99f109 intitial checkin
tz
parents:
diff changeset
    52
"
869
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
    53
    Framework class for tool applications.
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
    54
    Provides hooks for history management,
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
    55
    showing help texts, about menu, help menu etc.
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
    56
9c837d99f109 intitial checkin
tz
parents:
diff changeset
    57
    [author:]
876
585929b1fec2 some cleans
tz
parents: 872
diff changeset
    58
        Thomas Zwick, eXept Software AG
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
    59
"
9c837d99f109 intitial checkin
tz
parents:
diff changeset
    60
! !
9c837d99f109 intitial checkin
tz
parents:
diff changeset
    61
9c837d99f109 intitial checkin
tz
parents:
diff changeset
    62
!ToolApplicationModel class methodsFor:'accessing'!
9c837d99f109 intitial checkin
tz
parents:
diff changeset
    63
800
b98050cf7a43 better author extraction.
Claus Gittinger <cg@exept.de>
parents: 799
diff changeset
    64
authorLinesForAboutBox
907
f4087882555a method comments added
tz
parents: 893
diff changeset
    65
    "extracts the author(s) from the documentation method."
800
b98050cf7a43 better author extraction.
Claus Gittinger <cg@exept.de>
parents: 799
diff changeset
    66
b98050cf7a43 better author extraction.
Claus Gittinger <cg@exept.de>
parents: 799
diff changeset
    67
    |firstClassWithDocumentation src s line lines|
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
    68
800
b98050cf7a43 better author extraction.
Claus Gittinger <cg@exept.de>
parents: 799
diff changeset
    69
    firstClassWithDocumentation := self class withAllSuperclasses detect:[:metacls| metacls implements:#documentation].
b98050cf7a43 better author extraction.
Claus Gittinger <cg@exept.de>
parents: 799
diff changeset
    70
    firstClassWithDocumentation notNil ifTrue:[
b98050cf7a43 better author extraction.
Claus Gittinger <cg@exept.de>
parents: 799
diff changeset
    71
        (firstClassWithDocumentation inheritsFrom:ToolApplicationModel class) ifTrue:[
b98050cf7a43 better author extraction.
Claus Gittinger <cg@exept.de>
parents: 799
diff changeset
    72
            src := (firstClassWithDocumentation compiledMethodAt:#documentation) source.
b98050cf7a43 better author extraction.
Claus Gittinger <cg@exept.de>
parents: 799
diff changeset
    73
            src notNil ifTrue:[
b98050cf7a43 better author extraction.
Claus Gittinger <cg@exept.de>
parents: 799
diff changeset
    74
                s := src readStream.
b98050cf7a43 better author extraction.
Claus Gittinger <cg@exept.de>
parents: 799
diff changeset
    75
                s upToAll:'[author:]'.
b98050cf7a43 better author extraction.
Claus Gittinger <cg@exept.de>
parents: 799
diff changeset
    76
                s nextLine.   "/ skip to end
b98050cf7a43 better author extraction.
Claus Gittinger <cg@exept.de>
parents: 799
diff changeset
    77
                line := s nextLine.   "/ line after [author:]
b98050cf7a43 better author extraction.
Claus Gittinger <cg@exept.de>
parents: 799
diff changeset
    78
                lines := OrderedCollection new.
b98050cf7a43 better author extraction.
Claus Gittinger <cg@exept.de>
parents: 799
diff changeset
    79
                [line notNil and:[line notEmpty]] whileTrue:[
b98050cf7a43 better author extraction.
Claus Gittinger <cg@exept.de>
parents: 799
diff changeset
    80
                    line := line trimBlanks.
b98050cf7a43 better author extraction.
Claus Gittinger <cg@exept.de>
parents: 799
diff changeset
    81
                    line size > 1 ifTrue:[
b98050cf7a43 better author extraction.
Claus Gittinger <cg@exept.de>
parents: 799
diff changeset
    82
                        lines add:line trimBlanks.
b98050cf7a43 better author extraction.
Claus Gittinger <cg@exept.de>
parents: 799
diff changeset
    83
                        line := s nextLine.
b98050cf7a43 better author extraction.
Claus Gittinger <cg@exept.de>
parents: 799
diff changeset
    84
                    ] ifFalse:[
b98050cf7a43 better author extraction.
Claus Gittinger <cg@exept.de>
parents: 799
diff changeset
    85
                        line := nil
b98050cf7a43 better author extraction.
Claus Gittinger <cg@exept.de>
parents: 799
diff changeset
    86
                    ]
b98050cf7a43 better author extraction.
Claus Gittinger <cg@exept.de>
parents: 799
diff changeset
    87
                ].
b98050cf7a43 better author extraction.
Claus Gittinger <cg@exept.de>
parents: 799
diff changeset
    88
                ^ lines.
b98050cf7a43 better author extraction.
Claus Gittinger <cg@exept.de>
parents: 799
diff changeset
    89
            ]
b98050cf7a43 better author extraction.
Claus Gittinger <cg@exept.de>
parents: 799
diff changeset
    90
        ]
b98050cf7a43 better author extraction.
Claus Gittinger <cg@exept.de>
parents: 799
diff changeset
    91
    ].
b98050cf7a43 better author extraction.
Claus Gittinger <cg@exept.de>
parents: 799
diff changeset
    92
    ^ #('unnown')
b98050cf7a43 better author extraction.
Claus Gittinger <cg@exept.de>
parents: 799
diff changeset
    93
b98050cf7a43 better author extraction.
Claus Gittinger <cg@exept.de>
parents: 799
diff changeset
    94
    "Created: / 1.2.1998 / 15:41:43 / cg"
b98050cf7a43 better author extraction.
Claus Gittinger <cg@exept.de>
parents: 799
diff changeset
    95
    "Modified: / 1.2.1998 / 15:59:10 / cg"
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
    96
!
9c837d99f109 intitial checkin
tz
parents:
diff changeset
    97
9c837d99f109 intitial checkin
tz
parents:
diff changeset
    98
label
907
f4087882555a method comments added
tz
parents: 893
diff changeset
    99
    "returns the label for the tools of this class;
f4087882555a method comments added
tz
parents: 893
diff changeset
   100
     extracted from the class name;
f4087882555a method comments added
tz
parents: 893
diff changeset
   101
     can be redefined in subclasses"
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   102
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   103
    |label|
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   104
    label := ''.
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   105
    self name do:
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   106
    [:c|
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   107
        c isUppercase ifTrue: [label := label, $ ].
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   108
        label := label, c
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   109
    ].
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   110
    ^label trimBlanks
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   111
!
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   112
850
cdf5ecf904e2 some obselete icons removed
tz
parents: 846
diff changeset
   113
settings
907
f4087882555a method comments added
tz
parents: 893
diff changeset
   114
    "returns the settings dictionary"
850
cdf5ecf904e2 some obselete icons removed
tz
parents: 846
diff changeset
   115
872
a1606dcbd38b better font setting routines
tz
parents: 871
diff changeset
   116
    settings isNil ifTrue: [settings := IdentityDictionary new].
a1606dcbd38b better font setting routines
tz
parents: 871
diff changeset
   117
    ^settings
850
cdf5ecf904e2 some obselete icons removed
tz
parents: 846
diff changeset
   118
!
cdf5ecf904e2 some obselete icons removed
tz
parents: 846
diff changeset
   119
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   120
showHelp
907
f4087882555a method comments added
tz
parents: 893
diff changeset
   121
    "returns whether the active help is turned on"
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   122
872
a1606dcbd38b better font setting routines
tz
parents: 871
diff changeset
   123
    showHelp isNil ifTrue: [showHelp := true].
a1606dcbd38b better font setting routines
tz
parents: 871
diff changeset
   124
    ^showHelp
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   125
!
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   126
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   127
showHelp: aBoolean
907
f4087882555a method comments added
tz
parents: 893
diff changeset
   128
    "sets the active help on aBoolean"
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   129
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   130
    ^showHelp := aBoolean
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   131
! !
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   132
756
4dba5a8797ec *** empty log message ***
tz
parents: 753
diff changeset
   133
!ToolApplicationModel class methodsFor:'clipboard'!
4dba5a8797ec *** empty log message ***
tz
parents: 753
diff changeset
   134
4dba5a8797ec *** empty log message ***
tz
parents: 753
diff changeset
   135
clipboard
907
f4087882555a method comments added
tz
parents: 893
diff changeset
   136
    "returns the clipboard of this tool class"
756
4dba5a8797ec *** empty log message ***
tz
parents: 753
diff changeset
   137
4dba5a8797ec *** empty log message ***
tz
parents: 753
diff changeset
   138
    ^clipboard
4dba5a8797ec *** empty log message ***
tz
parents: 753
diff changeset
   139
!
4dba5a8797ec *** empty log message ***
tz
parents: 753
diff changeset
   140
4dba5a8797ec *** empty log message ***
tz
parents: 753
diff changeset
   141
clipboard: anEditObject
907
f4087882555a method comments added
tz
parents: 893
diff changeset
   142
    "sets the clipboard for this tool class"
756
4dba5a8797ec *** empty log message ***
tz
parents: 753
diff changeset
   143
4dba5a8797ec *** empty log message ***
tz
parents: 753
diff changeset
   144
    clipboard := anEditObject
4dba5a8797ec *** empty log message ***
tz
parents: 753
diff changeset
   145
! !
4dba5a8797ec *** empty log message ***
tz
parents: 753
diff changeset
   146
762
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
   147
!ToolApplicationModel class methodsFor:'help specs'!
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
   148
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
   149
helpSpec
869
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   150
    "This resource specification was automatically generated
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   151
     by the UIHelpTool of ST/X."
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   152
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   153
    "Do not manually edit this!! If it is corrupted,
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   154
     the UIHelpTool may not be able to read the specification."
762
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
   155
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
   156
    "
869
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   157
     UIHelpTool openOnClass:ToolApplicationModel    
762
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
   158
    "
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
   159
869
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   160
    <resource: #help>
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   161
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   162
    ^super helpSpec addPairsFrom:#(
762
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
   163
823
d812eae12888 help texts added
tz
parents: 822
diff changeset
   164
#about
834
ac1655bd31bb class category changed
tz
parents: 833
diff changeset
   165
'About functions.'
823
d812eae12888 help texts added
tz
parents: 822
diff changeset
   166
762
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
   167
#aboutSTX
910
670bffab7041 help texts
Claus Gittinger <cg@exept.de>
parents: 907
diff changeset
   168
'Open an InfoBox showing details of the running ST/X.'
762
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
   169
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
   170
#aboutThisAppliaction
910
670bffab7041 help texts
Claus Gittinger <cg@exept.de>
parents: 907
diff changeset
   171
'Open an InfoBox about that applications release and its author.'
762
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
   172
823
d812eae12888 help texts added
tz
parents: 822
diff changeset
   173
#add
834
ac1655bd31bb class category changed
tz
parents: 833
diff changeset
   174
'Add functions.'
823
d812eae12888 help texts added
tz
parents: 822
diff changeset
   175
d812eae12888 help texts added
tz
parents: 822
diff changeset
   176
#commitCancel
910
670bffab7041 help texts
Claus Gittinger <cg@exept.de>
parents: 907
diff changeset
   177
'Cancels changes.'
823
d812eae12888 help texts added
tz
parents: 822
diff changeset
   178
d812eae12888 help texts added
tz
parents: 822
diff changeset
   179
#commitOK
910
670bffab7041 help texts
Claus Gittinger <cg@exept.de>
parents: 907
diff changeset
   180
'Commit changes.'
823
d812eae12888 help texts added
tz
parents: 822
diff changeset
   181
d812eae12888 help texts added
tz
parents: 822
diff changeset
   182
#edit
834
ac1655bd31bb class category changed
tz
parents: 833
diff changeset
   183
'Edit functions.'
823
d812eae12888 help texts added
tz
parents: 822
diff changeset
   184
d812eae12888 help texts added
tz
parents: 822
diff changeset
   185
#editCopy
910
670bffab7041 help texts
Claus Gittinger <cg@exept.de>
parents: 907
diff changeset
   186
'Copy the selected item(s) to the clipboard.'
762
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
   187
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   188
#editCut
910
670bffab7041 help texts
Claus Gittinger <cg@exept.de>
parents: 907
diff changeset
   189
'Move the selected item(s) to the clipboard.'
853
19f2d0152fcb time clock only for the launcher
tz
parents: 851
diff changeset
   190
19f2d0152fcb time clock only for the launcher
tz
parents: 851
diff changeset
   191
#editDelete
910
670bffab7041 help texts
Claus Gittinger <cg@exept.de>
parents: 907
diff changeset
   192
'Delete the selected item(s).'
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   193
823
d812eae12888 help texts added
tz
parents: 822
diff changeset
   194
#editMoveDown
910
670bffab7041 help texts
Claus Gittinger <cg@exept.de>
parents: 907
diff changeset
   195
'Moves the selected item one step down in the order list.'
823
d812eae12888 help texts added
tz
parents: 822
diff changeset
   196
d812eae12888 help texts added
tz
parents: 822
diff changeset
   197
#editMoveIn
834
ac1655bd31bb class category changed
tz
parents: 833
diff changeset
   198
'Moves the selected item into next item as child item.'
823
d812eae12888 help texts added
tz
parents: 822
diff changeset
   199
d812eae12888 help texts added
tz
parents: 822
diff changeset
   200
#editMoveOut
910
670bffab7041 help texts
Claus Gittinger <cg@exept.de>
parents: 907
diff changeset
   201
'Moves the selected item out of its parent item.'
823
d812eae12888 help texts added
tz
parents: 822
diff changeset
   202
d812eae12888 help texts added
tz
parents: 822
diff changeset
   203
#editMoveUp
910
670bffab7041 help texts
Claus Gittinger <cg@exept.de>
parents: 907
diff changeset
   204
'Moves the selected item one step up in the order list.'
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   205
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   206
#editPaste
910
670bffab7041 help texts
Claus Gittinger <cg@exept.de>
parents: 907
diff changeset
   207
'Paste from the clipboard.'
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   208
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   209
#editUndo
910
670bffab7041 help texts
Claus Gittinger <cg@exept.de>
parents: 907
diff changeset
   210
'Undo the last action.'
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   211
823
d812eae12888 help texts added
tz
parents: 822
diff changeset
   212
#file
834
ac1655bd31bb class category changed
tz
parents: 833
diff changeset
   213
'File functions.'
805
d4c4ee3bb474 now, help menu is very rudimentarily
tz
parents: 804
diff changeset
   214
823
d812eae12888 help texts added
tz
parents: 822
diff changeset
   215
#fileBrowseClass
910
670bffab7041 help texts
Claus Gittinger <cg@exept.de>
parents: 907
diff changeset
   216
'Open a System Browser on the current class and selector.'
805
d4c4ee3bb474 now, help menu is very rudimentarily
tz
parents: 804
diff changeset
   217
823
d812eae12888 help texts added
tz
parents: 822
diff changeset
   218
#fileDefineClass
910
670bffab7041 help texts
Claus Gittinger <cg@exept.de>
parents: 907
diff changeset
   219
'Open a dialog to define the current class.'
805
d4c4ee3bb474 now, help menu is very rudimentarily
tz
parents: 804
diff changeset
   220
d4c4ee3bb474 now, help menu is very rudimentarily
tz
parents: 804
diff changeset
   221
#fileDefineClassAndSelector
910
670bffab7041 help texts
Claus Gittinger <cg@exept.de>
parents: 907
diff changeset
   222
'Open a dialog to define the current class and selector.'
805
d4c4ee3bb474 now, help menu is very rudimentarily
tz
parents: 804
diff changeset
   223
823
d812eae12888 help texts added
tz
parents: 822
diff changeset
   224
#fileExit
910
670bffab7041 help texts
Claus Gittinger <cg@exept.de>
parents: 907
diff changeset
   225
'Exit this application.'
823
d812eae12888 help texts added
tz
parents: 822
diff changeset
   226
922
94a40763e3bf checkin from browser
Claus Gittinger <cg@exept.de>
parents: 920
diff changeset
   227
#generate
94a40763e3bf checkin from browser
Claus Gittinger <cg@exept.de>
parents: 920
diff changeset
   228
'Code generation.'
94a40763e3bf checkin from browser
Claus Gittinger <cg@exept.de>
parents: 920
diff changeset
   229
823
d812eae12888 help texts added
tz
parents: 822
diff changeset
   230
#help
834
ac1655bd31bb class category changed
tz
parents: 833
diff changeset
   231
'Help functions.'
823
d812eae12888 help texts added
tz
parents: 822
diff changeset
   232
876
585929b1fec2 some cleans
tz
parents: 872
diff changeset
   233
#helpHelpTool
910
670bffab7041 help texts
Claus Gittinger <cg@exept.de>
parents: 907
diff changeset
   234
'Open an HTML-Browser showing the Help Tools documentation.'
876
585929b1fec2 some cleans
tz
parents: 872
diff changeset
   235
823
d812eae12888 help texts added
tz
parents: 822
diff changeset
   236
#helpShowHelp
910
670bffab7041 help texts
Claus Gittinger <cg@exept.de>
parents: 907
diff changeset
   237
'Toggle display of help texts.'
823
d812eae12888 help texts added
tz
parents: 822
diff changeset
   238
d812eae12888 help texts added
tz
parents: 822
diff changeset
   239
#helpTutorial
910
670bffab7041 help texts
Claus Gittinger <cg@exept.de>
parents: 907
diff changeset
   240
'Open an HTML-Browser showing this applications documentation.'
823
d812eae12888 help texts added
tz
parents: 822
diff changeset
   241
d812eae12888 help texts added
tz
parents: 822
diff changeset
   242
#history
834
ac1655bd31bb class category changed
tz
parents: 833
diff changeset
   243
'History functions.'
803
f6ca4eb5da39 help texts for the history added
tz
parents: 802
diff changeset
   244
f6ca4eb5da39 help texts for the history added
tz
parents: 802
diff changeset
   245
#historyEmptyMenu
910
670bffab7041 help texts
Claus Gittinger <cg@exept.de>
parents: 907
diff changeset
   246
'Delete all items in the history.'
803
f6ca4eb5da39 help texts for the history added
tz
parents: 802
diff changeset
   247
823
d812eae12888 help texts added
tz
parents: 822
diff changeset
   248
#historyMenuItem
910
670bffab7041 help texts
Claus Gittinger <cg@exept.de>
parents: 907
diff changeset
   249
'Evaluate the text of the menu item for loading.'
762
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
   250
893
8a142b17a0c8 some cleans
tz
parents: 892
diff changeset
   251
#settings
8a142b17a0c8 some cleans
tz
parents: 892
diff changeset
   252
'Settings functions.'
8a142b17a0c8 some cleans
tz
parents: 892
diff changeset
   253
823
d812eae12888 help texts added
tz
parents: 822
diff changeset
   254
#test
834
ac1655bd31bb class category changed
tz
parents: 833
diff changeset
   255
'Test functions.'
762
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
   256
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
   257
)
922
94a40763e3bf checkin from browser
Claus Gittinger <cg@exept.de>
parents: 920
diff changeset
   258
94a40763e3bf checkin from browser
Claus Gittinger <cg@exept.de>
parents: 920
diff changeset
   259
    "Modified: / 19.5.1998 / 21:32:01 / cg"
762
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
   260
! !
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
   261
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   262
!ToolApplicationModel class methodsFor:'history'!
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   263
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   264
getHistory
907
f4087882555a method comments added
tz
parents: 893
diff changeset
   265
    "returns the history for this tool class"
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   266
761
cc0404f8aec6 #getHistory changed because here #? doesn't work correctly
tz
parents: 760
diff changeset
   267
    history isNil ifTrue: [history := OrderedCollection new].
cc0404f8aec6 #getHistory changed because here #? doesn't work correctly
tz
parents: 760
diff changeset
   268
    ^history
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   269
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   270
!
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   271
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   272
historyMaxSize
907
f4087882555a method comments added
tz
parents: 893
diff changeset
   273
    "returns the maximum size for the history of this tool class"
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   274
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   275
    ^10
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   276
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   277
! !
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   278
869
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   279
!ToolApplicationModel class methodsFor:'image specs'!
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   280
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   281
copyIcon
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   282
    "This resource specification was automatically generated
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   283
     by the ImageEditor of ST/X."
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   284
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   285
    "Do not manually edit this!! If it is corrupted,
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   286
     the ImageEditor may not be able to read the specification."
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   287
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   288
    "
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   289
     ImageEditor openOnClass:self andSelector:#copyIcon
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   290
    "
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   291
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   292
    <resource: #image>
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   293
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   294
    ^Icon
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   295
        constantNamed:#'ToolApplicationModel copyIcon'
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   296
        ifAbsentPut:[(Depth2Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@AUUUW@@@A???>@@@A???>O@@A???>@@@A???>@@@@@@?>@EUUU\?>@G???8?>@G???8?>@G???8?>@G???8?>@G???8?>IG???8?>@G???8**MG???8@@@G???8@@KG???8@@@G???8@@@G???8@@HN***(@@@@@@@@@@@') ; colorMapFromArray:#[0 0 0 255 255 255 127 127 127 170 170 170]; mask:((Depth1Image new) width: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@_?<@_?<@_?<@_?<@_?<@_?<???<???<???<???<???<???<???<???<???<???<??8@??8@??8@??8@??8@??8@') ; yourself); yourself]!
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   297
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   298
cutIcon
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   299
    "This resource specification was automatically generated
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   300
     by the ImageEditor of ST/X."
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   301
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   302
    "Do not manually edit this!! If it is corrupted,
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   303
     the ImageEditor may not be able to read the specification."
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   304
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   305
    "
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   306
     ImageEditor openOnClass:self andSelector:#cutIcon
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   307
    "
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   308
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   309
    <resource: #image>
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   310
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   311
    ^Icon
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   312
        constantNamed:#'ToolApplicationModel cutIcon'
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   313
        ifAbsentPut:[(Depth4Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#(4 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@@@@DQDQDP0AL@@L@@@SL3L3CBL @B0@@AL3L3LL0B@@3@@@D3L3L0KB@@KB@@@SL3L3LL0@CL@@@AL3L3L0KB@,H@@@D3L3L3LL0L0@@@@SL3L3L0K@0 @@@AL3L3L3LL3@@@@@D3L3L3L03L@@@@@SL3L3L0CL0@@@@AL3L3L3@,CB@@@@D3L3L3@L0L0@@@@2H"H H"0 KBH @@@@@@KL3@@L3LH@@@@@CBCB@@K@K@@@@@@L@LH@@,@L@@@@@@0@0 @B0@0@@@@@CBC@@@C@K@@@@@@@3@@@@@3@@@@@@@@@@@@@@@@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: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'_?<@_=\P_=<0_=,0_=50_>5 _>; _?[@_?[@_?.@_?.@_?N@_?[@_>[@_;;8_75<@F1,@D1$@D1$@F ,@C@X@@@@') ; yourself); yourself]!
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   314
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   315
deleteIcon
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   316
    "This resource specification was automatically generated
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   317
     by the ImageEditor of ST/X."
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   318
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   319
    "Do not manually edit this!! If it is corrupted,
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   320
     the ImageEditor may not be able to read the specification."
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   321
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   322
    "
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   323
     ImageEditor openOnClass:self andSelector:#deleteIcon
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   324
    "
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   325
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   326
    <resource: #image>
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   327
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   328
    ^Icon
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   329
        constantNamed:#'ToolApplicationModel deleteIcon'
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   330
        ifAbsentPut:[(Depth4Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#(4 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@@@@DQDQDQDQL@@@@@@SL3L3L3L @@@@@AL3L3L3L2@@@@@@D3L3L3L3H@@@H@@SL3L3L3L @@H@@AL3L3L3L2@@@@@@D3L3L3L3@@@@@@@SL3L3L0@ @@@ @AL3L3L3@@@@@@@@D3L3L3L@D@@@H@@SL3L3L0@QL3H @AL3L3L3@A@3LB@@D3L3L3L@DC@0H@@2H"H"H @PLC@ @@@@@@@@@A@0LB@@@@@@@@@@DC@0H@@@@@@@@@@PLC@ @@@@@@@@@A@0LB@@@@@@@@@@DS@2H@@@@@@@@@HAL3HB@@@@@@@@@@@@@@@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: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'_?<@_?<@_?<P_?<P_?<X_?<X_?<H_?0H_?O<_?XL_?_<_?_<_?_<_?_<_?_<_?_<@@_<@@_<@@_<@@_<@@_<@@G0') ; yourself); yourself]!
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   331
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   332
desktopIcon
907
f4087882555a method comments added
tz
parents: 893
diff changeset
   333
    "returns the icon used for the desktop"
869
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   334
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   335
    ^Icon
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   336
        constantNamed:#'ToolApplicationModel desktopIcon'
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   337
        ifAbsentPut:
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   338
        [
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   339
            |desktopIcon|
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   340
            desktopIcon := self stxIcon.
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   341
            desktopIcon magnifiedBy: Display preferredIconSize/desktopIcon extent
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   342
        ]
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   343
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   344
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   345
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   346
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   347
!
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   348
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   349
downIcon
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   350
    "This resource specification was automatically generated
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   351
     by the ImageEditor of ST/X."
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   352
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   353
    "Do not manually edit this!! If it is corrupted,
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   354
     the ImageEditor may not be able to read the specification."
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   355
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   356
    "
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   357
     ImageEditor openOnClass:self andSelector:#downIcon
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   358
    "
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   359
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   360
    <resource: #image>
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   361
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   362
    ^Icon
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   363
        constantNamed:#'ToolApplicationModel downIcon'
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   364
        ifAbsentPut:[(Depth2Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'UUT@AUUPUUT*%UUPUUT*%UUPUUT*%UUPUUT*%UUPUUT*%UUPUUT*%UUPUUT*%UUPUUT*%UUPUUT*%UUPUUT*%UUPUUT*%UUPUUT*%UUPUUT*%UUPUUT*%UUPUT@*$AUPUT***%UPUU***UUPUUZ*)UUPUUV*%UUPUUU*UUUPUUUYUUUP') ; colorMapFromArray:#[255 255 255 0 0 0 0 127 0 255 0 0]; mask:((Depth1Image new) width: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@O0@@O0@@O0@@O0@@O0@@O0@@O0@@O0@@O0@@O0@@O0@@O0@@O0@@O0@@O0@A?>@A?>@@?<@@_8@@O0@@G @@C@@') ; yourself); yourself]!
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   365
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   366
downRightIcon
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   367
    "This resource specification was automatically generated
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   368
     by the ImageEditor of ST/X."
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   369
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   370
    "Do not manually edit this!! If it is corrupted,
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   371
     the ImageEditor may not be able to read the specification."
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   372
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   373
    "
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   374
     ImageEditor openOnClass:self andSelector:#downRightIcon
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   375
    "
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   376
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   377
    <resource: #image>
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   378
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   379
    ^Icon
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   380
        constantNamed:#'ToolApplicationModel downRightIcon'
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   381
        ifAbsentPut:[(Depth2Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'UUUUUUUPP@EUUUUPR*UUUUUPR*UUUUUPR*UUUUUPR*UUUUUPR*UUUUUPR*UUUUUPR*UUUUUPR*UUUUUPR*UUTEUPR*UUT!!UPR*UUT(UPR*P@@*EPR*****!!PR*****(PR*****)PR*****%PQUUUU*UPUUUUT)UPUUUUT%UPUUUUTUUP') ; colorMapFromArray:#[255 255 255 0 0 0 0 127 0 255 0 0]; mask:((Depth1Image new) width: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@_ @@_ @@_ @@_ @@_ @@_ @@_ @@_ @@_ @@_ L@_ N@_ O@_?? _??0_??8_??8_??0_?? @@O@@@N@@@L@') ; yourself); yourself]!
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   382
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   383
helpIcon
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   384
    "This resource specification was automatically generated
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   385
     by the ImageEditor of ST/X."
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   386
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   387
    "Do not manually edit this!! If it is corrupted,
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   388
     the ImageEditor may not be able to read the specification."
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   389
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   390
    "
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   391
     ImageEditor openOnClass:self andSelector:#helpIcon
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   392
    "
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   393
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   394
    <resource: #image>
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   395
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   396
    ^Icon
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   397
        constantNamed:#'ToolApplicationModel helpIcon'
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   398
        ifAbsentPut:[(Depth1Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@O0A@_8@@?<@@8\C@8\A@@\@@@8@@A8@@C0@@G @@G@@@G@@@G@C@@@@@@@@@G@@@G@@@G@@@@@@@@@@') ; colorMapFromArray:#[0 0 0 127 0 127]; mask:((Depth1Image new) width: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@O0@@_8@@?<@@8\@@8\@@@\@@@8@@A8@@C0@@G @@G@@@G@@@G@@@@@@@@@@@G@@@G@@@G@@@@@@@@@@') ; yourself); yourself]!
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   399
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   400
leftDownIcon
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   401
    "This resource specification was automatically generated
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   402
     by the ImageEditor of ST/X."
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   403
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   404
    "Do not manually edit this!! If it is corrupted,
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   405
     the ImageEditor may not be able to read the specification."
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   406
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   407
    "
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   408
     ImageEditor openOnClass:self andSelector:#leftDownIcon
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   409
    "
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   410
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   411
    <resource: #image>
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   412
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   413
    ^Icon
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   414
        constantNamed:#'ToolApplicationModel leftDownIcon'
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   415
        ifAbsentPut:[(Depth2Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'UUUUUUUPU@@@@@@PUJ****)PUJ****)PUJ****)PUJ****)PUJ)UUUUPUJ)UUUUPUJ)UUUUPUJ)UUUUPUJ)UUUUPUJ)UUUUPUJ)UUUUPUJ)UUUUP@J*@UUUPJ**)UUUPR**%UUUPT**UUUUPUJ)UUUUPUR%UUUUPUTUUUUUPUUUUUUUP') ; colorMapFromArray:#[255 255 255 0 0 0 0 127 0 255 0 0]; mask:((Depth1Image new) width: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@G??8G??8G??8G??8G??8G??8G8@@G8@@G8@@G8@@G8@@G8@@G8@@??@@??@@_>@@O<@@G8@@C0@@A @@@@@@') ; yourself); yourself]!
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   416
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   417
leftIcon
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   418
    "This resource specification was automatically generated
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   419
     by the ImageEditor of ST/X."
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   420
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   421
    "Do not manually edit this!! If it is corrupted,
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   422
     the ImageEditor may not be able to read the specification."
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   423
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   424
    "
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   425
     ImageEditor openOnClass:self andSelector:#leftIcon
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   426
    "
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   427
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   428
    <resource: #image>
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   429
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   430
    ^Icon
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   431
        constantNamed:#'ToolApplicationModel leftIcon'
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   432
        ifAbsentPut:[(Depth2Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'UUUUUUUPUUUUUUUPUUUUUUUPUUUUUUUPUUUUUUUPUTUUUUUPURUUUUUPUJUUUUUPT*P@@@@PR******PJ******PZ******PV******PU*UUUUUPUZUUUUUPUVUUUUUPUUUUUUUPUUUUUUUPUUUUUUUPUUUUUUUPUUUUUUUPUUUUUUUP') ; colorMapFromArray:#[255 255 255 0 0 0 0 127 0 255 0 0]; mask:((Depth1Image new) width: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@@@@@@@@A @@C @@G @@O??<_??<???<???<_??<O??<G @@C @@A @@@@@@@@@@@@@@@@@@@@@@') ; yourself); yourself]!
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   433
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   434
loadIcon
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   435
    "This resource specification was automatically generated
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   436
     by the ImageEditor of ST/X."
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   437
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   438
    "Do not manually edit this!! If it is corrupted,
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   439
     the ImageEditor may not be able to read the specification."
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   440
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   441
    "
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   442
     ImageEditor openOnClass:self andSelector:#loadIcon
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   443
    "
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   444
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   445
    <resource: #image>
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   446
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   447
    ^Icon
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   448
        constantNamed:#'ToolApplicationModel loadIcon'
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   449
        ifAbsentPut:[(Depth2Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'UUUUUUUPUUUUU?UPUUUUW*5PU???>*/PU:****)PUUUUUUZPP@@@@@EPS?????&PS?????%PS?????&PS?????%PT?????9PT?????9PT?????9PT?????9PT?????9PT?????9PUO????>PUO????>PUO????>PU:*****PUUUUUUUP') ; colorMapFromArray:#[255 255 255 0 0 0 127 127 127 170 170 170]; mask:((Depth1Image new) width: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@G@@@O G??8O??<O??<_??<???<???<???<???<???<_??<_??<_??<_??<_??<_??<O??<O??<O??<O??<O??<') ; yourself); yourself]!
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   450
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   451
menuIcon
907
f4087882555a method comments added
tz
parents: 893
diff changeset
   452
    "returns the icon used for the menu bar"
869
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   453
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   454
    ^Icon
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   455
        constantNamed:#'ToolApplicationModel menuIcon'
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   456
        ifAbsentPut:
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   457
        [
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   458
            |menuIcon|
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   459
            menuIcon := self stxIcon.
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   460
            menuIcon magnifiedBy: MenuPanel defaultFont height/menuIcon height
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   461
        ]
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   462
!
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   463
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   464
newIcon
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   465
    "This resource specification was automatically generated
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   466
     by the ImageEditor of ST/X."
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   467
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   468
    "Do not manually edit this!! If it is corrupted,
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   469
     the ImageEditor may not be able to read the specification."
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   470
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   471
    "
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   472
     ImageEditor openOnClass:self andSelector:#newIcon
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   473
    "
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   474
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   475
    <resource: #image>
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   476
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   477
    ^Icon
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   478
        constantNamed:#'ToolApplicationModel newIcon'
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   479
        ifAbsentPut:[(Depth2Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@AUUUUP@@A????2@@A????2 @A????0@@A?????8@A?????8@A?????8@A?????8@A?????8@A?????8@A?????8@A?????8@A?????8@A?????8@A?????8@A?????8@A?????8@A?????8@A?????8@C*****(@@@@@@@@@') ; colorMapFromArray:#[0 0 0 255 255 255 127 127 127 170 170 170]; mask:((Depth1Image new) width: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'_?>@_??@_?? _??0_??8_??8_??8_??8_??8_??8_??8_??8_??8_??8_??8_??8_??8_??8_??8_??8_??8_??8') ; yourself); yourself]!
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   480
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   481
pasteIcon
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   482
    "This resource specification was automatically generated
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   483
     by the ImageEditor of ST/X."
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   484
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   485
    "Do not manually edit this!! If it is corrupted,
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   486
     the ImageEditor may not be able to read the specification."
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   487
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   488
    "
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   489
     ImageEditor openOnClass:self andSelector:#pasteIcon
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   490
    "
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   491
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   492
    <resource: #image>
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   493
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   494
    ^Icon
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   495
        constantNamed:#'ToolApplicationModel pasteIcon'
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   496
        ifAbsentPut:[(Depth4Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#(4 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@KLH@@@@@@@@@@@CL3@@@@@@@@@@@CBH"0@@@@@@@@QD,3L3BDQ@@@@@ADQDQDQDQD@@@@@DQDQDQDQDP@@@@@@@@@@DQDQ@ADQDQDQDS@QDQD@D3L3L3L3HADQDP@SL3L3L3L DQDQ@AL3L3L3L2@QDQD@D3L3L3L3HADQDP@SL3L3L3L DQDQ@AL3L3L3L2@QDQD@D3L3L3L3HADQDP@SL3L3L3L DQDQ@AL3L3L3L2@QDQD@D3L3L3L3HADQDP@SL3L3L3L DQDQ@AL3L3L3L2@@@@@@L"H"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: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@<@@@<@@??<@??<@??<@??<???<???<???<???<???<???<???<???<???<???<???<???<???<???<??8@??8@') ; yourself); yourself]!
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   497
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   498
rightIcon
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   499
    "This resource specification was automatically generated
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   500
     by the ImageEditor of ST/X."
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   501
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   502
    "Do not manually edit this!! If it is corrupted,
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   503
     the ImageEditor may not be able to read the specification."
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   504
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   505
    "
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   506
     ImageEditor openOnClass:self andSelector:#rightIcon
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   507
    "
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   508
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   509
    <resource: #image>
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   510
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   511
    ^Icon
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   512
        constantNamed:#'ToolApplicationModel rightIcon'
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   513
        ifAbsentPut:[(Depth2Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'UUUUUUUPUUUUUUUPUUUUUUUPUUUUUUUPUUUUUUUPUUUUUEUPUUUUUIUPUUUUUJUP@@@@@J%PJ*****)PJ******PJ******PJ*****)PEUUUUZ%PUUUUUJUPUUUUUIUPUUUUUEUPUUUUUUUPUUUUUUUPUUUUUUUPUUUUUUUPUUUUUUUP') ; colorMapFromArray:#[255 255 255 0 0 0 0 127 0 255 0 0]; mask:((Depth1Image new) width: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@@@@@@@@@@F@@@G@@@G ???0???8???<???<???8???0@@G @@G@@@F@@@@@@@@@@@@@@@@@@@@@') ; yourself); yourself]!
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   514
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   515
saveIcon
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   516
    "This resource specification was automatically generated
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   517
     by the ImageEditor of ST/X."
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   518
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   519
    "Do not manually edit this!! If it is corrupted,
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   520
     the ImageEditor may not be able to read the specification."
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   521
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   522
    "
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   523
     ImageEditor openOnClass:self andSelector:#saveIcon
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   524
    "
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   525
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   526
    <resource: #image>
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   527
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   528
    ^Icon
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   529
        constantNamed:#'ToolApplicationModel saveIcon'
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   530
        ifAbsentPut:[(Depth2Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'AL3L3L@PM3L3L0?PML3L3L=PM3L3L0=PML3L3L?PM3L3L0?PML3L3L?PM3L3L0?PML3L3L?PM3L3L0?PML3L3L?PM@@@@@?PO??????PO??????PO??????PO=UUUU?PO=???[?PO=5O?Z?PO=6O?Z?PO=6O?Z?PO=0O?Z?P5U***U5P') ; colorMapFromArray:#[255 255 255 0 0 0 127 127 127 170 170 170]; mask:((Depth1Image new) width: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'???<???<???<???<???<???<???<???<???<???<???<???<???<???<???<???<???<???<???<???<???<???8') ; yourself); yourself]!
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   531
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   532
startIcon
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   533
    "This resource specification was automatically generated
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   534
     by the ImageEditor of ST/X."
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   535
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   536
    "Do not manually edit this!! If it is corrupted,
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   537
     the ImageEditor may not be able to read the specification."
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   538
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   539
    "
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   540
     ImageEditor openOnClass:self andSelector:#startIcon
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   541
    "
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   542
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   543
    <resource: #image>
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   544
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   545
    ^Icon
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   546
        constantNamed:#'ToolApplicationModel startIcon'
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   547
        ifAbsentPut:[(Depth4Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#(4 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@@@@@N8@@@@@@@@@@@@N<^@@@@@@@@@@@@;.;.;.;.@@@@@@C/G @@@@8^@@@@@N<^@@@@@A@@@@@@;18@@@@@D@@@@@C.;.;.; @P@@@@@N<^@@@@@@@@@@@@;18@@@C!!G.@@@@C/G @@@@G>@@@@@N;.;.; @_8@@@@@;18@@@@A? @@@@C/G @@@@G>@@@@@N<^@@@@@_8@@@@@;.;.;.@A? @@@@C/G @@@@G>@@@@@N<^@@@@@_8@@@@@;18@@@@@@@@@@@C.; @@@@DQ@@@@C ; 8@@@A&X@@@C 8@8N@@@"H"@@@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: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@AC@DAG DAG?<@G N@G N@G N@G?.@G N@G _@G _@G?_@G _@G _@G _@G?_@G ? G!!?0G!!?0G!!.PKQNPT(_@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@a') ; yourself); yourself]!
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   548
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   549
stxIcon
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   550
    "This resource specification was automatically generated
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   551
     by the ImageEditor of ST/X."
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   552
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   553
    "Do not manually edit this!! If it is corrupted,
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   554
     the ImageEditor may not be able to read the specification."
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   555
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   556
    "
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   557
     ImageEditor openOnClass:self andSelector:#stxIcon
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   558
    "
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   559
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   560
    <resource: #image>
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   561
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   562
    ^Icon
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   563
        constantNamed:#'ToolApplicationModel stxIcon'
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   564
        ifAbsentPut:[(Depth2Image new) width: 48; height: 48; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@U@@@@@@@AP@@@@@AUP@@@@@@E@@@@@@AUP@@@@@@T@@@@@@AUP@@@@@EP@@@@@@AUP@@@@@DP@@@@@@AUD@@@@AU@@@@@@@@UT@@@@@T@@@@@@@@UT@@@@QP@@@@@@@@EU@@@@U@@@@@@@@@AU@@@AD@@@@@@@@@ATP@@UP@@@@@@@@@AUP@@Q@@@@@@@@@@@UT@AD@@@@@@@@@@@AQ@DP@@@@@@@@@@@EU@Q@@@@@@@@@@@@ATQT@@@@@@@@@@@@AUTP@@@@@@@@@@@@@EPP@@@@@@@@@@@@@QU@@@@@@@@@@@@@@EU@@@@@@@@@@@@@@UT@@@@@@@@@@@@@AUE@@@@@@@@@@@@@EUU@@@@@@@@@@@@@UPEP@@@@@@@@@@@AUPAT@@@@@@@@@@@EE@AU@@@@@@@@@@AET@@E@@@@@@@@@@AUP@@EP@@@@@@@@@UU@@@AP@@@@@@@@AUP@@@AT@@@@@@@@EUP@@@@T@@@@@@@AUU@@@@@E@@@@@@@EUT@@@@@DP@@@@@@UUP@@@@@AP@@@@@@UUP@@@@@@T@@@@@@UU@@@@@@@E@@@@@@ET@@@@@@@A@@@@@@@@@@@@@@@@P@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@') ; colorMapFromArray:#[25 25 25 0 204 51 0 0 0 255 255 255]; yourself]!
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   565
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   566
upIcon
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   567
    "This resource specification was automatically generated
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   568
     by the ImageEditor of ST/X."
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   569
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   570
    "Do not manually edit this!! If it is corrupted,
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   571
     the ImageEditor may not be able to read the specification."
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   572
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   573
    "
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   574
     ImageEditor openOnClass:self andSelector:#upIcon
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   575
    "
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   576
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   577
    <resource: #image>
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   578
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   579
    ^Icon
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   580
        constantNamed:#'ToolApplicationModel upIcon'
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   581
        ifAbsentPut:[(Depth2Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'UUUQUUUPUUUJUUUPUUT*%UUPUUR*)UUPUUJ**UUPUT***%UPUTV*%UUPUUT*%UUPUUT*%UUP_UT*%UUP_UT*%UUP_5T*%UUPWUT*%UUPWWT*%UUPWUT*%UUPUUT*%UUPUUT*%UUPUUT*%UUPUUT*%UUPUUT*%UUPUUT*%UUPUUTUUUUP') ; colorMapFromArray:#[255 255 255 0 0 0 0 127 0 255 0 0]; mask:((Depth1Image new) width: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@C@@@G @@O0@@_8@@?<@A?>@A?>@@O0@@O0@@O0@@O0@@O0@@O0@@O0@@O0@@O0@@O0@@O0@@O0@@O0@@O0@@O0@') ; yourself); yourself]! !
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   582
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   583
!ToolApplicationModel class methodsFor:'interface specs'!
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   584
797
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   585
windowSpecForCommit
869
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   586
    "This resource specification was automatically generated
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   587
     by the UIPainter of ST/X."
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   588
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   589
    "Do not manually edit this!! If it is corrupted,
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   590
     the UIPainter may not be able to read the specification."
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   591
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   592
    "
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   593
     UIPainter new openOnClass:ToolApplicationModel andSelector:#windowSpecForCommit
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   594
     ToolApplicationModel new openInterface:#windowSpecForCommit
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   595
    "
797
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   596
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   597
    <resource: #canvas>
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   598
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   599
    ^
859
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   600
     
797
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   601
       #(#FullSpec
859
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   602
          #window: 
797
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   603
           #(#WindowSpec
859
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   604
              #name: 'Commit Buttons'
869
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   605
              #layout: #(#LayoutFrame 344 0 371 0 643 0 430 0)
859
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   606
              #label: 'Commit Buttons'
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   607
              #min: #(#Point 100 22)
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   608
              #max: #(#Point 1152 900)
869
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   609
              #bounds: #(#Rectangle 344 371 644 431)
859
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   610
              #usePreferredExtent: false
797
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   611
          )
859
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   612
          #component: 
797
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   613
           #(#SpecCollection
859
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   614
              #collection: 
797
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   615
               #(
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   616
                 #(#ActionButtonSpec
859
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   617
                    #name: 'cancelButton'
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   618
                    #layout: #(#LayoutFrame 5 0 0 0 -2 0.5 0 1)
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   619
                    #activeHelpKey: #commitCancel
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   620
                    #label: 'Cancel'
927
2e4efdc9bc69 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 922
diff changeset
   621
                    #translateLabel: true
859
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   622
                    #tabable: true
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   623
                    #model: #cancel
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   624
                    #enableChannel: #valueOfEnablingCommitButtons
797
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   625
                )
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   626
                 #(#ActionButtonSpec
859
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   627
                    #name: 'okButton'
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   628
                    #layout: #(#LayoutFrame 2 0.5 0 0.0 -5 1 0 1.0)
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   629
                    #activeHelpKey: #commitOK
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   630
                    #label: 'OK'
927
2e4efdc9bc69 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 922
diff changeset
   631
                    #translateLabel: true
859
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   632
                    #tabable: true
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   633
                    #model: #accept
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   634
                    #enableChannel: #valueOfEnablingCommitButtons
797
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   635
                )
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   636
              )
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   637
          )
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   638
      )
927
2e4efdc9bc69 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 922
diff changeset
   639
2e4efdc9bc69 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 922
diff changeset
   640
    "Modified: / 20.5.1998 / 03:31:54 / cg"
797
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   641
!
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   642
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   643
windowSpecForCommitWithoutChannels
869
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   644
    "This resource specification was automatically generated
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   645
     by the UIPainter of ST/X."
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   646
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   647
    "Do not manually edit this!! If it is corrupted,
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   648
     the UIPainter may not be able to read the specification."
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   649
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   650
    "
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   651
     UIPainter new openOnClass:ToolApplicationModel andSelector:#windowSpecForCommitWithoutChannels
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   652
     ToolApplicationModel new openInterface:#windowSpecForCommitWithoutChannels
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   653
    "
797
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   654
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   655
    <resource: #canvas>
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   656
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   657
    ^
859
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   658
     
797
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   659
       #(#FullSpec
859
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   660
          #window: 
797
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   661
           #(#WindowSpec
859
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   662
              #name: 'Commit Buttons Without Channels'
869
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   663
              #layout: #(#LayoutFrame 500 0 326 0 799 0 385 0)
859
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   664
              #label: 'Commit Buttons Without Channels'
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   665
              #min: #(#Point 100 22)
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   666
              #max: #(#Point 1152 900)
869
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   667
              #bounds: #(#Rectangle 500 326 800 386)
859
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   668
              #usePreferredExtent: false
797
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   669
          )
859
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   670
          #component: 
797
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   671
           #(#SpecCollection
859
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   672
              #collection: 
797
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   673
               #(
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   674
                 #(#ActionButtonSpec
859
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   675
                    #name: 'cancelButton'
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   676
                    #layout: #(#LayoutFrame 5 0 0 0 -2 0.5 0 1)
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   677
                    #activeHelpKey: #commitCancel
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   678
                    #label: 'Cancel'
927
2e4efdc9bc69 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 922
diff changeset
   679
                    #translateLabel: true
859
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   680
                    #tabable: true
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   681
                    #model: #cancel
797
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   682
                )
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   683
                 #(#ActionButtonSpec
859
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   684
                    #name: 'okButton'
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   685
                    #layout: #(#LayoutFrame 2 0.5 0 0.0 -5 1 0 1.0)
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   686
                    #activeHelpKey: #commitOK
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   687
                    #label: 'OK'
927
2e4efdc9bc69 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 922
diff changeset
   688
                    #translateLabel: true
859
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   689
                    #tabable: true
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   690
                    #model: #accept
797
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   691
                )
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   692
              )
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   693
          )
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   694
      )
927
2e4efdc9bc69 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 922
diff changeset
   695
2e4efdc9bc69 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 922
diff changeset
   696
    "Modified: / 20.5.1998 / 03:30:09 / cg"
797
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   697
!
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   698
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   699
windowSpecForInfoBar
869
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   700
    "This resource specification was automatically generated
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   701
     by the UIPainter of ST/X."
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   702
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   703
    "Do not manually edit this!! If it is corrupted,
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   704
     the UIPainter may not be able to read the specification."
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   705
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   706
    "
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   707
     UIPainter new openOnClass:ToolApplicationModel andSelector:#windowSpecForInfoBar
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   708
     ToolApplicationModel new openInterface:#windowSpecForInfoBar
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   709
    "
797
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   710
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   711
    <resource: #canvas>
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   712
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   713
    ^
859
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   714
     
797
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   715
       #(#FullSpec
859
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   716
          #window: 
797
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   717
           #(#WindowSpec
859
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   718
              #name: 'Info Bar'
869
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   719
              #layout: #(#LayoutFrame 233 0 218 0 732 0 563 0)
859
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   720
              #label: 'Info Bar'
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   721
              #min: #(#Point 400 320)
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   722
              #max: #(#Point 1152 900)
869
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   723
              #bounds: #(#Rectangle 233 218 733 564)
859
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   724
              #menu: #menu
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   725
              #usePreferredExtent: false
797
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   726
          )
859
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   727
          #component: 
797
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   728
           #(#SpecCollection
859
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   729
              #collection: 
797
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   730
               #(
820
d01d777e2bb3 info bars redesigned
tz
parents: 805
diff changeset
   731
                 #(#ViewSpec
859
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   732
                    #name: 'view'
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   733
                    #layout: #(#LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0)
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   734
                    #component: 
820
d01d777e2bb3 info bars redesigned
tz
parents: 805
diff changeset
   735
                     #(#SpecCollection
859
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   736
                        #collection: 
820
d01d777e2bb3 info bars redesigned
tz
parents: 805
diff changeset
   737
                         #(
d01d777e2bb3 info bars redesigned
tz
parents: 805
diff changeset
   738
                           #(#LabelSpec
859
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   739
                              #name: 'infoLabel'
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   740
                              #layout: #(#LayoutFrame 2 0.0 1 0.0 -1 1.0 -1 1.0)
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   741
                              #labelChannel: #valueOfInfoLabel
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   742
                              #level: -1
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   743
                              #adjust: #left
869
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   744
                              #resizeForLabel: false
820
d01d777e2bb3 info bars redesigned
tz
parents: 805
diff changeset
   745
                          )
d01d777e2bb3 info bars redesigned
tz
parents: 805
diff changeset
   746
                        )
d01d777e2bb3 info bars redesigned
tz
parents: 805
diff changeset
   747
                    )
797
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   748
                )
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   749
              )
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   750
          )
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   751
      )
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   752
!
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   753
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   754
windowSpecForInfoBarWithClock
869
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   755
    "This resource specification was automatically generated
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   756
     by the UIPainter of ST/X."
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   757
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   758
    "Do not manually edit this!! If it is corrupted,
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   759
     the UIPainter may not be able to read the specification."
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   760
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   761
    "
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   762
     UIPainter new openOnClass:ToolApplicationModel andSelector:#windowSpecForInfoBarWithClock
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   763
     ToolApplicationModel new openInterface:#windowSpecForInfoBarWithClock
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   764
    "
797
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   765
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   766
    <resource: #canvas>
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   767
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   768
    ^
859
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   769
     
797
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   770
       #(#FullSpec
859
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   771
          #window: 
797
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   772
           #(#WindowSpec
859
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   773
              #name: 'Info Bar'
872
a1606dcbd38b better font setting routines
tz
parents: 871
diff changeset
   774
              #layout: #(#LayoutFrame 160 0 423 0 659 0 453 0)
859
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   775
              #label: 'Info Bar'
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   776
              #min: #(#Point 400 320)
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   777
              #max: #(#Point 1152 900)
872
a1606dcbd38b better font setting routines
tz
parents: 871
diff changeset
   778
              #bounds: #(#Rectangle 160 423 660 454)
859
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   779
              #menu: #menu
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   780
              #usePreferredExtent: false
797
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   781
          )
859
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   782
          #component: 
797
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   783
           #(#SpecCollection
859
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   784
              #collection: 
797
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   785
               #(
820
d01d777e2bb3 info bars redesigned
tz
parents: 805
diff changeset
   786
                 #(#ViewSpec
859
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   787
                    #name: 'view'
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   788
                    #layout: #(#LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0)
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   789
                    #component: 
820
d01d777e2bb3 info bars redesigned
tz
parents: 805
diff changeset
   790
                     #(#SpecCollection
859
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   791
                        #collection: 
820
d01d777e2bb3 info bars redesigned
tz
parents: 805
diff changeset
   792
                         #(
d01d777e2bb3 info bars redesigned
tz
parents: 805
diff changeset
   793
                           #(#LabelSpec
859
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   794
                              #name: 'infoLabel'
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   795
                              #layout: #(#LayoutFrame 2 0 1 0.0 -81 1 -1 1.0)
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   796
                              #labelChannel: #valueOfInfoLabel
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   797
                              #level: -1
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   798
                              #adjust: #left
872
a1606dcbd38b better font setting routines
tz
parents: 871
diff changeset
   799
                              #resizeForLabel: false
820
d01d777e2bb3 info bars redesigned
tz
parents: 805
diff changeset
   800
                          )
d01d777e2bb3 info bars redesigned
tz
parents: 805
diff changeset
   801
                           #(#LabelSpec
859
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   802
                              #name: 'timeLabel'
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   803
                              #layout: #(#LayoutFrame -79 1 1 0.0 -1 1.0 -1 1.0)
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   804
                              #labelChannel: #valueOfTimeLabel
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   805
                              #level: -1
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   806
                              #adjust: #right
872
a1606dcbd38b better font setting routines
tz
parents: 871
diff changeset
   807
                              #resizeForLabel: false
820
d01d777e2bb3 info bars redesigned
tz
parents: 805
diff changeset
   808
                          )
d01d777e2bb3 info bars redesigned
tz
parents: 805
diff changeset
   809
                        )
d01d777e2bb3 info bars redesigned
tz
parents: 805
diff changeset
   810
                    )
797
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   811
                )
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   812
              )
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   813
          )
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   814
      )
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   815
! !
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   816
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   817
!ToolApplicationModel class methodsFor:'menu specs'!
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   818
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   819
menuAbout
869
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   820
    "This resource specification was automatically generated
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   821
     by the MenuEditor of ST/X."
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   822
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   823
    "Do not manually edit this!! If it is corrupted,
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   824
     the MenuEditor may not be able to read the specification."
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   825
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   826
    "
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   827
     MenuEditor new openOnClass:ToolApplicationModel andSelector:#menuAbout
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   828
     (Menu new fromLiteralArrayEncoding:(ToolApplicationModel menuAbout)) startUp
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   829
    "
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   830
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   831
    <resource: #menu>
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   832
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   833
    ^
859
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   834
     
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   835
       #(#Menu
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   836
          
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   837
           #(
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   838
             #(#MenuItem
859
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   839
                #label: 'About Smalltalk/X...'
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   840
                #translateLabel: true
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   841
                #value: #openAbout
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   842
                #activeHelpKey: #aboutSTX
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   843
            )
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   844
             #(#MenuItem
859
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   845
                #label: '-'
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   846
            )
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   847
             #(#MenuItem
922
94a40763e3bf checkin from browser
Claus Gittinger <cg@exept.de>
parents: 920
diff changeset
   848
                #label: 'About this Application...'
859
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   849
                #translateLabel: true
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   850
                #value: #openAboutThisApplication
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   851
                #activeHelpKey: #aboutThisAppliaction
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   852
            )
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   853
          ) nil
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   854
          nil
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   855
      )
922
94a40763e3bf checkin from browser
Claus Gittinger <cg@exept.de>
parents: 920
diff changeset
   856
94a40763e3bf checkin from browser
Claus Gittinger <cg@exept.de>
parents: 920
diff changeset
   857
    "Modified: / 19.5.1998 / 21:44:09 / cg"
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   858
!
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   859
869
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   860
menuFont
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   861
    "This resource specification was automatically generated
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   862
     by the MenuEditor of ST/X."
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   863
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   864
    "Do not manually edit this!! If it is corrupted,
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   865
     the MenuEditor may not be able to read the specification."
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   866
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   867
    "
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   868
     MenuEditor new openOnClass:ToolApplicationModel andSelector:#menuFont
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   869
     (Menu new fromLiteralArrayEncoding:(ToolApplicationModel menuFont)) startUp
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   870
    "
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   871
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   872
    <resource: #menu>
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   873
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   874
    ^
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   875
     
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   876
       #(#Menu
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   877
          
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   878
           #(
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   879
             #(#MenuItem
872
a1606dcbd38b better font setting routines
tz
parents: 871
diff changeset
   880
                #label: 'Label...'
869
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   881
                #value: #chooseFont:
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   882
                #argument: 'Label Font'
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   883
            )
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   884
             #(#MenuItem
872
a1606dcbd38b better font setting routines
tz
parents: 871
diff changeset
   885
                #label: 'Button...'
869
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   886
                #value: #chooseFont:
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   887
                #argument: 'Button Font'
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   888
            )
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   889
             #(#MenuItem
872
a1606dcbd38b better font setting routines
tz
parents: 871
diff changeset
   890
                #label: 'Edit...'
869
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   891
                #value: #chooseFont:
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   892
                #argument: 'Edit Font'
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   893
            )
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   894
             #(#MenuItem
872
a1606dcbd38b better font setting routines
tz
parents: 871
diff changeset
   895
                #label: 'List...'
869
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   896
                #value: #chooseFont:
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   897
                #argument: 'List Font'
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   898
            )
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   899
             #(#MenuItem
872
a1606dcbd38b better font setting routines
tz
parents: 871
diff changeset
   900
                #label: 'Tree List...'
869
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   901
                #value: #chooseFont:
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   902
                #argument: 'Tree List Font'
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   903
            )
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   904
             #(#MenuItem
872
a1606dcbd38b better font setting routines
tz
parents: 871
diff changeset
   905
                #label: 'Note Book...'
a1606dcbd38b better font setting routines
tz
parents: 871
diff changeset
   906
                #value: #chooseFont:
a1606dcbd38b better font setting routines
tz
parents: 871
diff changeset
   907
                #argument: 'Note Book Font'
a1606dcbd38b better font setting routines
tz
parents: 871
diff changeset
   908
            )
a1606dcbd38b better font setting routines
tz
parents: 871
diff changeset
   909
             #(#MenuItem
a1606dcbd38b better font setting routines
tz
parents: 871
diff changeset
   910
                #label: 'Framed Box...'
a1606dcbd38b better font setting routines
tz
parents: 871
diff changeset
   911
                #value: #chooseFont:
a1606dcbd38b better font setting routines
tz
parents: 871
diff changeset
   912
                #argument: 'Framed Box Font'
a1606dcbd38b better font setting routines
tz
parents: 871
diff changeset
   913
            )
a1606dcbd38b better font setting routines
tz
parents: 871
diff changeset
   914
             #(#MenuItem
869
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   915
                #label: '-'
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   916
            )
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   917
             #(#MenuItem
872
a1606dcbd38b better font setting routines
tz
parents: 871
diff changeset
   918
                #label: 'Reset'
869
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   919
                #value: #resetFonts
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   920
            )
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   921
          ) nil
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   922
          nil
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   923
      )
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   924
!
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   925
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   926
menuHelp
869
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   927
    "This resource specification was automatically generated
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   928
     by the MenuEditor of ST/X."
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   929
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   930
    "Do not manually edit this!! If it is corrupted,
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   931
     the MenuEditor may not be able to read the specification."
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   932
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   933
    "
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   934
     MenuEditor new openOnClass:ToolApplicationModel andSelector:#menuHelp
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   935
     (Menu new fromLiteralArrayEncoding:(ToolApplicationModel menuHelp)) startUp
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   936
    "
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   937
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   938
    <resource: #menu>
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   939
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   940
    ^
859
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   941
     
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   942
       #(#Menu
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   943
          
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   944
           #(
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   945
             #(#MenuItem
876
585929b1fec2 some cleans
tz
parents: 872
diff changeset
   946
                #label: 'Documentation'
859
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   947
                #translateLabel: true
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   948
                #value: #openDocumentation
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   949
                #activeHelpKey: #helpTutorial
907
f4087882555a method comments added
tz
parents: 893
diff changeset
   950
                #enabled: #valueOfHavingDocumentation
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   951
            )
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   952
             #(#MenuItem
859
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   953
                #label: '-'
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   954
            )
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   955
             #(#MenuItem
859
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   956
                #label: 'Show Help Texts'
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   957
                #translateLabel: true
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   958
                #activeHelpKey: #helpShowHelp
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   959
                #indication: #showHelp:
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   960
            )
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   961
          ) nil
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   962
          nil
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   963
      )
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   964
! !
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   965
907
f4087882555a method comments added
tz
parents: 893
diff changeset
   966
!ToolApplicationModel class methodsFor:'queries'!
f4087882555a method comments added
tz
parents: 893
diff changeset
   967
f4087882555a method comments added
tz
parents: 893
diff changeset
   968
isVisualStartable
f4087882555a method comments added
tz
parents: 893
diff changeset
   969
    "returns whether this application class can be started via #open"
f4087882555a method comments added
tz
parents: 893
diff changeset
   970
f4087882555a method comments added
tz
parents: 893
diff changeset
   971
    self == ToolApplicationModel ifTrue:[^false].
f4087882555a method comments added
tz
parents: 893
diff changeset
   972
    ^super isVisualStartable
f4087882555a method comments added
tz
parents: 893
diff changeset
   973
f4087882555a method comments added
tz
parents: 893
diff changeset
   974
! !
f4087882555a method comments added
tz
parents: 893
diff changeset
   975
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   976
!ToolApplicationModel class methodsFor:'startup / release'!
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   977
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   978
preSnapshot
907
f4087882555a method comments added
tz
parents: 893
diff changeset
   979
    "removes the clipboard before snap shoting"
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   980
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   981
    clipboard := nil
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   982
!
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   983
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   984
uninitialize
907
f4087882555a method comments added
tz
parents: 893
diff changeset
   985
    "resets the class instance variables"
760
26cf45040420 #preferredExtent cleaned
tz
parents: 758
diff changeset
   986
869
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   987
    settings := showHelp := history := clipboard := nil
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   988
! !
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   989
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   990
!ToolApplicationModel methodsFor:'aspects'!
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   991
822
374400d57e0b some useful aspects added
tz
parents: 821
diff changeset
   992
valueOfCanCopy
907
f4087882555a method comments added
tz
parents: 893
diff changeset
   993
    "returns whether can copy as value holder"
822
374400d57e0b some useful aspects added
tz
parents: 821
diff changeset
   994
936
d3d50ac7cdd0 code compression
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   995
    ^ builder booleanValueAspectFor:#valueOfCanCopy
822
374400d57e0b some useful aspects added
tz
parents: 821
diff changeset
   996
936
d3d50ac7cdd0 code compression
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   997
    "Modified: / 21.5.1998 / 03:39:05 / cg"
822
374400d57e0b some useful aspects added
tz
parents: 821
diff changeset
   998
!
374400d57e0b some useful aspects added
tz
parents: 821
diff changeset
   999
374400d57e0b some useful aspects added
tz
parents: 821
diff changeset
  1000
valueOfCanCut
907
f4087882555a method comments added
tz
parents: 893
diff changeset
  1001
    "returns whether can paste as value holder"
822
374400d57e0b some useful aspects added
tz
parents: 821
diff changeset
  1002
936
d3d50ac7cdd0 code compression
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1003
    ^ builder booleanValueAspectFor:#valueOfCanCut
822
374400d57e0b some useful aspects added
tz
parents: 821
diff changeset
  1004
936
d3d50ac7cdd0 code compression
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1005
    "Modified: / 21.5.1998 / 03:39:13 / cg"
822
374400d57e0b some useful aspects added
tz
parents: 821
diff changeset
  1006
!
374400d57e0b some useful aspects added
tz
parents: 821
diff changeset
  1007
374400d57e0b some useful aspects added
tz
parents: 821
diff changeset
  1008
valueOfCanPaste
907
f4087882555a method comments added
tz
parents: 893
diff changeset
  1009
    "returns whether can paste as value holder"
822
374400d57e0b some useful aspects added
tz
parents: 821
diff changeset
  1010
936
d3d50ac7cdd0 code compression
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1011
    ^ builder booleanValueAspectFor:#valueOfCanPaste
822
374400d57e0b some useful aspects added
tz
parents: 821
diff changeset
  1012
936
d3d50ac7cdd0 code compression
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1013
    "Modified: / 21.5.1998 / 03:39:22 / cg"
822
374400d57e0b some useful aspects added
tz
parents: 821
diff changeset
  1014
!
374400d57e0b some useful aspects added
tz
parents: 821
diff changeset
  1015
374400d57e0b some useful aspects added
tz
parents: 821
diff changeset
  1016
valueOfCanUndo
907
f4087882555a method comments added
tz
parents: 893
diff changeset
  1017
    "returns whether can undo as value holder"
822
374400d57e0b some useful aspects added
tz
parents: 821
diff changeset
  1018
936
d3d50ac7cdd0 code compression
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1019
    ^ builder booleanValueAspectFor:#valueOfCanUndo
822
374400d57e0b some useful aspects added
tz
parents: 821
diff changeset
  1020
936
d3d50ac7cdd0 code compression
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1021
    "Modified: / 21.5.1998 / 03:39:31 / cg"
822
374400d57e0b some useful aspects added
tz
parents: 821
diff changeset
  1022
!
374400d57e0b some useful aspects added
tz
parents: 821
diff changeset
  1023
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
  1024
valueOfEnablingCommitButtons
907
f4087882555a method comments added
tz
parents: 893
diff changeset
  1025
    "returns the enabling of the commit of this tool as value holder"
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1026
936
d3d50ac7cdd0 code compression
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1027
    ^ builder booleanValueAspectFor:#valueOfEnablingCommitButtons
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1028
936
d3d50ac7cdd0 code compression
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1029
    "Modified: / 21.5.1998 / 03:39:49 / cg"
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
  1030
!
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
  1031
858
a36ca9158a69 show help bug fixed
tz
parents: 853
diff changeset
  1032
valueOfHavingDocumentation
907
f4087882555a method comments added
tz
parents: 893
diff changeset
  1033
    "returns whether there is a documentation method for this tool as value holder"
803
f6ca4eb5da39 help texts for the history added
tz
parents: 802
diff changeset
  1034
936
d3d50ac7cdd0 code compression
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1035
    ^ builder booleanValueAspectFor:#valueOfHavingDocumentation
803
f6ca4eb5da39 help texts for the history added
tz
parents: 802
diff changeset
  1036
936
d3d50ac7cdd0 code compression
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1037
    "Modified: / 21.5.1998 / 03:39:56 / cg"
803
f6ca4eb5da39 help texts for the history added
tz
parents: 802
diff changeset
  1038
!
f6ca4eb5da39 help texts for the history added
tz
parents: 802
diff changeset
  1039
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
  1040
valueOfInfoLabel
907
f4087882555a method comments added
tz
parents: 893
diff changeset
  1041
    "returns the info label as value holder"
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
  1042
936
d3d50ac7cdd0 code compression
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1043
    ^ builder nilValueAspectFor:#valueOfInfoLabel
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1044
936
d3d50ac7cdd0 code compression
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1045
    "Modified: / 21.5.1998 / 03:40:34 / cg"
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
  1046
!
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
  1047
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
  1048
valueOfTimeLabel
907
f4087882555a method comments added
tz
parents: 893
diff changeset
  1049
    "returns the time label as value holder"
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1050
936
d3d50ac7cdd0 code compression
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1051
    ^ builder nilValueAspectFor:#valueOfTimeLabel
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1052
936
d3d50ac7cdd0 code compression
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1053
    "Modified: / 21.5.1998 / 03:40:42 / cg"
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1054
! !
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1055
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
  1056
!ToolApplicationModel methodsFor:'clipboard'!
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1057
838
d2588cca5a15 some obselete texts removed
tz
parents: 834
diff changeset
  1058
clipboard
907
f4087882555a method comments added
tz
parents: 893
diff changeset
  1059
    "returns the clipboard"
838
d2588cca5a15 some obselete texts removed
tz
parents: 834
diff changeset
  1060
d2588cca5a15 some obselete texts removed
tz
parents: 834
diff changeset
  1061
    ^self class clipboard
d2588cca5a15 some obselete texts removed
tz
parents: 834
diff changeset
  1062
!
d2588cca5a15 some obselete texts removed
tz
parents: 834
diff changeset
  1063
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
  1064
clipboard: anEditObject
907
f4087882555a method comments added
tz
parents: 893
diff changeset
  1065
    "sets the clipboard and the value holder for can pasting"
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1066
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
  1067
    self class clipboard: anEditObject.
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1068
869
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
  1069
    self valueOfCanPaste value: anEditObject notNil
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
  1070
! !
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
  1071
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
  1072
!ToolApplicationModel methodsFor:'help'!
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1073
762
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
  1074
defaultInfoLabel
907
f4087882555a method comments added
tz
parents: 893
diff changeset
  1075
    "returns the default info label; here an empty string"
762
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
  1076
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
  1077
    ^''
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
  1078
!
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
  1079
984
a0a868c45691 show help synchronously
Claus Gittinger <cg@exept.de>
parents: 982
diff changeset
  1080
doShowHelp:aHelpText
a0a868c45691 show help synchronously
Claus Gittinger <cg@exept.de>
parents: 982
diff changeset
  1081
    "displays aHelpText in the info label or if present detours it to its masterApplication"
a0a868c45691 show help synchronously
Claus Gittinger <cg@exept.de>
parents: 982
diff changeset
  1082
a0a868c45691 show help synchronously
Claus Gittinger <cg@exept.de>
parents: 982
diff changeset
  1083
    aHelpText isNil 
a0a868c45691 show help synchronously
Claus Gittinger <cg@exept.de>
parents: 982
diff changeset
  1084
        ifTrue:  [self updateInfoLabel] 
a0a868c45691 show help synchronously
Claus Gittinger <cg@exept.de>
parents: 982
diff changeset
  1085
        ifFalse: [self valueOfInfoLabel value: (aHelpText asString printString readStream through: $.)].
a0a868c45691 show help synchronously
Claus Gittinger <cg@exept.de>
parents: 982
diff changeset
  1086
a0a868c45691 show help synchronously
Claus Gittinger <cg@exept.de>
parents: 982
diff changeset
  1087
    "Created: / 20.6.1998 / 16:37:23 / cg"
a0a868c45691 show help synchronously
Claus Gittinger <cg@exept.de>
parents: 982
diff changeset
  1088
!
a0a868c45691 show help synchronously
Claus Gittinger <cg@exept.de>
parents: 982
diff changeset
  1089
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1090
openAbout
907
f4087882555a method comments added
tz
parents: 893
diff changeset
  1091
    "opens an about box"
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1092
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1093
    |box|
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1094
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1095
    box := AboutBox new.
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1096
    box autoHideAfter:10 with:[].
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1097
    box showAtCenter
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1098
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1099
!
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1100
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1101
openAboutThisApplication
907
f4087882555a method comments added
tz
parents: 893
diff changeset
  1102
    "opens an about this application box"
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1103
936
d3d50ac7cdd0 code compression
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1104
    |rev box myClass clsRev|
d3d50ac7cdd0 code compression
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1105
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1106
    rev := ''.
936
d3d50ac7cdd0 code compression
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1107
    myClass := self class.
d3d50ac7cdd0 code compression
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1108
d3d50ac7cdd0 code compression
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1109
    (clsRev := myClass revision) notNil ifTrue: [rev := '  (rev: ', clsRev printString, ')'].
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1110
    box := AboutBox title:
800
b98050cf7a43 better author extraction.
Claus Gittinger <cg@exept.de>
parents: 799
diff changeset
  1111
        '\The application\\' withCRs
936
d3d50ac7cdd0 code compression
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1112
        , myClass name asBoldText, rev
850
cdf5ecf904e2 some obselete icons removed
tz
parents: 846
diff changeset
  1113
        , '\\has been designed and implemented by: \' withCRs
cdf5ecf904e2 some obselete icons removed
tz
parents: 846
diff changeset
  1114
        , ((self class authorLinesForAboutBox collect:[:l | '- ' , l]) asStringWith:$\) withCRs
800
b98050cf7a43 better author extraction.
Claus Gittinger <cg@exept.de>
parents: 799
diff changeset
  1115
        , '\\' withCRs.
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1116
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1117
     box   label:'About This Application'.
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1118
     box   autoHideAfter:10 with:[].
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1119
     box   showAtCenter.
936
d3d50ac7cdd0 code compression
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1120
d3d50ac7cdd0 code compression
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1121
    "Modified: / 21.5.1998 / 03:34:32 / cg"
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1122
!
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1123
858
a36ca9158a69 show help bug fixed
tz
parents: 853
diff changeset
  1124
openHTMLDocument: aHTMLFilename
907
f4087882555a method comments added
tz
parents: 893
diff changeset
  1125
    "opens a HTML browser on aHTMLFilename"
858
a36ca9158a69 show help bug fixed
tz
parents: 853
diff changeset
  1126
a36ca9158a69 show help bug fixed
tz
parents: 853
diff changeset
  1127
    HTMLDocumentView openFullOnDocumentationFile: aHTMLFilename
a36ca9158a69 show help bug fixed
tz
parents: 853
diff changeset
  1128
!
a36ca9158a69 show help bug fixed
tz
parents: 853
diff changeset
  1129
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
  1130
showHelp
907
f4087882555a method comments added
tz
parents: 893
diff changeset
  1131
    "returns whether showing help is turned on/off"
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
  1132
783
4e1545900244 show help corrections
tz
parents: 782
diff changeset
  1133
    |currentActiveHelp|
858
a36ca9158a69 show help bug fixed
tz
parents: 853
diff changeset
  1134
783
4e1545900244 show help corrections
tz
parents: 782
diff changeset
  1135
    currentActiveHelp := ActiveHelp currentHelpListener.
4e1545900244 show help corrections
tz
parents: 782
diff changeset
  1136
4e1545900244 show help corrections
tz
parents: 782
diff changeset
  1137
    ^self class showHelp 
858
a36ca9158a69 show help bug fixed
tz
parents: 853
diff changeset
  1138
        and: [currentActiveHelp notNil and: [masterApplication notNil 
a36ca9158a69 show help bug fixed
tz
parents: 853
diff changeset
  1139
                ifFalse: [currentActiveHelp interestedIn: self window]
a36ca9158a69 show help bug fixed
tz
parents: 853
diff changeset
  1140
                ifTrue:  [currentActiveHelp interestedIn: masterApplication window]]]
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
  1141
!
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
  1142
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
  1143
showHelp: aValue
907
f4087882555a method comments added
tz
parents: 893
diff changeset
  1144
    "toggles showing help"
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
  1145
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
  1146
    (self class showHelp: aValue)
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
  1147
        ifTrue: [ActiveHelp startFor: self]
822
374400d57e0b some useful aspects added
tz
parents: 821
diff changeset
  1148
        ifFalse: [ActiveHelp stopFor: self. self updateInfoLabel]
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
  1149
!
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
  1150
762
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
  1151
showHelp:aHelpText for:view
984
a0a868c45691 show help synchronously
Claus Gittinger <cg@exept.de>
parents: 982
diff changeset
  1152
    "displays aHelpText in the info label or if present detours it to its masterApplication.
a0a868c45691 show help synchronously
Claus Gittinger <cg@exept.de>
parents: 982
diff changeset
  1153
     Here, an event is pushed for myself to synchronize the helpDisplay
a0a868c45691 show help synchronously
Claus Gittinger <cg@exept.de>
parents: 982
diff changeset
  1154
     with event handling."
a0a868c45691 show help synchronously
Claus Gittinger <cg@exept.de>
parents: 982
diff changeset
  1155
a0a868c45691 show help synchronously
Claus Gittinger <cg@exept.de>
parents: 982
diff changeset
  1156
    |wg mySensor|
762
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
  1157
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
  1158
    self showHelp ifFalse: [^true].
876
585929b1fec2 some cleans
tz
parents: 872
diff changeset
  1159
    masterApplication notNil ifTrue: [masterApplication showHelp: aHelpText for:view].
984
a0a868c45691 show help synchronously
Claus Gittinger <cg@exept.de>
parents: 982
diff changeset
  1160
a0a868c45691 show help synchronously
Claus Gittinger <cg@exept.de>
parents: 982
diff changeset
  1161
"/ OLD: show it right here ...
a0a868c45691 show help synchronously
Claus Gittinger <cg@exept.de>
parents: 982
diff changeset
  1162
"/    aHelpText isNil 
a0a868c45691 show help synchronously
Claus Gittinger <cg@exept.de>
parents: 982
diff changeset
  1163
"/        ifTrue:  [self updateInfoLabel] 
a0a868c45691 show help synchronously
Claus Gittinger <cg@exept.de>
parents: 982
diff changeset
  1164
"/        ifFalse: [self valueOfInfoLabel value: (aHelpText asString printString readStream through: $.)].
a0a868c45691 show help synchronously
Claus Gittinger <cg@exept.de>
parents: 982
diff changeset
  1165
    "/ the nil-tests should not be req'd - but thats a last-minute
a0a868c45691 show help synchronously
Claus Gittinger <cg@exept.de>
parents: 982
diff changeset
  1166
    "/ change and I dont want to breaks the delivery ...
a0a868c45691 show help synchronously
Claus Gittinger <cg@exept.de>
parents: 982
diff changeset
  1167
a0a868c45691 show help synchronously
Claus Gittinger <cg@exept.de>
parents: 982
diff changeset
  1168
"/ NEW: push it into the event queue, to have it displayed
a0a868c45691 show help synchronously
Claus Gittinger <cg@exept.de>
parents: 982
diff changeset
  1169
"/ syncronously with other events.
a0a868c45691 show help synchronously
Claus Gittinger <cg@exept.de>
parents: 982
diff changeset
  1170
"/ (also any errors are reported as occurring in my context;
a0a868c45691 show help synchronously
Claus Gittinger <cg@exept.de>
parents: 982
diff changeset
  1171
"/  instead of occurring in the activeHelp context).
a0a868c45691 show help synchronously
Claus Gittinger <cg@exept.de>
parents: 982
diff changeset
  1172
a0a868c45691 show help synchronously
Claus Gittinger <cg@exept.de>
parents: 982
diff changeset
  1173
    (wg := self windowGroup) notNil ifTrue:[
a0a868c45691 show help synchronously
Claus Gittinger <cg@exept.de>
parents: 982
diff changeset
  1174
        mySensor := wg sensor.
a0a868c45691 show help synchronously
Claus Gittinger <cg@exept.de>
parents: 982
diff changeset
  1175
        mySensor notNil ifTrue:[
a0a868c45691 show help synchronously
Claus Gittinger <cg@exept.de>
parents: 982
diff changeset
  1176
            mySensor flushEventsFor:self withType:#doShowHelp:.
a0a868c45691 show help synchronously
Claus Gittinger <cg@exept.de>
parents: 982
diff changeset
  1177
            mySensor pushUserEvent:#doShowHelp: for:self withArguments:(Array with:aHelpText).
a0a868c45691 show help synchronously
Claus Gittinger <cg@exept.de>
parents: 982
diff changeset
  1178
        ].
a0a868c45691 show help synchronously
Claus Gittinger <cg@exept.de>
parents: 982
diff changeset
  1179
    ].
a0a868c45691 show help synchronously
Claus Gittinger <cg@exept.de>
parents: 982
diff changeset
  1180
876
585929b1fec2 some cleans
tz
parents: 872
diff changeset
  1181
    ^true
984
a0a868c45691 show help synchronously
Claus Gittinger <cg@exept.de>
parents: 982
diff changeset
  1182
a0a868c45691 show help synchronously
Claus Gittinger <cg@exept.de>
parents: 982
diff changeset
  1183
    "Modified: / 20.6.1998 / 16:47:37 / cg"
822
374400d57e0b some useful aspects added
tz
parents: 821
diff changeset
  1184
!
374400d57e0b some useful aspects added
tz
parents: 821
diff changeset
  1185
374400d57e0b some useful aspects added
tz
parents: 821
diff changeset
  1186
updateInfoLabel
907
f4087882555a method comments added
tz
parents: 893
diff changeset
  1187
    "updates the info label at the bottom"
822
374400d57e0b some useful aspects added
tz
parents: 821
diff changeset
  1188
374400d57e0b some useful aspects added
tz
parents: 821
diff changeset
  1189
    self valueOfInfoLabel value: self defaultInfoLabel
762
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
  1190
! !
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
  1191
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1192
!ToolApplicationModel methodsFor:'history'!
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1193
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1194
addToHistory: aHistoryEntry
907
f4087882555a method comments added
tz
parents: 893
diff changeset
  1195
    "adds aHistoryEntry (format: loadMessage -> evalString) at the top of the history,
f4087882555a method comments added
tz
parents: 893
diff changeset
  1196
     and checks for maximum size of the history"
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1197
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
  1198
    aHistoryEntry key size = 0 ifTrue: [^nil].
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1199
    self history remove: (self history detect: [:histEntry| histEntry key = aHistoryEntry key] ifNone: nil) ifAbsent: nil.
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1200
    self history addFirst: aHistoryEntry.
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1201
    [self history size > self class historyMaxSize] whileTrue: [self history removeLast]
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1202
!
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1203
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1204
emptyHistory
907
f4087882555a method comments added
tz
parents: 893
diff changeset
  1205
    "removes all history entries"
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1206
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1207
    ^self history removeAll
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1208
!
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1209
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1210
history
907
f4087882555a method comments added
tz
parents: 893
diff changeset
  1211
    "returns the history from tool class"
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1212
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1213
    ^self class getHistory
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1214
!
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1215
844
5d9915ac0be6 checkin from browser
tz
parents: 838
diff changeset
  1216
historyEntries
907
f4087882555a method comments added
tz
parents: 893
diff changeset
  1217
    "returns the history entries, i.e. the evaluatable values containing the information"
844
5d9915ac0be6 checkin from browser
tz
parents: 838
diff changeset
  1218
5d9915ac0be6 checkin from browser
tz
parents: 838
diff changeset
  1219
    ^self history collect: [:asso| asso key]
5d9915ac0be6 checkin from browser
tz
parents: 838
diff changeset
  1220
!
5d9915ac0be6 checkin from browser
tz
parents: 838
diff changeset
  1221
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1222
menuHistory
907
f4087882555a method comments added
tz
parents: 893
diff changeset
  1223
    "returns a history submenu"
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1224
893
8a142b17a0c8 some cleans
tz
parents: 892
diff changeset
  1225
    |menu|
920
6b72e4ce4406 must find gui resources (xlations in in history menu)
Claus Gittinger <cg@exept.de>
parents: 910
diff changeset
  1226
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1227
    menu := Menu new receiver: self.
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1228
    (self history collect: [:histEntry| histEntry value]) asSet asOrderedCollection do:
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1229
    [:historyEntryType|    
893
8a142b17a0c8 some cleans
tz
parents: 892
diff changeset
  1230
        menu addItemGroup: ((self history select: [:histEntry| histEntry value = historyEntryType]) collect: [:histEntry|  MenuItem new label: histEntry key printString; value: histEntry value; argument: histEntry key; activeHelpKey: #historyMenuItem]).
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1231
    ]. 
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1232
920
6b72e4ce4406 must find gui resources (xlations in in history menu)
Claus Gittinger <cg@exept.de>
parents: 910
diff changeset
  1233
    menu addItem: (MenuItem new 
6b72e4ce4406 must find gui resources (xlations in in history menu)
Claus Gittinger <cg@exept.de>
parents: 910
diff changeset
  1234
                        label: 'Empty History'; 
6b72e4ce4406 must find gui resources (xlations in in history menu)
Claus Gittinger <cg@exept.de>
parents: 910
diff changeset
  1235
                        value: #emptyHistory; 
6b72e4ce4406 must find gui resources (xlations in in history menu)
Claus Gittinger <cg@exept.de>
parents: 910
diff changeset
  1236
                        activeHelpKey: #historyEmptyMenu;
6b72e4ce4406 must find gui resources (xlations in in history menu)
Claus Gittinger <cg@exept.de>
parents: 910
diff changeset
  1237
                        translateLabel:true).
6b72e4ce4406 must find gui resources (xlations in in history menu)
Claus Gittinger <cg@exept.de>
parents: 910
diff changeset
  1238
6b72e4ce4406 must find gui resources (xlations in in history menu)
Claus Gittinger <cg@exept.de>
parents: 910
diff changeset
  1239
    menu findGuiResourcesIn:self.
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1240
    ^menu
920
6b72e4ce4406 must find gui resources (xlations in in history menu)
Claus Gittinger <cg@exept.de>
parents: 910
diff changeset
  1241
6b72e4ce4406 must find gui resources (xlations in in history menu)
Claus Gittinger <cg@exept.de>
parents: 910
diff changeset
  1242
    "Modified: / 19.5.1998 / 19:17:34 / cg"
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1243
!
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1244
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1245
removeFromHistory: aHistoryEntry
907
f4087882555a method comments added
tz
parents: 893
diff changeset
  1246
    "removes aHistoryEntry from the history"
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1247
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1248
    self history remove: (self history detect: [:histEntry| histEntry key = aHistoryEntry key] ifNone: nil) ifAbsent: nil.
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1249
    [self history size > self class historyMaxSize] whileTrue: [self history removeLast]
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1250
! !
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1251
982
807f440e0df7 bw. compatibility - needs builder early.
Claus Gittinger <cg@exept.de>
parents: 971
diff changeset
  1252
!ToolApplicationModel methodsFor:'initialization'!
807f440e0df7 bw. compatibility - needs builder early.
Claus Gittinger <cg@exept.de>
parents: 971
diff changeset
  1253
807f440e0df7 bw. compatibility - needs builder early.
Claus Gittinger <cg@exept.de>
parents: 971
diff changeset
  1254
initialize
807f440e0df7 bw. compatibility - needs builder early.
Claus Gittinger <cg@exept.de>
parents: 971
diff changeset
  1255
    super initialize.
807f440e0df7 bw. compatibility - needs builder early.
Claus Gittinger <cg@exept.de>
parents: 971
diff changeset
  1256
    self createBuilder
807f440e0df7 bw. compatibility - needs builder early.
Claus Gittinger <cg@exept.de>
parents: 971
diff changeset
  1257
807f440e0df7 bw. compatibility - needs builder early.
Claus Gittinger <cg@exept.de>
parents: 971
diff changeset
  1258
    "Created: / 20.6.1998 / 14:51:29 / cg"
807f440e0df7 bw. compatibility - needs builder early.
Claus Gittinger <cg@exept.de>
parents: 971
diff changeset
  1259
! !
807f440e0df7 bw. compatibility - needs builder early.
Claus Gittinger <cg@exept.de>
parents: 971
diff changeset
  1260
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
  1261
!ToolApplicationModel methodsFor:'queries'!
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
  1262
876
585929b1fec2 some cleans
tz
parents: 872
diff changeset
  1263
allToolInstances
907
f4087882555a method comments added
tz
parents: 893
diff changeset
  1264
    "returns all instances of this tool class"
876
585929b1fec2 some cleans
tz
parents: 872
diff changeset
  1265
585929b1fec2 some cleans
tz
parents: 872
diff changeset
  1266
    ^self class settings at: #Instances ifAbsent: [^#()]
585929b1fec2 some cleans
tz
parents: 872
diff changeset
  1267
!
585929b1fec2 some cleans
tz
parents: 872
diff changeset
  1268
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
  1269
preferredExtent
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
  1270
    "preferred extent of my window; top/main menu and top toolbar (named by 'menuToolbarView')
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
  1271
     will be considered"
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
  1272
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
  1273
    |window menu menuToolbarView preferredExtentOfWindow|
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
  1274
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
  1275
    window          := self builder window. 
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
  1276
    menu            := window subViews first.
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
  1277
    menuToolbarView := builder componentAt: #menuToolbarView.
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
  1278
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
  1279
    preferredExtentOfWindow := window extent.
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
  1280
    menu class = MenuPanel ifTrue: [preferredExtentOfWindow := preferredExtentOfWindow max: menu preferredExtent].
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
  1281
    menuToolbarView notNil ifTrue: [preferredExtentOfWindow := preferredExtentOfWindow max: menuToolbarView preferredExtent].
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
  1282
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
  1283
    ^window minExtent max: (preferredExtentOfWindow min: window maxExtent)
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
  1284
! !
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
  1285
869
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
  1286
!ToolApplicationModel methodsFor:'settings'!
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
  1287
872
a1606dcbd38b better font setting routines
tz
parents: 871
diff changeset
  1288
allFontViewsDo: aBlock
892
bc4aff74f607 no user defined fonts for menus + correct font reset
tz
parents: 876
diff changeset
  1289
    "evaluates aBlock for all views with fonts"
872
a1606dcbd38b better font setting routines
tz
parents: 871
diff changeset
  1290
a1606dcbd38b better font setting routines
tz
parents: 871
diff changeset
  1291
    |fontViews|
a1606dcbd38b better font setting routines
tz
parents: 871
diff changeset
  1292
a1606dcbd38b better font setting routines
tz
parents: 871
diff changeset
  1293
    fontViews := OrderedCollection new.
a1606dcbd38b better font setting routines
tz
parents: 871
diff changeset
  1294
a1606dcbd38b better font setting routines
tz
parents: 871
diff changeset
  1295
    self builder windowGroup views do: [:v| v class = MenuPanel ifTrue: [fontViews add: v]]. 
a1606dcbd38b better font setting routines
tz
parents: 871
diff changeset
  1296
a1606dcbd38b better font setting routines
tz
parents: 871
diff changeset
  1297
    builder namedComponents do: 
a1606dcbd38b better font setting routines
tz
parents: 871
diff changeset
  1298
    [:aView|    
a1606dcbd38b better font setting routines
tz
parents: 871
diff changeset
  1299
        aView allSubViewsDo: 
a1606dcbd38b better font setting routines
tz
parents: 871
diff changeset
  1300
        [:v|
a1606dcbd38b better font setting routines
tz
parents: 871
diff changeset
  1301
            v font notNil ifTrue: [fontViews add: v]
a1606dcbd38b better font setting routines
tz
parents: 871
diff changeset
  1302
        ] 
a1606dcbd38b better font setting routines
tz
parents: 871
diff changeset
  1303
    ].
a1606dcbd38b better font setting routines
tz
parents: 871
diff changeset
  1304
    fontViews do: aBlock
a1606dcbd38b better font setting routines
tz
parents: 871
diff changeset
  1305
!
a1606dcbd38b better font setting routines
tz
parents: 871
diff changeset
  1306
869
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
  1307
chooseFont: viewFont
892
bc4aff74f607 no user defined fonts for menus + correct font reset
tz
parents: 876
diff changeset
  1308
    "chooses a font for viewFont and puts it into the settings dictionary;
869
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
  1309
     finally update all my views"
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
  1310
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
  1311
    |defaultFont font|
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
  1312
872
a1606dcbd38b better font setting routines
tz
parents: 871
diff changeset
  1313
    viewFont = 'Label Font'      ifTrue: [defaultFont := Label defaultFont].
a1606dcbd38b better font setting routines
tz
parents: 871
diff changeset
  1314
    viewFont = 'Button Font'     ifTrue: [defaultFont := Button defaultFont].
a1606dcbd38b better font setting routines
tz
parents: 871
diff changeset
  1315
    viewFont = 'Edit Font'       ifTrue: [defaultFont := TextView defaultFont].
a1606dcbd38b better font setting routines
tz
parents: 871
diff changeset
  1316
    viewFont = 'List Font'       ifTrue: [defaultFont := ListView defaultFont].
a1606dcbd38b better font setting routines
tz
parents: 871
diff changeset
  1317
    viewFont = 'Tree List Font'  ifTrue: [defaultFont := SelectionInTreeView defaultFont].
892
bc4aff74f607 no user defined fonts for menus + correct font reset
tz
parents: 876
diff changeset
  1318
    viewFont = 'Note Book Font'  ifTrue: [defaultFont := NoteBookView defaultFont].
872
a1606dcbd38b better font setting routines
tz
parents: 871
diff changeset
  1319
    viewFont = 'Framed Box Font' ifTrue: [defaultFont := FramedBox defaultFont].
869
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
  1320
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
  1321
    (font := FontPanel 
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
  1322
        fontFromUserInitial: (self class settings at: viewFont asSymbol ifAbsent: nil) ? defaultFont
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
  1323
        title: 'Choose ', viewFont) notNil
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
  1324
    ifTrue:
872
a1606dcbd38b better font setting routines
tz
parents: 871
diff changeset
  1325
    [      
869
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
  1326
        self class settings at: viewFont asSymbol put: (font on: device).
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
  1327
        self updateFonts
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
  1328
    ].
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
  1329
    ^font
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
  1330
!
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
  1331
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
  1332
resetFonts
892
bc4aff74f607 no user defined fonts for menus + correct font reset
tz
parents: 876
diff changeset
  1333
    "sets the fonts in the settings to nil and resets the views to its default font"
869
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
  1334
872
a1606dcbd38b better font setting routines
tz
parents: 871
diff changeset
  1335
    (self class settings)
892
bc4aff74f607 no user defined fonts for menus + correct font reset
tz
parents: 876
diff changeset
  1336
        at: #'Label Font'      put: Label defaultFont;
bc4aff74f607 no user defined fonts for menus + correct font reset
tz
parents: 876
diff changeset
  1337
        at: #'Button Font'     put: Button defaultFont;
bc4aff74f607 no user defined fonts for menus + correct font reset
tz
parents: 876
diff changeset
  1338
        at: #'Edit Font'       put: TextView defaultFont;
bc4aff74f607 no user defined fonts for menus + correct font reset
tz
parents: 876
diff changeset
  1339
        at: #'List Font'       put: ListView defaultFont;
bc4aff74f607 no user defined fonts for menus + correct font reset
tz
parents: 876
diff changeset
  1340
        at: #'Tree List Font'  put: SelectionInTreeView defaultFont;
bc4aff74f607 no user defined fonts for menus + correct font reset
tz
parents: 876
diff changeset
  1341
        at: #'Note Book Font'  put: NoteBookView defaultFont;
bc4aff74f607 no user defined fonts for menus + correct font reset
tz
parents: 876
diff changeset
  1342
        at: #'Framed Box Font' put: FramedBox defaultFont.
bc4aff74f607 no user defined fonts for menus + correct font reset
tz
parents: 876
diff changeset
  1343
bc4aff74f607 no user defined fonts for menus + correct font reset
tz
parents: 876
diff changeset
  1344
    self updateFonts.
bc4aff74f607 no user defined fonts for menus + correct font reset
tz
parents: 876
diff changeset
  1345
bc4aff74f607 no user defined fonts for menus + correct font reset
tz
parents: 876
diff changeset
  1346
    (self class settings)
872
a1606dcbd38b better font setting routines
tz
parents: 871
diff changeset
  1347
        removeKey: #'Label Font'      ifAbsent: nil;
a1606dcbd38b better font setting routines
tz
parents: 871
diff changeset
  1348
        removeKey: #'Button Font'     ifAbsent: nil;
a1606dcbd38b better font setting routines
tz
parents: 871
diff changeset
  1349
        removeKey: #'Edit Font'       ifAbsent: nil;
a1606dcbd38b better font setting routines
tz
parents: 871
diff changeset
  1350
        removeKey: #'List Font'       ifAbsent: nil;
a1606dcbd38b better font setting routines
tz
parents: 871
diff changeset
  1351
        removeKey: #'Tree List Font'  ifAbsent: nil;
a1606dcbd38b better font setting routines
tz
parents: 871
diff changeset
  1352
        removeKey: #'Note Book Font'  ifAbsent: nil;
a1606dcbd38b better font setting routines
tz
parents: 871
diff changeset
  1353
        removeKey: #'Framed Box Font' ifAbsent: nil.
869
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
  1354
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
  1355
!
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
  1356
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
  1357
updateFonts
892
bc4aff74f607 no user defined fonts for menus + correct font reset
tz
parents: 876
diff changeset
  1358
    "takes defined fonts from the settings and set them to the corresponding views"
869
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
  1359
892
bc4aff74f607 no user defined fonts for menus + correct font reset
tz
parents: 876
diff changeset
  1360
    |settings labelFont buttonFont editFont listFont treeListFont noteBookFont framedBoxFont updateFontsBlock|
871
5d3b1dd9bac5 may not realize after setting new font
tz
parents: 869
diff changeset
  1361
5d3b1dd9bac5 may not realize after setting new font
tz
parents: 869
diff changeset
  1362
    settings     := self class settings.
869
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
  1363
872
a1606dcbd38b better font setting routines
tz
parents: 871
diff changeset
  1364
    labelFont     := settings at: #'Label Font'      ifAbsent: nil.
a1606dcbd38b better font setting routines
tz
parents: 871
diff changeset
  1365
    buttonFont    := settings at: #'Button Font'     ifAbsent: nil.
a1606dcbd38b better font setting routines
tz
parents: 871
diff changeset
  1366
    editFont      := settings at: #'Edit Font'       ifAbsent: nil.
a1606dcbd38b better font setting routines
tz
parents: 871
diff changeset
  1367
    listFont      := settings at: #'List Font'       ifAbsent: nil.
a1606dcbd38b better font setting routines
tz
parents: 871
diff changeset
  1368
    treeListFont  := settings at: #'Tree List Font'  ifAbsent: nil.
a1606dcbd38b better font setting routines
tz
parents: 871
diff changeset
  1369
    noteBookFont  := settings at: #'Note Book Font'  ifAbsent: nil.
a1606dcbd38b better font setting routines
tz
parents: 871
diff changeset
  1370
    framedBoxFont := settings at: #'Framed Box Font' ifAbsent: nil.
869
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
  1371
872
a1606dcbd38b better font setting routines
tz
parents: 871
diff changeset
  1372
    updateFontsBlock :=
a1606dcbd38b better font setting routines
tz
parents: 871
diff changeset
  1373
    [:v|     
a1606dcbd38b better font setting routines
tz
parents: 871
diff changeset
  1374
        (labelFont notNil and: [v font ~= labelFont and: [(v class == Label) or: [v isKindOf: Toggle]]])
a1606dcbd38b better font setting routines
tz
parents: 871
diff changeset
  1375
            ifTrue: [v font: labelFont; fixSize; sizeChanged:nil; invalidate].
a1606dcbd38b better font setting routines
tz
parents: 871
diff changeset
  1376
        (buttonFont notNil and: [v font ~= buttonFont and: [v class == Button or: [v class == PopUpList]]])
876
585929b1fec2 some cleans
tz
parents: 872
diff changeset
  1377
            ifTrue: [v label isString ifTrue: [|e|e := v extent. v font: buttonFont; extent: e; invalidate]].
872
a1606dcbd38b better font setting routines
tz
parents: 871
diff changeset
  1378
        (editFont  notNil and: [v font ~= editFont and: [v isKindOf: TextView]])
a1606dcbd38b better font setting routines
tz
parents: 871
diff changeset
  1379
            ifTrue: [v font: editFont; invalidate].
a1606dcbd38b better font setting routines
tz
parents: 871
diff changeset
  1380
        (listFont notNil and: [v font ~= listFont and: [v class = SelectionInListView or: [v class = DataSetView]]])
a1606dcbd38b better font setting routines
tz
parents: 871
diff changeset
  1381
            ifTrue: [v font: listFont. v invalidate].
a1606dcbd38b better font setting routines
tz
parents: 871
diff changeset
  1382
        (treeListFont notNil and: [v font ~= treeListFont and: [v isKindOf: SelectionInTreeView]])
a1606dcbd38b better font setting routines
tz
parents: 871
diff changeset
  1383
            ifTrue: [v font: treeListFont; invalidate].
a1606dcbd38b better font setting routines
tz
parents: 871
diff changeset
  1384
        (noteBookFont notNil and: [v font ~= noteBookFont and: [v class == NoteBookView]])
a1606dcbd38b better font setting routines
tz
parents: 871
diff changeset
  1385
            ifTrue: [v font: noteBookFont; invalidate].
a1606dcbd38b better font setting routines
tz
parents: 871
diff changeset
  1386
        (framedBoxFont notNil and: [v font ~= framedBoxFont and: [v class == FramedBox]])
a1606dcbd38b better font setting routines
tz
parents: 871
diff changeset
  1387
            ifTrue: [v font: framedBoxFont; invalidate]
a1606dcbd38b better font setting routines
tz
parents: 871
diff changeset
  1388
    ].
a1606dcbd38b better font setting routines
tz
parents: 871
diff changeset
  1389
a1606dcbd38b better font setting routines
tz
parents: 871
diff changeset
  1390
    self allFontViewsDo: [:v| updateFontsBlock value: v] 
a1606dcbd38b better font setting routines
tz
parents: 871
diff changeset
  1391
869
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
  1392
! !
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
  1393
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1394
!ToolApplicationModel methodsFor:'startup / release'!
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1395
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1396
close
907
f4087882555a method comments added
tz
parents: 893
diff changeset
  1397
    "uninitializes and closes this tool"
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1398
756
4dba5a8797ec *** empty log message ***
tz
parents: 753
diff changeset
  1399
    self uninitialize.
4dba5a8797ec *** empty log message ***
tz
parents: 753
diff changeset
  1400
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1401
    super close
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1402
!
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1403
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1404
closeRequest
907
f4087882555a method comments added
tz
parents: 893
diff changeset
  1405
    "uninitializes this tool before requesting close"
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1406
756
4dba5a8797ec *** empty log message ***
tz
parents: 753
diff changeset
  1407
    self uninitialize.
4dba5a8797ec *** empty log message ***
tz
parents: 753
diff changeset
  1408
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1409
    super closeRequest
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1410
!
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1411
936
d3d50ac7cdd0 code compression
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1412
postBuildWith:aBuilder
d3d50ac7cdd0 code compression
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1413
    "sets the preferred extent and the label of the tool window before opening that"
d3d50ac7cdd0 code compression
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1414
971
a9d2fc9ebec9 handle the case of being postOpened as a subCanvas
Claus Gittinger <cg@exept.de>
parents: 936
diff changeset
  1415
    |win|
a9d2fc9ebec9 handle the case of being postOpened as a subCanvas
Claus Gittinger <cg@exept.de>
parents: 936
diff changeset
  1416
936
d3d50ac7cdd0 code compression
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1417
    super postBuildWith:aBuilder.
d3d50ac7cdd0 code compression
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1418
971
a9d2fc9ebec9 handle the case of being postOpened as a subCanvas
Claus Gittinger <cg@exept.de>
parents: 936
diff changeset
  1419
    (win := aBuilder window) isTopView ifTrue:[
a9d2fc9ebec9 handle the case of being postOpened as a subCanvas
Claus Gittinger <cg@exept.de>
parents: 936
diff changeset
  1420
        win
a9d2fc9ebec9 handle the case of being postOpened as a subCanvas
Claus Gittinger <cg@exept.de>
parents: 936
diff changeset
  1421
            extent: self preferredExtent;
a9d2fc9ebec9 handle the case of being postOpened as a subCanvas
Claus Gittinger <cg@exept.de>
parents: 936
diff changeset
  1422
            label: self class label.
a9d2fc9ebec9 handle the case of being postOpened as a subCanvas
Claus Gittinger <cg@exept.de>
parents: 936
diff changeset
  1423
    ].
936
d3d50ac7cdd0 code compression
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1424
d3d50ac7cdd0 code compression
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1425
    "Created: / 21.5.1998 / 02:49:09 / cg"
971
a9d2fc9ebec9 handle the case of being postOpened as a subCanvas
Claus Gittinger <cg@exept.de>
parents: 936
diff changeset
  1426
    "Modified: / 18.6.1998 / 20:16:25 / cg"
936
d3d50ac7cdd0 code compression
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1427
!
d3d50ac7cdd0 code compression
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1428
790
648fac120039 time clock runs now correctly
tz
parents: 784
diff changeset
  1429
postOpenWith:aBuilder
907
f4087882555a method comments added
tz
parents: 893
diff changeset
  1430
    "starts the active help for this tool (if turned on in the settings)
f4087882555a method comments added
tz
parents: 893
diff changeset
  1431
     and updates the info label and the fonts (from the settings)"
790
648fac120039 time clock runs now correctly
tz
parents: 784
diff changeset
  1432
648fac120039 time clock runs now correctly
tz
parents: 784
diff changeset
  1433
    super postOpenWith:aBuilder.
648fac120039 time clock runs now correctly
tz
parents: 784
diff changeset
  1434
791
a3269fe103eb *** empty log message ***
tz
parents: 790
diff changeset
  1435
    self class showHelp ifTrue: [ActiveHelp startFor: self].
822
374400d57e0b some useful aspects added
tz
parents: 821
diff changeset
  1436
    self updateInfoLabel.
876
585929b1fec2 some cleans
tz
parents: 872
diff changeset
  1437
    self updateFonts.
585929b1fec2 some cleans
tz
parents: 872
diff changeset
  1438
790
648fac120039 time clock runs now correctly
tz
parents: 784
diff changeset
  1439
!
648fac120039 time clock runs now correctly
tz
parents: 784
diff changeset
  1440
853
19f2d0152fcb time clock only for the launcher
tz
parents: 851
diff changeset
  1441
startClockOnTimedBlock: aBlock
907
f4087882555a method comments added
tz
parents: 893
diff changeset
  1442
    "sets and starts the time block"
853
19f2d0152fcb time clock only for the launcher
tz
parents: 851
diff changeset
  1443
19f2d0152fcb time clock only for the launcher
tz
parents: 851
diff changeset
  1444
    timeBlock := aBlock.
19f2d0152fcb time clock only for the launcher
tz
parents: 851
diff changeset
  1445
    aBlock value.
19f2d0152fcb time clock only for the launcher
tz
parents: 851
diff changeset
  1446
19f2d0152fcb time clock only for the launcher
tz
parents: 851
diff changeset
  1447
!
19f2d0152fcb time clock only for the launcher
tz
parents: 851
diff changeset
  1448
756
4dba5a8797ec *** empty log message ***
tz
parents: 753
diff changeset
  1449
uninitialize
907
f4087882555a method comments added
tz
parents: 893
diff changeset
  1450
    "stops the active help this tool and (if defined) removes the time block"
756
4dba5a8797ec *** empty log message ***
tz
parents: 753
diff changeset
  1451
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
  1452
    self showHelp ifTrue: [ActiveHelp stopFor: self].
876
585929b1fec2 some cleans
tz
parents: 872
diff changeset
  1453
    timeBlock notNil ifTrue: [Processor removeTimedBlock:timeBlock. timeBlock := nil].
585929b1fec2 some cleans
tz
parents: 872
diff changeset
  1454
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1455
! !
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1456
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1457
!ToolApplicationModel class methodsFor:'documentation'!
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1458
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1459
version
984
a0a868c45691 show help synchronously
Claus Gittinger <cg@exept.de>
parents: 982
diff changeset
  1460
    ^ '$Header: /cvs/stx/stx/libview2/ToolApplicationModel.st,v 1.61 1998-06-20 14:48:01 cg Exp $'
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1461
! !