ToolApplicationModel.st
author tz
Thu, 05 Mar 1998 23:56:53 +0100
changeset 859 5d6a438f84d0
parent 858 a36ca9158a69
child 869 b1815e3116c6
permissions -rw-r--r--
docu call changed
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
"
9c837d99f109 intitial checkin
tz
parents:
diff changeset
    53
    Standard framework for tools; provides hooks for history management,
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
    54
    showing help texts, about menu, help menu etc.
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
    55
    See concrete subclasses for examples.
9c837d99f109 intitial checkin
tz
parents:
diff changeset
    56
9c837d99f109 intitial checkin
tz
parents:
diff changeset
    57
    [author:]
9c837d99f109 intitial checkin
tz
parents:
diff changeset
    58
        Thomas Zwick
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
b98050cf7a43 better author extraction.
Claus Gittinger <cg@exept.de>
parents: 799
diff changeset
    65
    "extract the author(s) from the documentation method."
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
9c837d99f109 intitial checkin
tz
parents:
diff changeset
    99
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   100
    |label|
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   101
    label := ''.
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   102
    self name do:
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   103
    [:c|
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   104
        c isUppercase ifTrue: [label := label, $ ].
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   105
        label := label, c
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   106
    ].
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   107
    ^label trimBlanks
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   108
!
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   109
850
cdf5ecf904e2 some obselete icons removed
tz
parents: 846
diff changeset
   110
settings
cdf5ecf904e2 some obselete icons removed
tz
parents: 846
diff changeset
   111
cdf5ecf904e2 some obselete icons removed
tz
parents: 846
diff changeset
   112
    ^settings ? (settings := IdentityDictionary new)
cdf5ecf904e2 some obselete icons removed
tz
parents: 846
diff changeset
   113
!
cdf5ecf904e2 some obselete icons removed
tz
parents: 846
diff changeset
   114
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   115
showHelp
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   116
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   117
    ^showHelp ? (showHelp := true)
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   118
!
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   119
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   120
showHelp: aBoolean
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   121
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   122
    ^showHelp := aBoolean
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   123
! !
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   124
756
4dba5a8797ec *** empty log message ***
tz
parents: 753
diff changeset
   125
!ToolApplicationModel class methodsFor:'clipboard'!
4dba5a8797ec *** empty log message ***
tz
parents: 753
diff changeset
   126
4dba5a8797ec *** empty log message ***
tz
parents: 753
diff changeset
   127
clipboard
4dba5a8797ec *** empty log message ***
tz
parents: 753
diff changeset
   128
4dba5a8797ec *** empty log message ***
tz
parents: 753
diff changeset
   129
    ^clipboard
4dba5a8797ec *** empty log message ***
tz
parents: 753
diff changeset
   130
!
4dba5a8797ec *** empty log message ***
tz
parents: 753
diff changeset
   131
4dba5a8797ec *** empty log message ***
tz
parents: 753
diff changeset
   132
clipboard: anEditObject
4dba5a8797ec *** empty log message ***
tz
parents: 753
diff changeset
   133
4dba5a8797ec *** empty log message ***
tz
parents: 753
diff changeset
   134
    clipboard := anEditObject
4dba5a8797ec *** empty log message ***
tz
parents: 753
diff changeset
   135
! !
4dba5a8797ec *** empty log message ***
tz
parents: 753
diff changeset
   136
762
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
   137
!ToolApplicationModel class methodsFor:'help specs'!
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
   138
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
   139
helpSpec
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
   140
    "return a dictionary filled with helpKey -> helptext associations.
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
   141
     These are used by the activeHelp tool."
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
   142
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
   143
    "
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
   144
    UIHelpTool openOnClass:ToolApplicationModel    
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
   145
    "
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
   146
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
   147
  ^ super helpSpec addPairsFrom:#(
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
   148
823
d812eae12888 help texts added
tz
parents: 822
diff changeset
   149
#about
834
ac1655bd31bb class category changed
tz
parents: 833
diff changeset
   150
'About functions.'
823
d812eae12888 help texts added
tz
parents: 822
diff changeset
   151
762
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
   152
#aboutSTX
763
251e824cb638 grammar changes
tz
parents: 762
diff changeset
   153
'Opens an InfoBox about running ST/X.'
762
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
   154
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
   155
#aboutThisAppliaction
763
251e824cb638 grammar changes
tz
parents: 762
diff changeset
   156
'Opens an InfoBox about release and author of current application.'
762
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
   157
823
d812eae12888 help texts added
tz
parents: 822
diff changeset
   158
#add
834
ac1655bd31bb class category changed
tz
parents: 833
diff changeset
   159
'Add functions.'
823
d812eae12888 help texts added
tz
parents: 822
diff changeset
   160
d812eae12888 help texts added
tz
parents: 822
diff changeset
   161
#commitCancel
851
08dc6d32f0cd cache format for the image methods modifying the images
tz
parents: 850
diff changeset
   162
'Cancels last edit action.'
823
d812eae12888 help texts added
tz
parents: 822
diff changeset
   163
d812eae12888 help texts added
tz
parents: 822
diff changeset
   164
#commitOK
851
08dc6d32f0cd cache format for the image methods modifying the images
tz
parents: 850
diff changeset
   165
'Accepts last edit action.'
823
d812eae12888 help texts added
tz
parents: 822
diff changeset
   166
d812eae12888 help texts added
tz
parents: 822
diff changeset
   167
#edit
834
ac1655bd31bb class category changed
tz
parents: 833
diff changeset
   168
'Edit functions.'
823
d812eae12888 help texts added
tz
parents: 822
diff changeset
   169
d812eae12888 help texts added
tz
parents: 822
diff changeset
   170
#editCopy
853
19f2d0152fcb time clock only for the launcher
tz
parents: 851
diff changeset
   171
'Copies the selected item(s) to the clipboard.'
762
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
   172
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   173
#editCut
853
19f2d0152fcb time clock only for the launcher
tz
parents: 851
diff changeset
   174
'Cuts the selected item(s) and places it to the clipboard.'
19f2d0152fcb time clock only for the launcher
tz
parents: 851
diff changeset
   175
19f2d0152fcb time clock only for the launcher
tz
parents: 851
diff changeset
   176
#editDelete
19f2d0152fcb time clock only for the launcher
tz
parents: 851
diff changeset
   177
'Deletes the selected item(s).'
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   178
823
d812eae12888 help texts added
tz
parents: 822
diff changeset
   179
#editMoveDown
834
ac1655bd31bb class category changed
tz
parents: 833
diff changeset
   180
'Moves the selected item one step down.'
823
d812eae12888 help texts added
tz
parents: 822
diff changeset
   181
d812eae12888 help texts added
tz
parents: 822
diff changeset
   182
#editMoveIn
834
ac1655bd31bb class category changed
tz
parents: 833
diff changeset
   183
'Moves the selected item into next item as child item.'
823
d812eae12888 help texts added
tz
parents: 822
diff changeset
   184
d812eae12888 help texts added
tz
parents: 822
diff changeset
   185
#editMoveOut
834
ac1655bd31bb class category changed
tz
parents: 833
diff changeset
   186
'Moves the selected item out of parent item.'
823
d812eae12888 help texts added
tz
parents: 822
diff changeset
   187
d812eae12888 help texts added
tz
parents: 822
diff changeset
   188
#editMoveUp
834
ac1655bd31bb class category changed
tz
parents: 833
diff changeset
   189
'Moves the selected item one step up.'
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   190
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   191
#editPaste
834
ac1655bd31bb class category changed
tz
parents: 833
diff changeset
   192
'Pastes the contents of the clipboard.'
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   193
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   194
#editUndo
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   195
'Reverses the last action.'
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   196
823
d812eae12888 help texts added
tz
parents: 822
diff changeset
   197
#file
834
ac1655bd31bb class category changed
tz
parents: 833
diff changeset
   198
'File functions.'
805
d4c4ee3bb474 now, help menu is very rudimentarily
tz
parents: 804
diff changeset
   199
823
d812eae12888 help texts added
tz
parents: 822
diff changeset
   200
#fileBrowseClass
d812eae12888 help texts added
tz
parents: 822
diff changeset
   201
'Opens a System Browser on current class and selector.'
805
d4c4ee3bb474 now, help menu is very rudimentarily
tz
parents: 804
diff changeset
   202
823
d812eae12888 help texts added
tz
parents: 822
diff changeset
   203
#fileDefineClass
d812eae12888 help texts added
tz
parents: 822
diff changeset
   204
'Opens a dialog to define current class.'
805
d4c4ee3bb474 now, help menu is very rudimentarily
tz
parents: 804
diff changeset
   205
d4c4ee3bb474 now, help menu is very rudimentarily
tz
parents: 804
diff changeset
   206
#fileDefineClassAndSelector
d4c4ee3bb474 now, help menu is very rudimentarily
tz
parents: 804
diff changeset
   207
'Opens a dialog to define current class and selector.'
d4c4ee3bb474 now, help menu is very rudimentarily
tz
parents: 804
diff changeset
   208
823
d812eae12888 help texts added
tz
parents: 822
diff changeset
   209
#fileExit
d812eae12888 help texts added
tz
parents: 822
diff changeset
   210
'Exits current application.'
d812eae12888 help texts added
tz
parents: 822
diff changeset
   211
d812eae12888 help texts added
tz
parents: 822
diff changeset
   212
#help
834
ac1655bd31bb class category changed
tz
parents: 833
diff changeset
   213
'Help functions.'
823
d812eae12888 help texts added
tz
parents: 822
diff changeset
   214
d812eae12888 help texts added
tz
parents: 822
diff changeset
   215
#helpShowHelp
d812eae12888 help texts added
tz
parents: 822
diff changeset
   216
'Turns on/off displaying help texts.'
d812eae12888 help texts added
tz
parents: 822
diff changeset
   217
d812eae12888 help texts added
tz
parents: 822
diff changeset
   218
#helpTutorial
846
b03f747c0ad6 some changes for the help menu
tz
parents: 844
diff changeset
   219
'Opens a HTML-Browser on the documentation file of the current application.'
823
d812eae12888 help texts added
tz
parents: 822
diff changeset
   220
d812eae12888 help texts added
tz
parents: 822
diff changeset
   221
#history
834
ac1655bd31bb class category changed
tz
parents: 833
diff changeset
   222
'History functions.'
803
f6ca4eb5da39 help texts for the history added
tz
parents: 802
diff changeset
   223
f6ca4eb5da39 help texts for the history added
tz
parents: 802
diff changeset
   224
#historyEmptyMenu
f6ca4eb5da39 help texts for the history added
tz
parents: 802
diff changeset
   225
'Deletes all items of the history.'
f6ca4eb5da39 help texts for the history added
tz
parents: 802
diff changeset
   226
823
d812eae12888 help texts added
tz
parents: 822
diff changeset
   227
#historyMenuItem
d812eae12888 help texts added
tz
parents: 822
diff changeset
   228
'Evaluates the text of the menu item for loading.'
762
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
   229
823
d812eae12888 help texts added
tz
parents: 822
diff changeset
   230
#test
834
ac1655bd31bb class category changed
tz
parents: 833
diff changeset
   231
'Test functions.'
762
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
   232
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
   233
)
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
   234
! !
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
   235
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   236
!ToolApplicationModel class methodsFor:'history'!
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   237
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   238
getHistory
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   239
761
cc0404f8aec6 #getHistory changed because here #? doesn't work correctly
tz
parents: 760
diff changeset
   240
    history isNil ifTrue: [history := OrderedCollection new].
cc0404f8aec6 #getHistory changed because here #? doesn't work correctly
tz
parents: 760
diff changeset
   241
    ^history
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   242
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   243
!
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   244
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   245
historyMaxSize
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   246
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   247
    ^10
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   248
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   249
! !
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   250
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   251
!ToolApplicationModel class methodsFor:'interface specs'!
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   252
797
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   253
windowSpecForCommit
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   254
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   255
    <resource: #canvas>
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   256
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   257
    ^
859
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   258
     
797
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   259
       #(#FullSpec
859
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   260
          #window: 
797
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   261
           #(#WindowSpec
859
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   262
              #name: 'Commit Buttons'
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   263
              #layout: #(#LayoutFrame 442 0 276 0 741 0 335 0)
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   264
              #label: 'Commit Buttons'
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   265
              #min: #(#Point 100 22)
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   266
              #max: #(#Point 1152 900)
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   267
              #bounds: #(#Rectangle 442 276 742 336)
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   268
              #usePreferredExtent: false
797
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   269
          )
859
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   270
          #component: 
797
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   271
           #(#SpecCollection
859
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   272
              #collection: 
797
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   273
               #(
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   274
                 #(#ActionButtonSpec
859
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   275
                    #name: 'cancelButton'
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   276
                    #layout: #(#LayoutFrame 5 0 0 0 -2 0.5 0 1)
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   277
                    #activeHelpKey: #commitCancel
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   278
                    #label: 'Cancel'
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   279
                    #tabable: true
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   280
                    #model: #cancel
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   281
                    #enableChannel: #valueOfEnablingCommitButtons
797
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   282
                )
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   283
                 #(#ActionButtonSpec
859
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   284
                    #name: 'okButton'
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   285
                    #layout: #(#LayoutFrame 2 0.5 0 0.0 -5 1 0 1.0)
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   286
                    #activeHelpKey: #commitOK
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   287
                    #label: 'OK'
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   288
                    #tabable: true
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   289
                    #model: #accept
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   290
                    #enableChannel: #valueOfEnablingCommitButtons
797
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   291
                )
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   292
              )
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   293
          )
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   294
      )
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   295
!
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   296
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   297
windowSpecForCommitWithoutChannels
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   298
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   299
    <resource: #canvas>
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   300
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   301
    ^
859
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   302
     
797
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   303
       #(#FullSpec
859
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   304
          #window: 
797
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   305
           #(#WindowSpec
859
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   306
              #name: 'Commit Buttons Without Channels'
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   307
              #layout: #(#LayoutFrame 435 0 290 0 734 0 349 0)
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   308
              #label: 'Commit Buttons Without Channels'
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   309
              #min: #(#Point 100 22)
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   310
              #max: #(#Point 1152 900)
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   311
              #bounds: #(#Rectangle 435 290 735 350)
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   312
              #usePreferredExtent: false
797
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   313
          )
859
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   314
          #component: 
797
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   315
           #(#SpecCollection
859
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   316
              #collection: 
797
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   317
               #(
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   318
                 #(#ActionButtonSpec
859
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   319
                    #name: 'cancelButton'
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   320
                    #layout: #(#LayoutFrame 5 0 0 0 -2 0.5 0 1)
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   321
                    #activeHelpKey: #commitCancel
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   322
                    #label: 'Cancel'
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   323
                    #tabable: true
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   324
                    #model: #cancel
797
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   325
                )
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   326
                 #(#ActionButtonSpec
859
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   327
                    #name: 'okButton'
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   328
                    #layout: #(#LayoutFrame 2 0.5 0 0.0 -5 1 0 1.0)
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   329
                    #activeHelpKey: #commitOK
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   330
                    #label: 'OK'
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   331
                    #tabable: true
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   332
                    #model: #accept
797
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   333
                )
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   334
              )
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   335
          )
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   336
      )
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   337
!
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   338
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   339
windowSpecForInfoBar
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   340
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   341
    <resource: #canvas>
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   342
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   343
    ^
859
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   344
     
797
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   345
       #(#FullSpec
859
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   346
          #window: 
797
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   347
           #(#WindowSpec
859
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   348
              #name: 'Info Bar'
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   349
              #layout: #(#LayoutFrame 445 0 300 0 944 0 645 0)
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   350
              #label: 'Info Bar'
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   351
              #min: #(#Point 400 320)
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   352
              #max: #(#Point 1152 900)
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   353
              #bounds: #(#Rectangle 445 300 945 646)
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   354
              #menu: #menu
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   355
              #usePreferredExtent: false
797
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   356
          )
859
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   357
          #component: 
797
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   358
           #(#SpecCollection
859
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   359
              #collection: 
797
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   360
               #(
820
d01d777e2bb3 info bars redesigned
tz
parents: 805
diff changeset
   361
                 #(#ViewSpec
859
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   362
                    #name: 'view'
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   363
                    #layout: #(#LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0)
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   364
                    #component: 
820
d01d777e2bb3 info bars redesigned
tz
parents: 805
diff changeset
   365
                     #(#SpecCollection
859
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   366
                        #collection: 
820
d01d777e2bb3 info bars redesigned
tz
parents: 805
diff changeset
   367
                         #(
d01d777e2bb3 info bars redesigned
tz
parents: 805
diff changeset
   368
                           #(#LabelSpec
859
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   369
                              #name: 'infoLabel'
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   370
                              #layout: #(#LayoutFrame 2 0.0 1 0.0 -1 1.0 -1 1.0)
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   371
                              #labelChannel: #valueOfInfoLabel
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   372
                              #level: -1
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   373
                              #adjust: #left
820
d01d777e2bb3 info bars redesigned
tz
parents: 805
diff changeset
   374
                          )
d01d777e2bb3 info bars redesigned
tz
parents: 805
diff changeset
   375
                        )
d01d777e2bb3 info bars redesigned
tz
parents: 805
diff changeset
   376
                    )
797
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   377
                )
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   378
              )
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   379
          )
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   380
      )
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   381
!
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   382
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   383
windowSpecForInfoBarWithClock
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   384
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   385
    <resource: #canvas>
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   386
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   387
    ^
859
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   388
     
797
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   389
       #(#FullSpec
859
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   390
          #window: 
797
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   391
           #(#WindowSpec
859
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   392
              #name: 'Info Bar'
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   393
              #layout: #(#LayoutFrame 417 0 298 0 916 0 643 0)
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   394
              #label: 'Info Bar'
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   395
              #min: #(#Point 400 320)
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   396
              #max: #(#Point 1152 900)
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   397
              #bounds: #(#Rectangle 417 298 917 644)
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   398
              #menu: #menu
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   399
              #usePreferredExtent: false
797
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   400
          )
859
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   401
          #component: 
797
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   402
           #(#SpecCollection
859
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   403
              #collection: 
797
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   404
               #(
820
d01d777e2bb3 info bars redesigned
tz
parents: 805
diff changeset
   405
                 #(#ViewSpec
859
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   406
                    #name: 'view'
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   407
                    #layout: #(#LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0)
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   408
                    #component: 
820
d01d777e2bb3 info bars redesigned
tz
parents: 805
diff changeset
   409
                     #(#SpecCollection
859
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   410
                        #collection: 
820
d01d777e2bb3 info bars redesigned
tz
parents: 805
diff changeset
   411
                         #(
d01d777e2bb3 info bars redesigned
tz
parents: 805
diff changeset
   412
                           #(#LabelSpec
859
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   413
                              #name: 'infoLabel'
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   414
                              #layout: #(#LayoutFrame 2 0 1 0.0 -81 1 -1 1.0)
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   415
                              #labelChannel: #valueOfInfoLabel
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   416
                              #level: -1
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   417
                              #adjust: #left
820
d01d777e2bb3 info bars redesigned
tz
parents: 805
diff changeset
   418
                          )
d01d777e2bb3 info bars redesigned
tz
parents: 805
diff changeset
   419
                           #(#LabelSpec
859
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   420
                              #name: 'timeLabel'
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   421
                              #layout: #(#LayoutFrame -79 1 1 0.0 -1 1.0 -1 1.0)
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   422
                              #labelChannel: #valueOfTimeLabel
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   423
                              #level: -1
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   424
                              #adjust: #right
820
d01d777e2bb3 info bars redesigned
tz
parents: 805
diff changeset
   425
                          )
d01d777e2bb3 info bars redesigned
tz
parents: 805
diff changeset
   426
                        )
d01d777e2bb3 info bars redesigned
tz
parents: 805
diff changeset
   427
                    )
797
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   428
                )
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   429
              )
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   430
          )
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   431
      )
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   432
! !
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   433
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   434
!ToolApplicationModel class methodsFor:'menu specs'!
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   435
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   436
menuAbout
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   437
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   438
    <resource: #menu>
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   439
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   440
    ^
859
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   441
     
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   442
       #(#Menu
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   443
          
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   444
           #(
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   445
             #(#MenuItem
859
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   446
                #label: 'About Smalltalk/X...'
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   447
                #translateLabel: true
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   448
                #value: #openAbout
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   449
                #activeHelpKey: #aboutSTX
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   450
            )
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   451
             #(#MenuItem
859
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   452
                #label: '-'
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   453
            )
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   454
             #(#MenuItem
859
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   455
                #label: 'About This Application...'
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   456
                #translateLabel: true
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   457
                #value: #openAboutThisApplication
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   458
                #activeHelpKey: #aboutThisAppliaction
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   459
            )
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   460
          ) nil
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   461
          nil
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   462
      )
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   463
!
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   464
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   465
menuHelp
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   466
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   467
    <resource: #menu>
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   468
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   469
    ^
859
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   470
     
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   471
       #(#Menu
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   472
          
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   473
           #(
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   474
             #(#MenuItem
859
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   475
                #label: 'Open Documentation'
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   476
                #translateLabel: true
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   477
                #value: #openDocumentation
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   478
                #activeHelpKey: #helpTutorial
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   479
                #enabled: #valueOfHavingTutorial
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   480
            )
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   481
             #(#MenuItem
859
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   482
                #label: '-'
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   483
            )
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   484
             #(#MenuItem
859
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   485
                #label: 'Show Help Texts'
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   486
                #translateLabel: true
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   487
                #activeHelpKey: #helpShowHelp
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   488
                #indication: #showHelp:
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   489
            )
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   490
          ) nil
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   491
          nil
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   492
      )
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   493
! !
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   494
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   495
!ToolApplicationModel class methodsFor:'resources'!
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   496
853
19f2d0152fcb time clock only for the launcher
tz
parents: 851
diff changeset
   497
copyIcon
19f2d0152fcb time clock only for the launcher
tz
parents: 851
diff changeset
   498
    "Generated by the Image Editor"
19f2d0152fcb time clock only for the launcher
tz
parents: 851
diff changeset
   499
    "
19f2d0152fcb time clock only for the launcher
tz
parents: 851
diff changeset
   500
    ImageEditor openOnClass:self andSelector:#copyIcon
19f2d0152fcb time clock only for the launcher
tz
parents: 851
diff changeset
   501
    "
19f2d0152fcb time clock only for the launcher
tz
parents: 851
diff changeset
   502
19f2d0152fcb time clock only for the launcher
tz
parents: 851
diff changeset
   503
    <resource: #image>
19f2d0152fcb time clock only for the launcher
tz
parents: 851
diff changeset
   504
19f2d0152fcb time clock only for the launcher
tz
parents: 851
diff changeset
   505
    ^Icon
19f2d0152fcb time clock only for the launcher
tz
parents: 851
diff changeset
   506
        constantNamed:#'ToolApplicationModel copyIcon'
19f2d0152fcb time clock only for the launcher
tz
parents: 851
diff changeset
   507
        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]!
19f2d0152fcb time clock only for the launcher
tz
parents: 851
diff changeset
   508
19f2d0152fcb time clock only for the launcher
tz
parents: 851
diff changeset
   509
cutIcon
19f2d0152fcb time clock only for the launcher
tz
parents: 851
diff changeset
   510
    "Generated by the Image Editor"
19f2d0152fcb time clock only for the launcher
tz
parents: 851
diff changeset
   511
    "
19f2d0152fcb time clock only for the launcher
tz
parents: 851
diff changeset
   512
    ImageEditor openOnClass:self andSelector:#cutIcon
19f2d0152fcb time clock only for the launcher
tz
parents: 851
diff changeset
   513
    "
19f2d0152fcb time clock only for the launcher
tz
parents: 851
diff changeset
   514
19f2d0152fcb time clock only for the launcher
tz
parents: 851
diff changeset
   515
    <resource: #image>
19f2d0152fcb time clock only for the launcher
tz
parents: 851
diff changeset
   516
19f2d0152fcb time clock only for the launcher
tz
parents: 851
diff changeset
   517
    ^Icon
19f2d0152fcb time clock only for the launcher
tz
parents: 851
diff changeset
   518
        constantNamed:#'ToolApplicationModel cutIcon'
19f2d0152fcb time clock only for the launcher
tz
parents: 851
diff changeset
   519
        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]!
19f2d0152fcb time clock only for the launcher
tz
parents: 851
diff changeset
   520
19f2d0152fcb time clock only for the launcher
tz
parents: 851
diff changeset
   521
deleteIcon
19f2d0152fcb time clock only for the launcher
tz
parents: 851
diff changeset
   522
    "Generated by the Image Editor"
19f2d0152fcb time clock only for the launcher
tz
parents: 851
diff changeset
   523
    "
19f2d0152fcb time clock only for the launcher
tz
parents: 851
diff changeset
   524
    ImageEditor openOnClass:self andSelector:#deleteIcon
19f2d0152fcb time clock only for the launcher
tz
parents: 851
diff changeset
   525
    "
19f2d0152fcb time clock only for the launcher
tz
parents: 851
diff changeset
   526
19f2d0152fcb time clock only for the launcher
tz
parents: 851
diff changeset
   527
    <resource: #image>
19f2d0152fcb time clock only for the launcher
tz
parents: 851
diff changeset
   528
19f2d0152fcb time clock only for the launcher
tz
parents: 851
diff changeset
   529
    ^Icon
19f2d0152fcb time clock only for the launcher
tz
parents: 851
diff changeset
   530
        constantNamed:#'ToolApplicationModel deleteIcon'
19f2d0152fcb time clock only for the launcher
tz
parents: 851
diff changeset
   531
        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]!
19f2d0152fcb time clock only for the launcher
tz
parents: 851
diff changeset
   532
803
f6ca4eb5da39 help texts for the history added
tz
parents: 802
diff changeset
   533
desktopIcon
f6ca4eb5da39 help texts for the history added
tz
parents: 802
diff changeset
   534
851
08dc6d32f0cd cache format for the image methods modifying the images
tz
parents: 850
diff changeset
   535
    ^Icon
08dc6d32f0cd cache format for the image methods modifying the images
tz
parents: 850
diff changeset
   536
        constantNamed:#'ToolApplicationModel desktopIcon'
08dc6d32f0cd cache format for the image methods modifying the images
tz
parents: 850
diff changeset
   537
        ifAbsentPut:
08dc6d32f0cd cache format for the image methods modifying the images
tz
parents: 850
diff changeset
   538
        [
08dc6d32f0cd cache format for the image methods modifying the images
tz
parents: 850
diff changeset
   539
            |desktopIcon|
08dc6d32f0cd cache format for the image methods modifying the images
tz
parents: 850
diff changeset
   540
            desktopIcon := self stxIcon.
08dc6d32f0cd cache format for the image methods modifying the images
tz
parents: 850
diff changeset
   541
            desktopIcon magnifiedBy: Display preferredIconSize/desktopIcon extent
08dc6d32f0cd cache format for the image methods modifying the images
tz
parents: 850
diff changeset
   542
        ]
08dc6d32f0cd cache format for the image methods modifying the images
tz
parents: 850
diff changeset
   543
803
f6ca4eb5da39 help texts for the history added
tz
parents: 802
diff changeset
   544
f6ca4eb5da39 help texts for the history added
tz
parents: 802
diff changeset
   545
f6ca4eb5da39 help texts for the history added
tz
parents: 802
diff changeset
   546
f6ca4eb5da39 help texts for the history added
tz
parents: 802
diff changeset
   547
!
f6ca4eb5da39 help texts for the history added
tz
parents: 802
diff changeset
   548
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   549
downIcon
778
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   550
    "Generated by the Image Editor"
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   551
    "
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   552
    ImageEditor openOnClass:self andSelector:#downIcon
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   553
    "
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   554
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   555
    <resource: #image>
778
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   556
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   557
    ^Icon
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   558
        constantNamed:#'ToolApplicationModel downIcon'
850
cdf5ecf904e2 some obselete icons removed
tz
parents: 846
diff changeset
   559
        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]
cdf5ecf904e2 some obselete icons removed
tz
parents: 846
diff changeset
   560
!
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   561
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   562
downRightIcon
778
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   563
    "Generated by the Image Editor"
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   564
    "
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   565
    ImageEditor openOnClass:self andSelector:#downRightIcon
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   566
    "
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   567
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   568
    <resource: #image>
778
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   569
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   570
    ^Icon
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   571
        constantNamed:#'ToolApplicationModel downRightIcon'
850
cdf5ecf904e2 some obselete icons removed
tz
parents: 846
diff changeset
   572
        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]
cdf5ecf904e2 some obselete icons removed
tz
parents: 846
diff changeset
   573
!
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   574
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   575
leftDownIcon
778
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   576
    "Generated by the Image Editor"
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   577
    "
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   578
    ImageEditor openOnClass:self andSelector:#leftDownIcon
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   579
    "
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   580
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   581
    <resource: #image>
778
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   582
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   583
    ^Icon
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   584
        constantNamed:#'ToolApplicationModel leftDownIcon'
850
cdf5ecf904e2 some obselete icons removed
tz
parents: 846
diff changeset
   585
        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]
cdf5ecf904e2 some obselete icons removed
tz
parents: 846
diff changeset
   586
!
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   587
778
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   588
leftIcon
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   589
    "Generated by the Image Editor"
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   590
    "
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   591
    ImageEditor openOnClass:self andSelector:#leftIcon
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   592
    "
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   593
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   594
    <resource: #image>
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   595
778
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   596
    ^Icon
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   597
        constantNamed:#'ToolApplicationModel leftIcon'
850
cdf5ecf904e2 some obselete icons removed
tz
parents: 846
diff changeset
   598
        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]
cdf5ecf904e2 some obselete icons removed
tz
parents: 846
diff changeset
   599
!
772
6164c303afde enlarged (for cg) and redesigned (for all) icons
tz
parents: 769
diff changeset
   600
778
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   601
loadIcon
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   602
    "Generated by the Image Editor"
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   603
    "
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   604
    ImageEditor openOnClass:self andSelector:#loadIcon
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   605
    "
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   606
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   607
    <resource: #image>
778
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   608
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   609
    ^Icon
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   610
        constantNamed:#'ToolApplicationModel loadIcon'
850
cdf5ecf904e2 some obselete icons removed
tz
parents: 846
diff changeset
   611
        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]
cdf5ecf904e2 some obselete icons removed
tz
parents: 846
diff changeset
   612
!
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   613
803
f6ca4eb5da39 help texts for the history added
tz
parents: 802
diff changeset
   614
menuIcon
f6ca4eb5da39 help texts for the history added
tz
parents: 802
diff changeset
   615
851
08dc6d32f0cd cache format for the image methods modifying the images
tz
parents: 850
diff changeset
   616
    ^Icon
08dc6d32f0cd cache format for the image methods modifying the images
tz
parents: 850
diff changeset
   617
        constantNamed:#'ToolApplicationModel menuIcon'
08dc6d32f0cd cache format for the image methods modifying the images
tz
parents: 850
diff changeset
   618
        ifAbsentPut:
08dc6d32f0cd cache format for the image methods modifying the images
tz
parents: 850
diff changeset
   619
        [
08dc6d32f0cd cache format for the image methods modifying the images
tz
parents: 850
diff changeset
   620
            |menuIcon|
08dc6d32f0cd cache format for the image methods modifying the images
tz
parents: 850
diff changeset
   621
            menuIcon := self stxIcon.
08dc6d32f0cd cache format for the image methods modifying the images
tz
parents: 850
diff changeset
   622
            menuIcon magnifiedBy: MenuPanel defaultFont height/menuIcon height
08dc6d32f0cd cache format for the image methods modifying the images
tz
parents: 850
diff changeset
   623
        ]
803
f6ca4eb5da39 help texts for the history added
tz
parents: 802
diff changeset
   624
!
f6ca4eb5da39 help texts for the history added
tz
parents: 802
diff changeset
   625
778
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   626
newIcon
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   627
    "Generated by the Image Editor"
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   628
    "
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   629
    ImageEditor openOnClass:self andSelector:#newIcon
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   630
    "
756
4dba5a8797ec *** empty log message ***
tz
parents: 753
diff changeset
   631
4dba5a8797ec *** empty log message ***
tz
parents: 753
diff changeset
   632
    <resource: #image>
778
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   633
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   634
    ^Icon
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   635
        constantNamed:#'ToolApplicationModel newIcon'
850
cdf5ecf904e2 some obselete icons removed
tz
parents: 846
diff changeset
   636
        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]
cdf5ecf904e2 some obselete icons removed
tz
parents: 846
diff changeset
   637
!
772
6164c303afde enlarged (for cg) and redesigned (for all) icons
tz
parents: 769
diff changeset
   638
853
19f2d0152fcb time clock only for the launcher
tz
parents: 851
diff changeset
   639
pasteIcon
19f2d0152fcb time clock only for the launcher
tz
parents: 851
diff changeset
   640
    "Generated by the Image Editor"
19f2d0152fcb time clock only for the launcher
tz
parents: 851
diff changeset
   641
    "
19f2d0152fcb time clock only for the launcher
tz
parents: 851
diff changeset
   642
    ImageEditor openOnClass:self andSelector:#pasteIcon
19f2d0152fcb time clock only for the launcher
tz
parents: 851
diff changeset
   643
    "
19f2d0152fcb time clock only for the launcher
tz
parents: 851
diff changeset
   644
19f2d0152fcb time clock only for the launcher
tz
parents: 851
diff changeset
   645
    <resource: #image>
19f2d0152fcb time clock only for the launcher
tz
parents: 851
diff changeset
   646
19f2d0152fcb time clock only for the launcher
tz
parents: 851
diff changeset
   647
    ^Icon
19f2d0152fcb time clock only for the launcher
tz
parents: 851
diff changeset
   648
        constantNamed:#'ToolApplicationModel pasteIcon'
19f2d0152fcb time clock only for the launcher
tz
parents: 851
diff changeset
   649
        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]!
19f2d0152fcb time clock only for the launcher
tz
parents: 851
diff changeset
   650
778
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   651
rightIcon
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   652
    "Generated by the Image Editor"
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   653
    "
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   654
    ImageEditor openOnClass:self andSelector:#rightIcon
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   655
    "
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   656
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   657
    <resource: #image>
778
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   658
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   659
    ^Icon
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   660
        constantNamed:#'ToolApplicationModel rightIcon'
850
cdf5ecf904e2 some obselete icons removed
tz
parents: 846
diff changeset
   661
        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]
cdf5ecf904e2 some obselete icons removed
tz
parents: 846
diff changeset
   662
!
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   663
778
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   664
saveIcon
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   665
    "Generated by the Image Editor"
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   666
    "
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   667
    ImageEditor openOnClass:self andSelector:#saveIcon
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   668
    "
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   669
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   670
    <resource: #image>
778
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   671
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   672
    ^Icon
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   673
        constantNamed:#'ToolApplicationModel saveIcon'
850
cdf5ecf904e2 some obselete icons removed
tz
parents: 846
diff changeset
   674
        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]
778
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   675
!
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   676
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   677
startIcon
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   678
    "Generated by the Image Editor"
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   679
    "
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   680
    ImageEditor openOnClass:self andSelector:#startIcon
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   681
    "
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   682
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   683
    <resource: #image>
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   684
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   685
    ^Icon
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   686
        constantNamed:#'ToolApplicationModel startIcon'
850
cdf5ecf904e2 some obselete icons removed
tz
parents: 846
diff changeset
   687
        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]
cdf5ecf904e2 some obselete icons removed
tz
parents: 846
diff changeset
   688
!
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   689
778
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   690
stxIcon
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   691
    "Generated by the Image Editor"
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   692
    "
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   693
    ImageEditor openOnClass:self andSelector:#stxIcon
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   694
    "
772
6164c303afde enlarged (for cg) and redesigned (for all) icons
tz
parents: 769
diff changeset
   695
6164c303afde enlarged (for cg) and redesigned (for all) icons
tz
parents: 769
diff changeset
   696
    <resource: #image>
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   697
778
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   698
    ^Icon
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   699
        constantNamed:#'ToolApplicationModel stxIcon'
858
a36ca9158a69 show help bug fixed
tz
parents: 853
diff changeset
   700
        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]!
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   701
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   702
upIcon
778
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   703
    "Generated by the Image Editor"
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   704
    "
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   705
    ImageEditor openOnClass:self andSelector:#upIcon
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   706
    "
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   707
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   708
    <resource: #image>
778
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   709
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   710
    ^Icon
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   711
        constantNamed:#'ToolApplicationModel upIcon'
850
cdf5ecf904e2 some obselete icons removed
tz
parents: 846
diff changeset
   712
        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]
cdf5ecf904e2 some obselete icons removed
tz
parents: 846
diff changeset
   713
! !
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   714
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   715
!ToolApplicationModel class methodsFor:'startup / release'!
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   716
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   717
preSnapshot
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   718
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   719
    clipboard := nil
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   720
   
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   721
!
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   722
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   723
uninitialize
760
26cf45040420 #preferredExtent cleaned
tz
parents: 758
diff changeset
   724
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   725
    showHelp := history := clipboard := nil
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   726
! !
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   727
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   728
!ToolApplicationModel methodsFor:'aspects'!
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   729
822
374400d57e0b some useful aspects added
tz
parents: 821
diff changeset
   730
valueOfCanCopy
374400d57e0b some useful aspects added
tz
parents: 821
diff changeset
   731
374400d57e0b some useful aspects added
tz
parents: 821
diff changeset
   732
    |holder|
374400d57e0b some useful aspects added
tz
parents: 821
diff changeset
   733
    (holder := builder bindingAt:#valueOfCanCopy) isNil ifTrue:[
374400d57e0b some useful aspects added
tz
parents: 821
diff changeset
   734
        builder aspectAt:#valueOfCanCopy put:(holder :=  false asValue).
374400d57e0b some useful aspects added
tz
parents: 821
diff changeset
   735
    ].
374400d57e0b some useful aspects added
tz
parents: 821
diff changeset
   736
    ^ holder
374400d57e0b some useful aspects added
tz
parents: 821
diff changeset
   737
374400d57e0b some useful aspects added
tz
parents: 821
diff changeset
   738
!
374400d57e0b some useful aspects added
tz
parents: 821
diff changeset
   739
374400d57e0b some useful aspects added
tz
parents: 821
diff changeset
   740
valueOfCanCut
374400d57e0b some useful aspects added
tz
parents: 821
diff changeset
   741
374400d57e0b some useful aspects added
tz
parents: 821
diff changeset
   742
    |holder|
374400d57e0b some useful aspects added
tz
parents: 821
diff changeset
   743
    (holder := builder bindingAt:#valueOfCanCut) isNil ifTrue:[
374400d57e0b some useful aspects added
tz
parents: 821
diff changeset
   744
        builder aspectAt:#valueOfCanCut put:(holder :=  false asValue).
374400d57e0b some useful aspects added
tz
parents: 821
diff changeset
   745
    ].
374400d57e0b some useful aspects added
tz
parents: 821
diff changeset
   746
    ^ holder
374400d57e0b some useful aspects added
tz
parents: 821
diff changeset
   747
374400d57e0b some useful aspects added
tz
parents: 821
diff changeset
   748
!
374400d57e0b some useful aspects added
tz
parents: 821
diff changeset
   749
374400d57e0b some useful aspects added
tz
parents: 821
diff changeset
   750
valueOfCanPaste
374400d57e0b some useful aspects added
tz
parents: 821
diff changeset
   751
374400d57e0b some useful aspects added
tz
parents: 821
diff changeset
   752
    |holder|
374400d57e0b some useful aspects added
tz
parents: 821
diff changeset
   753
    (holder := builder bindingAt:#valueOfCanPaste) isNil ifTrue:[
374400d57e0b some useful aspects added
tz
parents: 821
diff changeset
   754
        builder aspectAt:#valueOfCanPaste put:(holder :=  false asValue).
374400d57e0b some useful aspects added
tz
parents: 821
diff changeset
   755
    ].
374400d57e0b some useful aspects added
tz
parents: 821
diff changeset
   756
    ^ holder
374400d57e0b some useful aspects added
tz
parents: 821
diff changeset
   757
374400d57e0b some useful aspects added
tz
parents: 821
diff changeset
   758
!
374400d57e0b some useful aspects added
tz
parents: 821
diff changeset
   759
374400d57e0b some useful aspects added
tz
parents: 821
diff changeset
   760
valueOfCanUndo
374400d57e0b some useful aspects added
tz
parents: 821
diff changeset
   761
374400d57e0b some useful aspects added
tz
parents: 821
diff changeset
   762
    |holder|
374400d57e0b some useful aspects added
tz
parents: 821
diff changeset
   763
    (holder := builder bindingAt:#valueOfCanUndo) isNil ifTrue:[
374400d57e0b some useful aspects added
tz
parents: 821
diff changeset
   764
        builder aspectAt:#valueOfCanUndo put:(holder :=  false asValue).
374400d57e0b some useful aspects added
tz
parents: 821
diff changeset
   765
    ].
374400d57e0b some useful aspects added
tz
parents: 821
diff changeset
   766
    ^ holder
374400d57e0b some useful aspects added
tz
parents: 821
diff changeset
   767
374400d57e0b some useful aspects added
tz
parents: 821
diff changeset
   768
!
374400d57e0b some useful aspects added
tz
parents: 821
diff changeset
   769
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   770
valueOfEnablingCommitButtons
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   771
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   772
    |holder|
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   773
    (holder := builder bindingAt:#valueOfEnablingCommitButtons) isNil ifTrue:[
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   774
        builder aspectAt:#valueOfEnablingCommitButtons put:(holder :=  false asValue).
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   775
    ].
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   776
    ^ holder
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   777
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   778
!
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   779
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   780
valueOfHavingClipboard
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   781
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   782
    |holder|
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   783
    (holder := builder bindingAt:#valueOfHavingClipboard) isNil ifTrue:[
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   784
        builder aspectAt:#valueOfHavingClipboard put:(holder :=  self class clipboard notNil asValue).
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   785
    ].
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   786
    ^ holder
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   787
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   788
!
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   789
858
a36ca9158a69 show help bug fixed
tz
parents: 853
diff changeset
   790
valueOfHavingDocumentation
803
f6ca4eb5da39 help texts for the history added
tz
parents: 802
diff changeset
   791
f6ca4eb5da39 help texts for the history added
tz
parents: 802
diff changeset
   792
    |holder|
858
a36ca9158a69 show help bug fixed
tz
parents: 853
diff changeset
   793
    (holder := builder bindingAt:#valueOfHavingDocumentation) isNil ifTrue:[
a36ca9158a69 show help bug fixed
tz
parents: 853
diff changeset
   794
        builder aspectAt:#valueOfHavingDocumentation put:(holder :=  (self class implements: #openDocumentation) asValue).
803
f6ca4eb5da39 help texts for the history added
tz
parents: 802
diff changeset
   795
    ].
f6ca4eb5da39 help texts for the history added
tz
parents: 802
diff changeset
   796
    ^ holder
f6ca4eb5da39 help texts for the history added
tz
parents: 802
diff changeset
   797
f6ca4eb5da39 help texts for the history added
tz
parents: 802
diff changeset
   798
!
f6ca4eb5da39 help texts for the history added
tz
parents: 802
diff changeset
   799
858
a36ca9158a69 show help bug fixed
tz
parents: 853
diff changeset
   800
valueOfHavingExamples
a36ca9158a69 show help bug fixed
tz
parents: 853
diff changeset
   801
a36ca9158a69 show help bug fixed
tz
parents: 853
diff changeset
   802
    |holder|
a36ca9158a69 show help bug fixed
tz
parents: 853
diff changeset
   803
    (holder := builder bindingAt:#valueOfHavingExamples) isNil ifTrue:[
a36ca9158a69 show help bug fixed
tz
parents: 853
diff changeset
   804
        builder aspectAt:#valueOfHavingExamples put:(holder :=  (self class implements: #openExamples) asValue).
a36ca9158a69 show help bug fixed
tz
parents: 853
diff changeset
   805
    ].
a36ca9158a69 show help bug fixed
tz
parents: 853
diff changeset
   806
    ^ holder
a36ca9158a69 show help bug fixed
tz
parents: 853
diff changeset
   807
a36ca9158a69 show help bug fixed
tz
parents: 853
diff changeset
   808
!
a36ca9158a69 show help bug fixed
tz
parents: 853
diff changeset
   809
a36ca9158a69 show help bug fixed
tz
parents: 853
diff changeset
   810
valueOfHavingTutorial
a36ca9158a69 show help bug fixed
tz
parents: 853
diff changeset
   811
a36ca9158a69 show help bug fixed
tz
parents: 853
diff changeset
   812
    ^self valueOfHavingDocumentation
a36ca9158a69 show help bug fixed
tz
parents: 853
diff changeset
   813
a36ca9158a69 show help bug fixed
tz
parents: 853
diff changeset
   814
!
a36ca9158a69 show help bug fixed
tz
parents: 853
diff changeset
   815
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   816
valueOfInfoLabel
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   817
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   818
    |holder|
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   819
    (holder := builder bindingAt:#valueOfInfoLabel) isNil ifTrue:[
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   820
        builder aspectAt:#valueOfInfoLabel put:(holder :=  ValueHolder new).
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   821
    ].
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   822
    ^ holder
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   823
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   824
!
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   825
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   826
valueOfTimeLabel
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   827
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   828
    |holder|
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   829
    (holder := builder bindingAt:#valueOfTimeLabel) isNil ifTrue:[
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   830
        builder aspectAt:#valueOfTimeLabel put:(holder :=  ValueHolder new).
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   831
    ].
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   832
    ^ holder
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   833
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   834
! !
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   835
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   836
!ToolApplicationModel methodsFor:'clipboard'!
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   837
838
d2588cca5a15 some obselete texts removed
tz
parents: 834
diff changeset
   838
clipboard
d2588cca5a15 some obselete texts removed
tz
parents: 834
diff changeset
   839
d2588cca5a15 some obselete texts removed
tz
parents: 834
diff changeset
   840
    ^self class clipboard
d2588cca5a15 some obselete texts removed
tz
parents: 834
diff changeset
   841
!
d2588cca5a15 some obselete texts removed
tz
parents: 834
diff changeset
   842
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   843
clipboard: anEditObject
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   844
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   845
    self class clipboard: anEditObject.
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   846
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   847
    self valueOfHavingClipboard value: anEditObject notNil
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   848
! !
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   849
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   850
!ToolApplicationModel methodsFor:'help'!
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   851
762
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
   852
defaultInfoLabel
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
   853
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
   854
    ^''
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
   855
!
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
   856
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   857
openAbout
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   858
    "show an about box"
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   859
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   860
    |box|
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   861
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   862
    box := AboutBox new.
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   863
    box autoHideAfter:10 with:[].
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   864
    box showAtCenter
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   865
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   866
!
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   867
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   868
openAboutThisApplication
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   869
    "show an about this application box"
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   870
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   871
    |rev box|
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   872
    rev := ''.
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   873
    self class revision notNil ifTrue: [rev := '  (rev: ', self class revision printString, ')'].
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   874
    box := AboutBox title:
800
b98050cf7a43 better author extraction.
Claus Gittinger <cg@exept.de>
parents: 799
diff changeset
   875
        '\The application\\' withCRs
850
cdf5ecf904e2 some obselete icons removed
tz
parents: 846
diff changeset
   876
        , self class name asBoldText, rev
cdf5ecf904e2 some obselete icons removed
tz
parents: 846
diff changeset
   877
        , '\\has been designed and implemented by: \' withCRs
cdf5ecf904e2 some obselete icons removed
tz
parents: 846
diff changeset
   878
        , ((self class authorLinesForAboutBox collect:[:l | '- ' , l]) asStringWith:$\) withCRs
800
b98050cf7a43 better author extraction.
Claus Gittinger <cg@exept.de>
parents: 799
diff changeset
   879
        , '\\' withCRs.
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   880
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   881
     box   label:'About This Application'.
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   882
     box   autoHideAfter:10 with:[].
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   883
     box   showAtCenter.
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   884
!
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   885
858
a36ca9158a69 show help bug fixed
tz
parents: 853
diff changeset
   886
openHTMLDocument: aHTMLFilename
a36ca9158a69 show help bug fixed
tz
parents: 853
diff changeset
   887
a36ca9158a69 show help bug fixed
tz
parents: 853
diff changeset
   888
    HTMLDocumentView openFullOnDocumentationFile: aHTMLFilename
a36ca9158a69 show help bug fixed
tz
parents: 853
diff changeset
   889
!
a36ca9158a69 show help bug fixed
tz
parents: 853
diff changeset
   890
803
f6ca4eb5da39 help texts for the history added
tz
parents: 802
diff changeset
   891
openTutorial: aHTMLFilename
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   892
858
a36ca9158a69 show help bug fixed
tz
parents: 853
diff changeset
   893
    self openHTMLDocument: aHTMLFilename
762
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
   894
!
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
   895
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   896
showHelp
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   897
    "Answer whether showing help is turned on/off"
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   898
783
4e1545900244 show help corrections
tz
parents: 782
diff changeset
   899
    |currentActiveHelp|
858
a36ca9158a69 show help bug fixed
tz
parents: 853
diff changeset
   900
783
4e1545900244 show help corrections
tz
parents: 782
diff changeset
   901
    currentActiveHelp := ActiveHelp currentHelpListener.
4e1545900244 show help corrections
tz
parents: 782
diff changeset
   902
4e1545900244 show help corrections
tz
parents: 782
diff changeset
   903
    ^self class showHelp 
858
a36ca9158a69 show help bug fixed
tz
parents: 853
diff changeset
   904
        and: [currentActiveHelp notNil and: [masterApplication notNil 
a36ca9158a69 show help bug fixed
tz
parents: 853
diff changeset
   905
                ifFalse: [currentActiveHelp interestedIn: self window]
a36ca9158a69 show help bug fixed
tz
parents: 853
diff changeset
   906
                ifTrue:  [currentActiveHelp interestedIn: masterApplication window]]]
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   907
!
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   908
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   909
showHelp: aValue
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   910
    "toggle showing help"
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   911
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   912
    (self class showHelp: aValue)
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   913
        ifTrue: [ActiveHelp startFor: self]
822
374400d57e0b some useful aspects added
tz
parents: 821
diff changeset
   914
        ifFalse: [ActiveHelp stopFor: self. self updateInfoLabel]
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   915
!
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   916
762
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
   917
showHelp:aHelpText for:view
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
   918
    "display aHelpText in the info label or if present detour to masterApplication."
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
   919
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   920
    self showHelp ifFalse: [^true].
762
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
   921
    self masterApplication notNil
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
   922
    ifTrue:
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
   923
    [
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
   924
        ^masterApplication showHelp: aHelpText for:view
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
   925
    ]
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
   926
    ifFalse:
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
   927
    [
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
   928
        aHelpText isNil 
822
374400d57e0b some useful aspects added
tz
parents: 821
diff changeset
   929
            ifTrue:  [self updateInfoLabel] 
762
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
   930
            ifFalse: [self valueOfInfoLabel value: (aHelpText asString printString upTo: Character cr)].
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
   931
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
   932
        ^true
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
   933
    ]
822
374400d57e0b some useful aspects added
tz
parents: 821
diff changeset
   934
!
374400d57e0b some useful aspects added
tz
parents: 821
diff changeset
   935
374400d57e0b some useful aspects added
tz
parents: 821
diff changeset
   936
updateInfoLabel
374400d57e0b some useful aspects added
tz
parents: 821
diff changeset
   937
374400d57e0b some useful aspects added
tz
parents: 821
diff changeset
   938
    self valueOfInfoLabel value: self defaultInfoLabel
762
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
   939
! !
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
   940
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   941
!ToolApplicationModel methodsFor:'history'!
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   942
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   943
addToHistory: aHistoryEntry
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   944
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   945
    aHistoryEntry key size = 0 ifTrue: [^nil].
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   946
    self history remove: (self history detect: [:histEntry| histEntry key = aHistoryEntry key] ifNone: nil) ifAbsent: nil.
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   947
    self history addFirst: aHistoryEntry.
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   948
    [self history size > self class historyMaxSize] whileTrue: [self history removeLast]
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   949
!
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   950
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   951
emptyHistory
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   952
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   953
    ^self history removeAll
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   954
!
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   955
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   956
history
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   957
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   958
    ^self class getHistory
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   959
!
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   960
844
5d9915ac0be6 checkin from browser
tz
parents: 838
diff changeset
   961
historyEntries
5d9915ac0be6 checkin from browser
tz
parents: 838
diff changeset
   962
5d9915ac0be6 checkin from browser
tz
parents: 838
diff changeset
   963
    ^self history collect: [:asso| asso key]
5d9915ac0be6 checkin from browser
tz
parents: 838
diff changeset
   964
!
5d9915ac0be6 checkin from browser
tz
parents: 838
diff changeset
   965
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   966
menuHistory
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   967
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   968
    |menu a|
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   969
    menu := Menu new receiver: self.
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   970
    (self history collect: [:histEntry| histEntry value]) asSet asOrderedCollection do:
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   971
    [:historyEntryType|    
803
f6ca4eb5da39 help texts for the history added
tz
parents: 802
diff changeset
   972
        menu addItemGroup: ((a := 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
   973
    ]. 
803
f6ca4eb5da39 help texts for the history added
tz
parents: 802
diff changeset
   974
    menu addItem: (MenuItem new label: 'Empty History'; value: #emptyHistory; activeHelpKey: #historyEmptyMenu).
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   975
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   976
    ^menu
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   977
!
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   978
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   979
removeFromHistory: aHistoryEntry
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   980
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   981
    self history remove: (self history detect: [:histEntry| histEntry key = aHistoryEntry key] ifNone: nil) ifAbsent: nil.
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   982
    [self history size > self class historyMaxSize] whileTrue: [self history removeLast]
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   983
! !
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   984
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   985
!ToolApplicationModel methodsFor:'queries'!
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   986
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   987
preferredExtent
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   988
    "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
   989
     will be considered"
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   990
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   991
    |window menu menuToolbarView preferredExtentOfWindow|
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   992
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   993
    window          := self builder window. 
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   994
    menu            := window subViews first.
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   995
    menuToolbarView := builder componentAt: #menuToolbarView.
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   996
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   997
    preferredExtentOfWindow := window extent.
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   998
    menu class = MenuPanel ifTrue: [preferredExtentOfWindow := preferredExtentOfWindow max: menu preferredExtent].
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   999
    menuToolbarView notNil ifTrue: [preferredExtentOfWindow := preferredExtentOfWindow max: menuToolbarView preferredExtent].
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
  1000
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
  1001
    ^window minExtent max: (preferredExtentOfWindow min: window maxExtent)
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
  1002
! !
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
  1003
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1004
!ToolApplicationModel methodsFor:'startup / release'!
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1005
833
24bef35c26d5 *** empty log message ***
tz
parents: 826
diff changeset
  1006
allButOpenInterface:aSymbol
24bef35c26d5 *** empty log message ***
tz
parents: 826
diff changeset
  1007
24bef35c26d5 *** empty log message ***
tz
parents: 826
diff changeset
  1008
    super allButOpenInterface:aSymbol.
24bef35c26d5 *** empty log message ***
tz
parents: 826
diff changeset
  1009
24bef35c26d5 *** empty log message ***
tz
parents: 826
diff changeset
  1010
    builder window extent: self preferredExtent.
24bef35c26d5 *** empty log message ***
tz
parents: 826
diff changeset
  1011
    builder window label: self class label.
24bef35c26d5 *** empty log message ***
tz
parents: 826
diff changeset
  1012
24bef35c26d5 *** empty log message ***
tz
parents: 826
diff changeset
  1013
    ^builder
24bef35c26d5 *** empty log message ***
tz
parents: 826
diff changeset
  1014
!
24bef35c26d5 *** empty log message ***
tz
parents: 826
diff changeset
  1015
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1016
close
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1017
756
4dba5a8797ec *** empty log message ***
tz
parents: 753
diff changeset
  1018
    self uninitialize.
4dba5a8797ec *** empty log message ***
tz
parents: 753
diff changeset
  1019
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1020
    super close
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1021
!
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1022
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1023
closeRequest
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1024
756
4dba5a8797ec *** empty log message ***
tz
parents: 753
diff changeset
  1025
    self uninitialize.
4dba5a8797ec *** empty log message ***
tz
parents: 753
diff changeset
  1026
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1027
    super closeRequest
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1028
!
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1029
790
648fac120039 time clock runs now correctly
tz
parents: 784
diff changeset
  1030
postOpenWith:aBuilder
648fac120039 time clock runs now correctly
tz
parents: 784
diff changeset
  1031
648fac120039 time clock runs now correctly
tz
parents: 784
diff changeset
  1032
    super postOpenWith:aBuilder.
648fac120039 time clock runs now correctly
tz
parents: 784
diff changeset
  1033
791
a3269fe103eb *** empty log message ***
tz
parents: 790
diff changeset
  1034
    self class showHelp ifTrue: [ActiveHelp startFor: self].
822
374400d57e0b some useful aspects added
tz
parents: 821
diff changeset
  1035
    self updateInfoLabel.
790
648fac120039 time clock runs now correctly
tz
parents: 784
diff changeset
  1036
!
648fac120039 time clock runs now correctly
tz
parents: 784
diff changeset
  1037
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1038
reOpen
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1039
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1040
    self close.
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1041
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1042
    self class open
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1043
!
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1044
760
26cf45040420 #preferredExtent cleaned
tz
parents: 758
diff changeset
  1045
removeAllTemporalViews
26cf45040420 #preferredExtent cleaned
tz
parents: 758
diff changeset
  1046
26cf45040420 #preferredExtent cleaned
tz
parents: 758
diff changeset
  1047
    self builder namedComponents keys copy do: 
26cf45040420 #preferredExtent cleaned
tz
parents: 758
diff changeset
  1048
    [:comp| 
26cf45040420 #preferredExtent cleaned
tz
parents: 758
diff changeset
  1049
        (comp includesString: '_Temporal') ifTrue: [self builder namedComponents removeKey: comp]
26cf45040420 #preferredExtent cleaned
tz
parents: 758
diff changeset
  1050
    ]
26cf45040420 #preferredExtent cleaned
tz
parents: 758
diff changeset
  1051
!
26cf45040420 #preferredExtent cleaned
tz
parents: 758
diff changeset
  1052
853
19f2d0152fcb time clock only for the launcher
tz
parents: 851
diff changeset
  1053
startClockOnTimedBlock: aBlock
19f2d0152fcb time clock only for the launcher
tz
parents: 851
diff changeset
  1054
19f2d0152fcb time clock only for the launcher
tz
parents: 851
diff changeset
  1055
    timeBlock := aBlock.
19f2d0152fcb time clock only for the launcher
tz
parents: 851
diff changeset
  1056
    aBlock value.
19f2d0152fcb time clock only for the launcher
tz
parents: 851
diff changeset
  1057
19f2d0152fcb time clock only for the launcher
tz
parents: 851
diff changeset
  1058
!
19f2d0152fcb time clock only for the launcher
tz
parents: 851
diff changeset
  1059
756
4dba5a8797ec *** empty log message ***
tz
parents: 753
diff changeset
  1060
uninitialize
4dba5a8797ec *** empty log message ***
tz
parents: 753
diff changeset
  1061
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
  1062
    self showHelp ifTrue: [ActiveHelp stopFor: self].
756
4dba5a8797ec *** empty log message ***
tz
parents: 753
diff changeset
  1063
    Processor removeTimedBlock:timeBlock.
4dba5a8797ec *** empty log message ***
tz
parents: 753
diff changeset
  1064
    timeBlock := nil.
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1065
! !
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1066
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1067
!ToolApplicationModel class methodsFor:'documentation'!
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1068
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1069
version
859
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
  1070
    ^ '$Header: /cvs/stx/stx/libview2/ToolApplicationModel.st,v 1.46 1998-03-05 22:56:53 tz Exp $'
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1071
! !