ToolApplicationModel.st
author tz
Tue, 03 Feb 1998 22:11:19 +0100
changeset 820 d01d777e2bb3
parent 805 d4c4ee3bb474
child 821 a7dba33b613f
permissions -rw-r--r--
info bars redesigned
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:''
9c837d99f109 intitial checkin
tz
parents:
diff changeset
    19
	category:'Interface-Advanced-Tools'
9c837d99f109 intitial checkin
tz
parents:
diff changeset
    20
!
9c837d99f109 intitial checkin
tz
parents:
diff changeset
    21
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
    22
ToolApplicationModel class instanceVariableNames:'history clipboard 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
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   110
showHelp
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   111
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   112
    ^showHelp ? (showHelp := true)
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   113
!
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   114
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   115
showHelp: aBoolean
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 := aBoolean
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   118
! !
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   119
756
4dba5a8797ec *** empty log message ***
tz
parents: 753
diff changeset
   120
!ToolApplicationModel class methodsFor:'clipboard'!
4dba5a8797ec *** empty log message ***
tz
parents: 753
diff changeset
   121
4dba5a8797ec *** empty log message ***
tz
parents: 753
diff changeset
   122
clipboard
4dba5a8797ec *** empty log message ***
tz
parents: 753
diff changeset
   123
4dba5a8797ec *** empty log message ***
tz
parents: 753
diff changeset
   124
    ^clipboard
4dba5a8797ec *** empty log message ***
tz
parents: 753
diff changeset
   125
!
4dba5a8797ec *** empty log message ***
tz
parents: 753
diff changeset
   126
4dba5a8797ec *** empty log message ***
tz
parents: 753
diff changeset
   127
clipboard: anEditObject
4dba5a8797ec *** empty log message ***
tz
parents: 753
diff changeset
   128
4dba5a8797ec *** empty log message ***
tz
parents: 753
diff changeset
   129
    clipboard := anEditObject
4dba5a8797ec *** empty log message ***
tz
parents: 753
diff changeset
   130
! !
4dba5a8797ec *** empty log message ***
tz
parents: 753
diff changeset
   131
762
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
   132
!ToolApplicationModel class methodsFor:'help specs'!
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
   133
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
   134
helpSpec
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
   135
    "return a dictionary filled with helpKey -> helptext associations.
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
   136
     These are used by the activeHelp tool."
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
   137
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
    UIHelpTool openOnClass:ToolApplicationModel    
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
   140
    "
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
   141
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
   142
  ^ super helpSpec addPairsFrom:#(
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
#aboutSTX
763
251e824cb638 grammar changes
tz
parents: 762
diff changeset
   145
'Opens an InfoBox about running ST/X.'
762
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
#aboutThisAppliaction
763
251e824cb638 grammar changes
tz
parents: 762
diff changeset
   148
'Opens an InfoBox about release and author of current application.'
762
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
   149
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
   150
#fileExit
763
251e824cb638 grammar changes
tz
parents: 762
diff changeset
   151
'Exits current application.'
762
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
   152
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   153
#editCut
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   154
'Cuts selected item and place it to the clipboard.'
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   155
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   156
#editCopy
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   157
'Copies selected item to the clipboard.'
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   158
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   159
#editPaste
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   160
'Pastes contents of the clipboard.'
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   161
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   162
#editUndo
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   163
'Reverses the last action.'
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   164
805
d4c4ee3bb474 now, help menu is very rudimentarily
tz
parents: 804
diff changeset
   165
#editMoveDown
d4c4ee3bb474 now, help menu is very rudimentarily
tz
parents: 804
diff changeset
   166
'Moves selected item one step down.'
d4c4ee3bb474 now, help menu is very rudimentarily
tz
parents: 804
diff changeset
   167
d4c4ee3bb474 now, help menu is very rudimentarily
tz
parents: 804
diff changeset
   168
#editMoveUp
d4c4ee3bb474 now, help menu is very rudimentarily
tz
parents: 804
diff changeset
   169
'Moves selected item one step up.'
d4c4ee3bb474 now, help menu is very rudimentarily
tz
parents: 804
diff changeset
   170
d4c4ee3bb474 now, help menu is very rudimentarily
tz
parents: 804
diff changeset
   171
#editMoveIn
d4c4ee3bb474 now, help menu is very rudimentarily
tz
parents: 804
diff changeset
   172
'Moves selected item into next item as child.'
d4c4ee3bb474 now, help menu is very rudimentarily
tz
parents: 804
diff changeset
   173
d4c4ee3bb474 now, help menu is very rudimentarily
tz
parents: 804
diff changeset
   174
#editMoveOut
d4c4ee3bb474 now, help menu is very rudimentarily
tz
parents: 804
diff changeset
   175
'Moves selected item out of parent item.'
d4c4ee3bb474 now, help menu is very rudimentarily
tz
parents: 804
diff changeset
   176
d4c4ee3bb474 now, help menu is very rudimentarily
tz
parents: 804
diff changeset
   177
#fileDefineClassAndSelector
d4c4ee3bb474 now, help menu is very rudimentarily
tz
parents: 804
diff changeset
   178
'Opens a dialog to define current class and selector.'
d4c4ee3bb474 now, help menu is very rudimentarily
tz
parents: 804
diff changeset
   179
803
f6ca4eb5da39 help texts for the history added
tz
parents: 802
diff changeset
   180
#historyMenuItem
f6ca4eb5da39 help texts for the history added
tz
parents: 802
diff changeset
   181
'Evaluates the text of the menu item for loading.'
f6ca4eb5da39 help texts for the history added
tz
parents: 802
diff changeset
   182
f6ca4eb5da39 help texts for the history added
tz
parents: 802
diff changeset
   183
#historyEmptyMenu
f6ca4eb5da39 help texts for the history added
tz
parents: 802
diff changeset
   184
'Deletes all items of the history.'
f6ca4eb5da39 help texts for the history added
tz
parents: 802
diff changeset
   185
762
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
   186
#helpShowHelp
763
251e824cb638 grammar changes
tz
parents: 762
diff changeset
   187
'Toggles on/off displaying help texts.'
762
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
   188
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
   189
#helpTutorial
763
251e824cb638 grammar changes
tz
parents: 762
diff changeset
   190
'Opens a HTML-browser with a tutorial for beginners.'
762
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
   191
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
   192
)
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
   193
! !
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
   194
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   195
!ToolApplicationModel class methodsFor:'history'!
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   196
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   197
getHistory
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   198
761
cc0404f8aec6 #getHistory changed because here #? doesn't work correctly
tz
parents: 760
diff changeset
   199
    history isNil ifTrue: [history := OrderedCollection new].
cc0404f8aec6 #getHistory changed because here #? doesn't work correctly
tz
parents: 760
diff changeset
   200
    ^history
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   201
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   202
!
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   203
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   204
historyMaxSize
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   205
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   206
    ^10
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   207
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   208
! !
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   209
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   210
!ToolApplicationModel class methodsFor:'interface specs'!
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   211
797
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   212
windowSpecForCommit
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   213
    "this window spec was automatically generated by the ST/X UIPainter"
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   214
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   215
    "do not manually edit this - the painter/builder may not be able to
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   216
     handle the specification if its corrupted."
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   217
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   218
    "
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   219
     UIPainter new openOnClass:ToolApplicationModel andSelector:#windowSpecForCommit
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   220
     ToolApplicationModel new openInterface:#windowSpecForCommit
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   221
    "
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   222
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   223
    <resource: #canvas>
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   224
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   225
    ^
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   226
     
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   227
       #(#FullSpec
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   228
          #'window:' 
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   229
           #(#WindowSpec
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   230
              #'name:' 'unnamed canvas'
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   231
              #'layout:' #(#LayoutFrame 325 0 361 0 624 0 420 0)
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   232
              #'label:' 'unnamed canvas'
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   233
              #'min:' #(#Point 100 22)
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   234
              #'max:' #(#Point 1152 900)
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   235
              #'bounds:' #(#Rectangle 325 361 625 421)
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   236
              #'usePreferredExtent:' false
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   237
          )
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   238
          #'component:' 
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   239
           #(#SpecCollection
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   240
              #'collection:' 
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   241
               #(
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   242
                 #(#ActionButtonSpec
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   243
                    #'name:' 'cancelButton'
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   244
                    #'layout:' #(#LayoutFrame 5 0 0 0 -2 0.5 0 1)
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   245
                    #'label:' 'Cancel'
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   246
                    #'tabable:' true
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   247
                    #'model:' #cancel
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   248
                    #'enableChannel:' #valueOfEnablingCommitButtons
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   249
                )
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   250
                 #(#ActionButtonSpec
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   251
                    #'name:' 'okButton'
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   252
                    #'layout:' #(#LayoutFrame 2 0.5 0 0.0 -5 1 0 1.0)
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   253
                    #'label:' 'OK'
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   254
                    #'tabable:' true
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   255
                    #'model:' #accept
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   256
                    #'enableChannel:' #valueOfEnablingCommitButtons
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   257
                )
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   258
              )
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   259
          )
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   260
      )
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   261
!
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   262
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   263
windowSpecForCommitWithoutChannels
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   264
    "this window spec was automatically generated by the ST/X UIPainter"
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   265
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   266
    "do not manually edit this - the painter/builder may not be able to
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   267
     handle the specification if its corrupted."
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   268
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   269
    "
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   270
     UIPainter new openOnClass:ToolApplicationModel andSelector:#windowSpecForCommitWithoutChannels
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   271
     ToolApplicationModel new openInterface:#windowSpecForCommitWithoutChannels
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   272
    "
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   273
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   274
    <resource: #canvas>
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   275
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   276
    ^
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   277
     
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   278
       #(#FullSpec
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   279
          #'window:' 
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   280
           #(#WindowSpec
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   281
              #'name:' 'unnamed canvas'
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   282
              #'layout:' #(#LayoutFrame 418 0 386 0 717 0 445 0)
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   283
              #'label:' 'unnamed canvas'
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   284
              #'min:' #(#Point 100 22)
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   285
              #'max:' #(#Point 1152 900)
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   286
              #'bounds:' #(#Rectangle 418 386 718 446)
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   287
              #'usePreferredExtent:' false
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   288
          )
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   289
          #'component:' 
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   290
           #(#SpecCollection
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   291
              #'collection:' 
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   292
               #(
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   293
                 #(#ActionButtonSpec
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   294
                    #'name:' 'cancelButton'
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   295
                    #'layout:' #(#LayoutFrame 5 0 0 0 -2 0.5 0 1)
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   296
                    #'label:' 'Cancel'
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   297
                    #'tabable:' true
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   298
                    #'model:' #cancel
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   299
                )
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   300
                 #(#ActionButtonSpec
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   301
                    #'name:' 'okButton'
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   302
                    #'layout:' #(#LayoutFrame 2 0.5 0 0.0 -5 1 0 1.0)
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   303
                    #'label:' 'OK'
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   304
                    #'tabable:' true
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   305
                    #'model:' #accept
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   306
                )
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   307
              )
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   308
          )
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   309
      )
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   310
!
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   311
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   312
windowSpecForInfoBar
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   313
    "this window spec was automatically generated by the ST/X UIPainter"
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   314
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   315
    "do not manually edit this - the painter/builder may not be able to
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   316
     handle the specification if its corrupted."
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   317
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   318
    "
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   319
     UIPainter new openOnClass:ToolApplicationModel andSelector:#windowSpecForInfoBar
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   320
     ToolApplicationModel new openInterface:#windowSpecForInfoBar
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   321
    "
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   322
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   323
    <resource: #canvas>
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   324
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   325
    ^
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   326
     
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   327
       #(#FullSpec
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   328
          #'window:' 
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   329
           #(#WindowSpec
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   330
              #'name:' 'Image Editor'
820
d01d777e2bb3 info bars redesigned
tz
parents: 805
diff changeset
   331
              #'layout:' #(#LayoutFrame 366 0 355 0 865 0 700 0)
797
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   332
              #'label:' 'Image Editor'
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   333
              #'min:' #(#Point 400 320)
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   334
              #'max:' #(#Point 1152 900)
820
d01d777e2bb3 info bars redesigned
tz
parents: 805
diff changeset
   335
              #'bounds:' #(#Rectangle 366 355 866 701)
797
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   336
              #'menu:' #menu
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   337
              #'usePreferredExtent:' false
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   338
          )
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   339
          #'component:' 
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   340
           #(#SpecCollection
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   341
              #'collection:' 
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   342
               #(
820
d01d777e2bb3 info bars redesigned
tz
parents: 805
diff changeset
   343
                 #(#ViewSpec
d01d777e2bb3 info bars redesigned
tz
parents: 805
diff changeset
   344
                    #'name:' 'view'
797
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   345
                    #'layout:' #(#LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0)
820
d01d777e2bb3 info bars redesigned
tz
parents: 805
diff changeset
   346
                    #'component:' 
d01d777e2bb3 info bars redesigned
tz
parents: 805
diff changeset
   347
                     #(#SpecCollection
d01d777e2bb3 info bars redesigned
tz
parents: 805
diff changeset
   348
                        #'collection:' 
d01d777e2bb3 info bars redesigned
tz
parents: 805
diff changeset
   349
                         #(
d01d777e2bb3 info bars redesigned
tz
parents: 805
diff changeset
   350
                           #(#LabelSpec
d01d777e2bb3 info bars redesigned
tz
parents: 805
diff changeset
   351
                              #'name:' 'infoLabel'
d01d777e2bb3 info bars redesigned
tz
parents: 805
diff changeset
   352
                              #'layout:' #(#LayoutFrame 2 0.0 1 0.0 -1 1.0 -1 1.0)
d01d777e2bb3 info bars redesigned
tz
parents: 805
diff changeset
   353
                              #'labelChannel:' #valueOfInfoLabel
d01d777e2bb3 info bars redesigned
tz
parents: 805
diff changeset
   354
                              #'level:' -1
d01d777e2bb3 info bars redesigned
tz
parents: 805
diff changeset
   355
                              #'adjust:' #left
d01d777e2bb3 info bars redesigned
tz
parents: 805
diff changeset
   356
                          )
d01d777e2bb3 info bars redesigned
tz
parents: 805
diff changeset
   357
                        )
d01d777e2bb3 info bars redesigned
tz
parents: 805
diff changeset
   358
                    )
797
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   359
                )
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   360
              )
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   361
          )
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   362
      )
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   363
!
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   364
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   365
windowSpecForInfoBarWithClock
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   366
    "this window spec was automatically generated by the ST/X UIPainter"
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   367
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   368
    "do not manually edit this - the painter/builder may not be able to
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   369
     handle the specification if its corrupted."
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   370
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   371
    "
820
d01d777e2bb3 info bars redesigned
tz
parents: 805
diff changeset
   372
     UIPainter new openOnClass:ToolApplicationModel andSelector:#windowSpecForInfoBarWithClock
d01d777e2bb3 info bars redesigned
tz
parents: 805
diff changeset
   373
     ToolApplicationModel new openInterface:#windowSpecForInfoBarWithClock
797
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   374
    "
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   375
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   376
    <resource: #canvas>
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
       #(#FullSpec
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   381
          #'window:' 
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   382
           #(#WindowSpec
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   383
              #'name:' 'Image Editor'
820
d01d777e2bb3 info bars redesigned
tz
parents: 805
diff changeset
   384
              #'layout:' #(#LayoutFrame 349 0 227 0 848 0 572 0)
797
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   385
              #'label:' 'Image Editor'
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   386
              #'min:' #(#Point 400 320)
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   387
              #'max:' #(#Point 1152 900)
820
d01d777e2bb3 info bars redesigned
tz
parents: 805
diff changeset
   388
              #'bounds:' #(#Rectangle 349 227 849 573)
797
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   389
              #'menu:' #menu
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   390
              #'usePreferredExtent:' false
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   391
          )
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   392
          #'component:' 
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   393
           #(#SpecCollection
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   394
              #'collection:' 
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   395
               #(
820
d01d777e2bb3 info bars redesigned
tz
parents: 805
diff changeset
   396
                 #(#ViewSpec
d01d777e2bb3 info bars redesigned
tz
parents: 805
diff changeset
   397
                    #'name:' 'view'
d01d777e2bb3 info bars redesigned
tz
parents: 805
diff changeset
   398
                    #'layout:' #(#LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0)
d01d777e2bb3 info bars redesigned
tz
parents: 805
diff changeset
   399
                    #'component:' 
d01d777e2bb3 info bars redesigned
tz
parents: 805
diff changeset
   400
                     #(#SpecCollection
d01d777e2bb3 info bars redesigned
tz
parents: 805
diff changeset
   401
                        #'collection:' 
d01d777e2bb3 info bars redesigned
tz
parents: 805
diff changeset
   402
                         #(
d01d777e2bb3 info bars redesigned
tz
parents: 805
diff changeset
   403
                           #(#LabelSpec
d01d777e2bb3 info bars redesigned
tz
parents: 805
diff changeset
   404
                              #'name:' 'infoLabel'
d01d777e2bb3 info bars redesigned
tz
parents: 805
diff changeset
   405
                              #'layout:' #(#LayoutFrame 2 0 1 0.0 -81 1 -1 1.0)
d01d777e2bb3 info bars redesigned
tz
parents: 805
diff changeset
   406
                              #'labelChannel:' #valueOfInfoLabel
d01d777e2bb3 info bars redesigned
tz
parents: 805
diff changeset
   407
                              #'level:' -1
d01d777e2bb3 info bars redesigned
tz
parents: 805
diff changeset
   408
                              #'adjust:' #left
d01d777e2bb3 info bars redesigned
tz
parents: 805
diff changeset
   409
                          )
d01d777e2bb3 info bars redesigned
tz
parents: 805
diff changeset
   410
                           #(#LabelSpec
d01d777e2bb3 info bars redesigned
tz
parents: 805
diff changeset
   411
                              #'name:' 'timeLabel'
d01d777e2bb3 info bars redesigned
tz
parents: 805
diff changeset
   412
                              #'layout:' #(#LayoutFrame -79 1 1 0.0 -1 1.0 -1 1.0)
d01d777e2bb3 info bars redesigned
tz
parents: 805
diff changeset
   413
                              #'labelChannel:' #valueOfTimeLabel
d01d777e2bb3 info bars redesigned
tz
parents: 805
diff changeset
   414
                              #'level:' -1
d01d777e2bb3 info bars redesigned
tz
parents: 805
diff changeset
   415
                              #'adjust:' #right
d01d777e2bb3 info bars redesigned
tz
parents: 805
diff changeset
   416
                          )
d01d777e2bb3 info bars redesigned
tz
parents: 805
diff changeset
   417
                        )
d01d777e2bb3 info bars redesigned
tz
parents: 805
diff changeset
   418
                    )
797
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   419
                )
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   420
              )
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   421
          )
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   422
      )
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   423
! !
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   424
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   425
!ToolApplicationModel class methodsFor:'menu specs'!
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   426
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   427
menuAbout
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   428
    "this window spec was automatically generated by the ST/X MenuEditor"
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   429
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   430
    "do not manually edit this - the builder may not be able to
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   431
     handle the specification if its corrupted."
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   432
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   433
    "
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   434
     MenuEditor new openOnClass:ToolApplicationModel andSelector:#menuAbout
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   435
     (Menu new fromLiteralArrayEncoding:(ToolApplicationModel menuAbout)) startUp
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   436
    "
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
    ^
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   441
     
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
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   446
                #'label:' 'About Smalltalk/X...'
792
b48118707d7b all labels must be translated
Claus Gittinger <cg@exept.de>
parents: 791
diff changeset
   447
                #'translateLabel:' true
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   448
                #'value:' #openAbout
762
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
   449
                #'activeHelpKey:' #aboutSTX
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   450
            )
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   451
             #(#MenuItem
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   452
                #'label:' '-'
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   453
            )
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   454
             #(#MenuItem
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   455
                #'label:' 'About This Application...'
792
b48118707d7b all labels must be translated
Claus Gittinger <cg@exept.de>
parents: 791
diff changeset
   456
                #'translateLabel:' true
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   457
                #'value:' #openAboutThisApplication
762
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
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
      )
792
b48118707d7b all labels must be translated
Claus Gittinger <cg@exept.de>
parents: 791
diff changeset
   463
b48118707d7b all labels must be translated
Claus Gittinger <cg@exept.de>
parents: 791
diff changeset
   464
    "Modified: / 30.1.1998 / 00:03:11 / cg"
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   465
!
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   466
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   467
menuHelp
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   468
    "this window spec was automatically generated by the ST/X MenuEditor"
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   469
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   470
    "do not manually edit this - the builder may not be able to
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   471
     handle the specification if its corrupted."
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   472
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   473
    "
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   474
     MenuEditor new openOnClass:ToolApplicationModel andSelector:#menuHelp
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   475
     (Menu new fromLiteralArrayEncoding:(ToolApplicationModel menuHelp)) startUp
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   476
    "
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   477
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   478
    <resource: #menu>
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   479
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   480
    ^
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   481
     
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   482
       #(#Menu
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   483
          
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   484
           #(
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   485
             #(#MenuItem
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   486
                #'label:' 'Tutorial'
792
b48118707d7b all labels must be translated
Claus Gittinger <cg@exept.de>
parents: 791
diff changeset
   487
                #'translateLabel:' true
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   488
                #'value:' #openTutorial
762
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
   489
                #'activeHelpKey:' #helpTutorial
803
f6ca4eb5da39 help texts for the history added
tz
parents: 802
diff changeset
   490
                #'enabled:' #valueOfHavingTutorial
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   491
            )
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   492
             #(#MenuItem
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   493
                #'label:' '-'
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   494
            )
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   495
             #(#MenuItem
762
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
   496
                #'label:' 'Show Help'
792
b48118707d7b all labels must be translated
Claus Gittinger <cg@exept.de>
parents: 791
diff changeset
   497
                #'translateLabel:' true
762
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
   498
                #'activeHelpKey:' #helpShowHelp
820
d01d777e2bb3 info bars redesigned
tz
parents: 805
diff changeset
   499
                #'indication:' #'showHelp:'
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   500
            )
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   501
          ) nil
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   502
          nil
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   503
      )
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   504
!
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   505
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   506
menuSettings
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   507
    "this window spec was automatically generated by the ST/X MenuEditor"
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   508
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   509
    "do not manually edit this - the builder may not be able to
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   510
     handle the specification if its corrupted."
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   511
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   512
    "
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   513
     MenuEditor new openOnClass:ToolApplicationModel andSelector:#menuSettings
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   514
     (Menu new fromLiteralArrayEncoding:(ToolApplicationModel menuSettings)) startUp
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   515
    "
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   516
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   517
    <resource: #menu>
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   518
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   519
    ^
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   520
     
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   521
       #(#Menu
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   522
          
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   523
           #(
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   524
             #(#MenuItem
792
b48118707d7b all labels must be translated
Claus Gittinger <cg@exept.de>
parents: 791
diff changeset
   525
                #'label:' 'Language...'
b48118707d7b all labels must be translated
Claus Gittinger <cg@exept.de>
parents: 791
diff changeset
   526
                #'translateLabel:' true
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   527
                #'value:' #languageSetting
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   528
            )
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   529
          ) nil
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   530
          nil
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   531
      )
792
b48118707d7b all labels must be translated
Claus Gittinger <cg@exept.de>
parents: 791
diff changeset
   532
b48118707d7b all labels must be translated
Claus Gittinger <cg@exept.de>
parents: 791
diff changeset
   533
    "Modified: / 30.1.1998 / 00:04:14 / cg"
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   534
! !
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   535
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   536
!ToolApplicationModel class methodsFor:'resources'!
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   537
803
f6ca4eb5da39 help texts for the history added
tz
parents: 802
diff changeset
   538
desktopIcon
f6ca4eb5da39 help texts for the history added
tz
parents: 802
diff changeset
   539
f6ca4eb5da39 help texts for the history added
tz
parents: 802
diff changeset
   540
    |desktopIcon|
f6ca4eb5da39 help texts for the history added
tz
parents: 802
diff changeset
   541
    desktopIcon := self stxIcon.
804
86883be6e643 no #magnifyBy: calls
tz
parents: 803
diff changeset
   542
    ^desktopIcon magnifiedBy: Display preferredIconSize/desktopIcon extent
803
f6ca4eb5da39 help texts for the history added
tz
parents: 802
diff changeset
   543
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
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   548
downIcon
778
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   549
    "Generated by the Image Editor"
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   550
    "
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   551
    ImageEditor openOnClass:self andSelector:#downIcon
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   552
    "
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   553
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   554
    <resource: #image>
778
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   555
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   556
    ^Icon
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   557
        constantNamed:#'ToolApplicationModel downIcon'
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   558
        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'); colorMap:((OrderedCollection new add:(Color white); add:(Color black); add:(Color red:0.0 green:49.9962 blue:0.0); add:(Color red:100.0 green:0.0 blue:0.0); yourself)); 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]!
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   559
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   560
downLeftIcon
778
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   561
    "Generated by the Image Editor"
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   562
    "
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   563
    ImageEditor openOnClass:self andSelector:#downLeftIcon
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   564
    "
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   565
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   566
    <resource: #image>
778
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   567
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   568
    ^Icon
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   569
        constantNamed:#'ToolApplicationModel downLeftIcon'
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   570
        ifAbsentPut:[(Depth2Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'UUUUUUUPUUUUU@@PUUUUUJ)PUUUUUJ)PUUUUUJ)PUUUUUJ)PUUUUUJ)PUUUUUJ)PUUUUUJ)PUUUUUJ)PUUAUUJ)PUT%UUJ)PUR%UUJ)PUJ$@@J)PT*****)PR*****)PV*****)PU*****)PUZ%UUUUPUV%UUUUPUU%UUUUPUUUUUUUP'); colorMap:((OrderedCollection new add:(Color white); add:(Color black); add:(Color red:0.0 green:49.9962 blue:0.0); add:(Color red:100.0 green:0.0 blue:0.0); yourself)); mask:((Depth1Image new) width: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@G8@@G8@@G8@@G8@@G8@@G8@@G8@@G8@@G8@0G8A0G8C0G8G??8O??8_??8_??8O??8G??8C0@@A0@@@0@@'); yourself); yourself]!
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   571
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   572
downRightIcon
778
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   573
    "Generated by the Image Editor"
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   574
    "
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   575
    ImageEditor openOnClass:self andSelector:#downRightIcon
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   576
    "
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   577
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   578
    <resource: #image>
778
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   579
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   580
    ^Icon
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   581
        constantNamed:#'ToolApplicationModel downRightIcon'
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   582
        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'); colorMap:((OrderedCollection new add:(Color white); add:(Color black); add:(Color red:0.0 green:49.9962 blue:0.0); add:(Color red:100.0 green:0.0 blue:0.0); yourself)); 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]!
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   583
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   584
fileOutIcon
778
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   585
    "Generated by the Image Editor"
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   586
    "
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   587
    ImageEditor openOnClass:self andSelector:#fileOutIcon
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   588
    "
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   589
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   590
    <resource: #image>
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   591
778
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   592
    ^Icon
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   593
        constantNamed:#'ToolApplicationModel fileOutIcon'
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   594
        ifAbsentPut:[(Depth2Image new) width: 24; height: 24; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@B@@@@@@@B @@@@@@*(@@@@@BB @@@@@BB@@@@@@B@@@@@@@B@@@@@@@B@@@@@@@B@@@@@@@B@@@@@@@@@@@@@@@@@@@@@@@@@@@@D@@AQDEADQAAADDADQA@AD@ADQAAQDEADQAAADDADQAAA@@@PAAAAEE@@DA'); colorMap:((OrderedCollection new add:(Color black); add:(Color white); add:(Color red:0.0 green:49.9962 blue:0.0); add:(Color red:100.0 green:0.0 blue:0.0); yourself)); mask:((Depth1Image new) width: 24; height: 24; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@@@@A@A.A%BDG2ADI%@$I@SDH@@@H@@@H@@@H@@@H@@@@@@@@@@@Z&KW_7_;[6_;[6_;_7_;[6_;[6L+I[@Q'); yourself); yourself]!
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   595
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   596
leftDownIcon
778
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   597
    "Generated by the Image Editor"
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   598
    "
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   599
    ImageEditor openOnClass:self andSelector:#leftDownIcon
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   600
    "
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   601
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   602
    <resource: #image>
778
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   603
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   604
    ^Icon
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   605
        constantNamed:#'ToolApplicationModel leftDownIcon'
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   606
        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'); colorMap:((OrderedCollection new add:(Color white); add:(Color black); add:(Color red:0.0 green:49.9962 blue:0.0); add:(Color red:100.0 green:0.0 blue:0.0); yourself)); 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]!
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   607
778
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   608
leftIcon
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   609
    "Generated by the Image Editor"
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   610
    "
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   611
    ImageEditor openOnClass:self andSelector:#leftIcon
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   612
    "
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   613
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   614
    <resource: #image>
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   615
778
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   616
    ^Icon
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   617
        constantNamed:#'ToolApplicationModel leftIcon'
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   618
        ifAbsentPut:[(Depth2Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'UUUUUUUPUUUUUUUPUUUUUUUPUUUUUUUPUUUUUUUPUTUUUUUPURUUUUUPUJUUUUUPT*P@@@@PR******PJ******PZ******PV******PU*UUUUUPUZUUUUUPUVUUUUUPUUUUUUUPUUUUUUUPUUUUUUUPUUUUUUUPUUUUUUUPUUUUUUUP'); colorMap:((OrderedCollection new add:(Color white); add:(Color black); add:(Color red:0.0 green:49.9962 blue:0.0); add:(Color red:100.0 green:0.0 blue:0.0); yourself)); 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]!
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   619
778
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   620
leftUpIcon
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   621
    "Generated by the Image Editor"
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   622
    "
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   623
    ImageEditor openOnClass:self andSelector:#leftUpIcon
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   624
    "
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   625
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   626
    <resource: #image>
772
6164c303afde enlarged (for cg) and redesigned (for all) icons
tz
parents: 769
diff changeset
   627
778
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   628
    ^Icon
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   629
        constantNamed:#'ToolApplicationModel leftUpIcon'
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   630
        ifAbsentPut:[(Depth2Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'UUUUUUUPUTUUUUUPUR%UUUUPUJ)UUUUPT**UUUUPR**%UUUPJ**)UUUP%Z)UUUUPUJ)UUUUPUJ)UUUUPUJ)UUUUPUJ)UUUUPUJ)UUUUPUJ)UUUUPUJ)UUUUPUJ)@@@@PUJ****)PUJ****)PUJ****)PUJ****)PUEUUUUUPUUUUUUUP'); colorMap:((OrderedCollection new add:(Color white); add:(Color black); add:(Color red:0.0 green:49.9962 blue:0.0); add:(Color red:100.0 green:0.0 blue:0.0); yourself)); mask:((Depth1Image new) width: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@A @@C0@@G8@@O<@@_>@@??@@??@@G8@@G8@@G8@@G8@@G8@@G8@@G8@@G??8G??8G??8G??8G??8G??8@@@@'); yourself); yourself]!
772
6164c303afde enlarged (for cg) and redesigned (for all) icons
tz
parents: 769
diff changeset
   631
778
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   632
loadIcon
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   633
    "Generated by the Image Editor"
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   634
    "
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   635
    ImageEditor openOnClass:self andSelector:#loadIcon
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   636
    "
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   637
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   638
    <resource: #image>
778
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   639
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   640
    ^Icon
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   641
        constantNamed:#'ToolApplicationModel loadIcon'
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   642
        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'); colorMap:(((Array new:4) at:1 put:((Color white)); at:2 put:((Color black)); at:3 put:((Color grey:49.9962)); at:4 put:((Color grey:66.9978)); yourself)); mask:((Depth1Image new) width: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@G@@@O G??8O??<O??<_??<???<???<???<???<???<_??<_??<_??<_??<_??<_??<O??<O??<O??<O??<O??<'); yourself); yourself]!
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   643
803
f6ca4eb5da39 help texts for the history added
tz
parents: 802
diff changeset
   644
menuIcon
f6ca4eb5da39 help texts for the history added
tz
parents: 802
diff changeset
   645
f6ca4eb5da39 help texts for the history added
tz
parents: 802
diff changeset
   646
    |menuIcon|
f6ca4eb5da39 help texts for the history added
tz
parents: 802
diff changeset
   647
    menuIcon := self stxIcon.
804
86883be6e643 no #magnifyBy: calls
tz
parents: 803
diff changeset
   648
    ^menuIcon magnifiedBy: MenuPanel defaultFont height/menuIcon height
803
f6ca4eb5da39 help texts for the history added
tz
parents: 802
diff changeset
   649
!
f6ca4eb5da39 help texts for the history added
tz
parents: 802
diff changeset
   650
778
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   651
newIcon
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:#newIcon
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   655
    "
756
4dba5a8797ec *** empty log message ***
tz
parents: 753
diff changeset
   656
4dba5a8797ec *** empty log message ***
tz
parents: 753
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 newIcon'
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   661
        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*****(@@@@@@@@@'); colorMap:(((Array new:4) at:1 put:((Color black)); at:2 put:((Color white)); at:3 put:((Color grey:49.9962)); at:4 put:((Color grey:66.9978)); yourself)); mask:((Depth1Image new) width: 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]!
756
4dba5a8797ec *** empty log message ***
tz
parents: 753
diff changeset
   662
778
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   663
removeIcon
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   664
    "Generated by the Image Editor"
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   665
    "
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   666
    ImageEditor openOnClass:self andSelector:#removeIcon
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   667
    "
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   668
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   669
    <resource: #image>
772
6164c303afde enlarged (for cg) and redesigned (for all) icons
tz
parents: 769
diff changeset
   670
778
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   671
    ^Icon
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   672
        constantNamed:#'ToolApplicationModel removeIcon'
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   673
        ifAbsentPut:[(Depth2Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@BUUUUP@@B/???2@@B+???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*???:(@B+???>(@B/????(@B*****(@@@@@@@@@'); colorMap:(((Array new:4) at:1 put:((Color black)); at:2 put:((Color white)); at:3 put:((Color grey:49.9962)); at:4 put:((Color grey:66.9978)); yourself)); mask:((Depth1Image new) width: 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]!
772
6164c303afde enlarged (for cg) and redesigned (for all) icons
tz
parents: 769
diff changeset
   674
778
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   675
rightIcon
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   676
    "Generated by the Image Editor"
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   677
    "
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   678
    ImageEditor openOnClass:self andSelector:#rightIcon
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   679
    "
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   680
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   681
    <resource: #image>
778
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   682
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   683
    ^Icon
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   684
        constantNamed:#'ToolApplicationModel rightIcon'
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   685
        ifAbsentPut:[(Depth2Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'UUUUUUUPUUUUUUUPUUUUUUUPUUUUUUUPUUUUUUUPUUUUUEUPUUUUUIUPUUUUUJUP@@@@@J%PJ*****)PJ******PJ******PJ*****)PEUUUUZ%PUUUUUJUPUUUUUIUPUUUUUEUPUUUUUUUPUUUUUUUPUUUUUUUPUUUUUUUPUUUUUUUP'); colorMap:((OrderedCollection new add:(Color white); add:(Color black); add:(Color red:0.0 green:49.9962 blue:0.0); add:(Color red:100.0 green:0.0 blue:0.0); yourself)); 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]!
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   686
778
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   687
saveIcon
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   688
    "Generated by the Image Editor"
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   689
    "
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   690
    ImageEditor openOnClass:self andSelector:#saveIcon
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   691
    "
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   692
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   693
    <resource: #image>
778
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   694
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   695
    ^Icon
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   696
        constantNamed:#'ToolApplicationModel saveIcon'
779
fef14d43d5e1 "self halt" forgotten
tz
parents: 778
diff changeset
   697
        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'); colorMap:(((Array new:4) at:1 put:((Color white)); at:2 put:((Color black)); at:3 put:((Color grey:49.9962)); at:4 put:((Color grey:66.9978)); yourself)); mask:((Depth1Image new) width: 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
   698
!
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   699
778
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   700
searchIcon
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   701
    "Generated by the Image Editor"
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   702
    "
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   703
    ImageEditor openOnClass:self andSelector:#searchIcon
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   704
    "
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   705
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   706
    <resource: #image>
762
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
   707
778
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   708
    ^Icon
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   709
        constantNamed:#'ToolApplicationModel searchIcon'
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   710
        ifAbsentPut:[(Depth2Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@@@@CV*@MZ(@@@@@@@@@CV*@MZ(@CV*@MZ(@CV*@MZ(@CV*@MZ(@CV*@MZ(@CV*@MZ(@CV*JMZ(@CV(@AZ(@CV(6!!Z(@CV(@AZ(@CV*@MZ(@@@@@@@@@@MZ 5Z@@@@@@@@@@@A(@A(@@@@@@@@@@@M*@M*@@@@@@@@@@'); colorMap:((OrderedCollection new add:(Color black); add:(Color grey:74.5083); add:(Color grey:49.9962); add:(Color white); yourself)); mask:((Depth1Image new) width: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@_<?8_<?8_<?8_<?8_<?8_<?8_<?8_<?8_??8_??8_??8_??8_??8_??8_??8G?? G?? C8_@C8_@G<? G<? '); yourself); yourself]!
762
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
   711
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   712
startIcon
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   713
    "Generated by the Image Editor"
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   714
    "
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   715
    ImageEditor openOnClass:self andSelector:#startIcon
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   716
    "
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   717
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   718
    <resource: #image>
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   719
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   720
    ^Icon
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   721
        constantNamed:#'ToolApplicationModel startIcon'
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   722
        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'); colorMap:((OrderedCollection new add:(Color black); add:(Color white); add:(Color red:100.0 green:0.0 blue:0.0); add:(Color red:0.0 green:100.0 blue:0.0); add:(Color red:0.0 green:0.0 blue:100.0); add:(Color red:0.0 green:100.0 blue:100.0); add:(Color red:100.0 green:100.0 blue:0.0); add:(Color red:100.0 green:0.0 blue:100.0); add:(Color red:49.9962 green:0.0 blue:0.0); add:(Color red:0.0 green:49.9962 blue:0.0); add:(Color red:0.0 green:0.0 blue:49.9962); add:(Color red:0.0 green:49.9962 blue:49.9962); add:(Color red:49.9962 green:49.9962 blue:0.0); add:(Color red:49.9962 green:0.0 blue:49.9962); add:(Color grey:49.9962); add:(Color grey:66.9978); yourself)); mask:((Depth1Image new) width: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@C@D@G D@G?<@G N@G N@G N@G?.@G N@G _@G _@G?_@G _@G _@G _@G?_@G ? G!!?0G!!?0G!!.PKQNPT(_@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@a'); yourself); yourself]
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   723
!
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   724
778
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   725
stxIcon
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   726
    "Generated by the Image Editor"
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   727
    "
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   728
    ImageEditor openOnClass:self andSelector:#stxIcon
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   729
    "
772
6164c303afde enlarged (for cg) and redesigned (for all) icons
tz
parents: 769
diff changeset
   730
6164c303afde enlarged (for cg) and redesigned (for all) icons
tz
parents: 769
diff changeset
   731
    <resource: #image>
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   732
778
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   733
    ^Icon
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   734
        constantNamed:#'ToolApplicationModel stxIcon'
803
f6ca4eb5da39 help texts for the history added
tz
parents: 802
diff changeset
   735
        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@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@'); colorMap:((OrderedCollection new add:(Color grey:9.99924); add:(Color red:0.0 green:80.0 blue:20.0); add:(Color black); add:(Color white); yourself)); yourself]
f6ca4eb5da39 help texts for the history added
tz
parents: 802
diff changeset
   736
!
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   737
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   738
upIcon
778
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   739
    "Generated by the Image Editor"
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   740
    "
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   741
    ImageEditor openOnClass:self andSelector:#upIcon
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   742
    "
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   743
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   744
    <resource: #image>
778
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   745
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   746
    ^Icon
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   747
        constantNamed:#'ToolApplicationModel upIcon'
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   748
        ifAbsentPut:[(Depth2Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'UUUQUUUPUUUJUUUPUUT*%UUPUUR*)UUPUUJ**UUPUT***%UPUTV*%UUPUUT*%UUPUUT*%UUPUUT*%UUPUUT*%UUPUUT*%UUPUUT*%UUPUUT*%UUPUUT*%UUPUUT*%UUPUUT*%UUPUUT*%UUPUUT*%UUPUUT*%UUPUUT*%UUPUUTUUUUP'); colorMap:((OrderedCollection new add:(Color white); add:(Color black); add:(Color red:0.0 green:49.9962 blue:0.0); add:(Color red:100.0 green:0.0 blue:0.0); yourself)); 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]!
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   749
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   750
upRightIcon
778
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   751
    "Generated by the Image Editor"
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   752
    "
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   753
    ImageEditor openOnClass:self andSelector:#upRightIcon
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   754
    "
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   755
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   756
    <resource: #image>
778
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   757
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   758
    ^Icon
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   759
        constantNamed:#'ToolApplicationModel upRightIcon'
251895a3f266 new icon method format applied
tz
parents: 776
diff changeset
   760
        ifAbsentPut:[(Depth2Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'UUUUTUUPUUUUT%UPUUUUT)UPP@@@@*UPR*****%PR*****)PR*****)PR*****%PR*UUU*UPR*UUT)UPR*UUT%UPR*UUTUUPR*UUUUUPR*UUUUUPR*UUUUUPR*UUUUUPR*UUUUUPR*UUUUUPR*UUUUUPR*UUUUUPQUUUUUUPUUUUUUUP'); colorMap:((OrderedCollection new add:(Color white); add:(Color black); add:(Color red:0.0 green:49.9962 blue:0.0); add:(Color red:100.0 green:0.0 blue:0.0); yourself)); 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]! !
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   761
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   762
!ToolApplicationModel class methodsFor:'startup / release'!
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   763
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   764
preSnapshot
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   765
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   766
    clipboard := nil
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   767
   
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   768
!
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   769
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   770
uninitialize
760
26cf45040420 #preferredExtent cleaned
tz
parents: 758
diff changeset
   771
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   772
    showHelp := history := clipboard := nil
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   773
! !
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   774
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   775
!ToolApplicationModel methodsFor:'aspects'!
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   776
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   777
valueOfEnablingCommitButtons
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   778
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   779
    |holder|
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   780
    (holder := builder bindingAt:#valueOfEnablingCommitButtons) isNil ifTrue:[
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   781
        builder aspectAt:#valueOfEnablingCommitButtons put:(holder :=  false asValue).
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   782
    ].
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   783
    ^ holder
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   784
782
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
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   787
valueOfHavingClipboard
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   788
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   789
    |holder|
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   790
    (holder := builder bindingAt:#valueOfHavingClipboard) isNil ifTrue:[
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   791
        builder aspectAt:#valueOfHavingClipboard put:(holder :=  self class clipboard notNil asValue).
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   792
    ].
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   793
    ^ holder
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   794
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   795
!
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   796
803
f6ca4eb5da39 help texts for the history added
tz
parents: 802
diff changeset
   797
valueOfHavingTutorial
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
    |holder|
f6ca4eb5da39 help texts for the history added
tz
parents: 802
diff changeset
   800
    (holder := builder bindingAt:#valueOfHavingTutorial) isNil ifTrue:[
820
d01d777e2bb3 info bars redesigned
tz
parents: 805
diff changeset
   801
        builder aspectAt:#valueOfHavingTutorial put:(holder :=  (self class implements: #openTutorial) asValue).
803
f6ca4eb5da39 help texts for the history added
tz
parents: 802
diff changeset
   802
    ].
f6ca4eb5da39 help texts for the history added
tz
parents: 802
diff changeset
   803
    ^ holder
f6ca4eb5da39 help texts for the history added
tz
parents: 802
diff changeset
   804
f6ca4eb5da39 help texts for the history added
tz
parents: 802
diff changeset
   805
!
f6ca4eb5da39 help texts for the history added
tz
parents: 802
diff changeset
   806
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   807
valueOfInfoLabel
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   808
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   809
    |holder|
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   810
    (holder := builder bindingAt:#valueOfInfoLabel) isNil ifTrue:[
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   811
        builder aspectAt:#valueOfInfoLabel put:(holder :=  ValueHolder new).
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   812
    ].
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   813
    ^ holder
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   814
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   815
!
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   816
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   817
valueOfTimeLabel
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   818
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   819
    |holder|
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   820
    (holder := builder bindingAt:#valueOfTimeLabel) isNil ifTrue:[
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   821
        builder aspectAt:#valueOfTimeLabel put:(holder :=  ValueHolder new).
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   822
    ].
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   823
    ^ holder
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   824
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   825
! !
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   826
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   827
!ToolApplicationModel methodsFor:'clipboard'!
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   828
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   829
clipboard: anEditObject
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   830
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   831
    self class clipboard: anEditObject.
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   832
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   833
    self valueOfHavingClipboard value: anEditObject notNil
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   834
! !
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   835
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   836
!ToolApplicationModel methodsFor:'help'!
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   837
762
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
   838
defaultInfoLabel
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
   839
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
   840
    ^''
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
   841
!
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
   842
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   843
openAbout
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   844
    "show an about box"
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   845
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   846
    |box|
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   847
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   848
    box := AboutBox new.
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   849
    box autoHideAfter:10 with:[].
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   850
    box showAtCenter
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   851
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   852
!
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   853
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   854
openAboutThisApplication
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   855
    "show an about this application box"
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   856
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   857
    |rev box|
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   858
    rev := ''.
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   859
    self class revision notNil ifTrue: [rev := '  (rev: ', self class revision printString, ')'].
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   860
    box := AboutBox title:
800
b98050cf7a43 better author extraction.
Claus Gittinger <cg@exept.de>
parents: 799
diff changeset
   861
        '\The application\\' withCRs
b98050cf7a43 better author extraction.
Claus Gittinger <cg@exept.de>
parents: 799
diff changeset
   862
        , (Text string: self class name emphasis: #bold), rev
b98050cf7a43 better author extraction.
Claus Gittinger <cg@exept.de>
parents: 799
diff changeset
   863
        , '\\has been designed and implemented by \' withCRs
b98050cf7a43 better author extraction.
Claus Gittinger <cg@exept.de>
parents: 799
diff changeset
   864
        , ((self class authorLinesForAboutBox collect:[:l | '  ' , l]) asStringWith:$\) withCRs
b98050cf7a43 better author extraction.
Claus Gittinger <cg@exept.de>
parents: 799
diff changeset
   865
        , '\\' withCRs.
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   866
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   867
     box   label:'About This Application'.
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   868
     box   autoHideAfter:10 with:[].
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   869
     box   showAtCenter.
800
b98050cf7a43 better author extraction.
Claus Gittinger <cg@exept.de>
parents: 799
diff changeset
   870
b98050cf7a43 better author extraction.
Claus Gittinger <cg@exept.de>
parents: 799
diff changeset
   871
    "Modified: / 1.2.1998 / 15:59:58 / cg"
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   872
!
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   873
803
f6ca4eb5da39 help texts for the history added
tz
parents: 802
diff changeset
   874
openTutorial
f6ca4eb5da39 help texts for the history added
tz
parents: 802
diff changeset
   875
f6ca4eb5da39 help texts for the history added
tz
parents: 802
diff changeset
   876
    self openTutorial: 'doc/online/english/getstart/tutorial.html'
f6ca4eb5da39 help texts for the history added
tz
parents: 802
diff changeset
   877
!
f6ca4eb5da39 help texts for the history added
tz
parents: 802
diff changeset
   878
f6ca4eb5da39 help texts for the history added
tz
parents: 802
diff changeset
   879
openTutorial: aHTMLFilename
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   880
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   881
    |dir|
803
f6ca4eb5da39 help texts for the history added
tz
parents: 802
diff changeset
   882
    ((dir := Smalltalk getSystemFileName: aHTMLFilename) asFilename exists)
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   883
    ifTrue:
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   884
    [
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   885
        ^HTMLDocumentView openFullOnFile: dir
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   886
    ]
762
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
   887
!
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
   888
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   889
showHelp
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   890
    "Answer whether showing help is turned on/off"
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   891
783
4e1545900244 show help corrections
tz
parents: 782
diff changeset
   892
    |currentActiveHelp|
4e1545900244 show help corrections
tz
parents: 782
diff changeset
   893
    currentActiveHelp := ActiveHelp currentHelpListener.
4e1545900244 show help corrections
tz
parents: 782
diff changeset
   894
4e1545900244 show help corrections
tz
parents: 782
diff changeset
   895
    ^self class showHelp 
4e1545900244 show help corrections
tz
parents: 782
diff changeset
   896
        and: [currentActiveHelp notNil and: [currentActiveHelp interestedIn: self builder window]]
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   897
!
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   898
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   899
showHelp: aValue
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   900
    "toggle showing help"
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   901
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   902
    (self class showHelp: aValue)
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   903
        ifTrue: [ActiveHelp startFor: self]
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   904
        ifFalse: [ActiveHelp stopFor: self. self valueOfInfoLabel value: self defaultInfoLabel]
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   905
!
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   906
762
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
   907
showHelp:aHelpText for:view
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
   908
    "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
   909
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   910
    self showHelp ifFalse: [^true].
762
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
   911
    self masterApplication notNil
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
   912
    ifTrue:
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
   913
    [
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
   914
        ^masterApplication showHelp: aHelpText for:view
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
   915
    ]
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
   916
    ifFalse:
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
   917
    [
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
   918
        aHelpText isNil 
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
   919
            ifTrue:  [self valueOfInfoLabel value: self defaultInfoLabel] 
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
   920
            ifFalse: [self valueOfInfoLabel value: (aHelpText asString printString upTo: Character cr)].
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
   921
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
   922
        ^true
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
! !
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
   925
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   926
!ToolApplicationModel methodsFor:'history'!
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   927
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   928
addToHistory: aHistoryEntry
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   929
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   930
    aHistoryEntry key size = 0 ifTrue: [^nil].
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   931
    self history remove: (self history detect: [:histEntry| histEntry key = aHistoryEntry key] ifNone: nil) ifAbsent: nil.
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   932
    self history addFirst: aHistoryEntry.
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   933
    [self history size > self class historyMaxSize] whileTrue: [self history removeLast]
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   934
!
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   935
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   936
emptyHistory
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   937
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   938
    ^self history removeAll
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   939
!
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   940
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   941
history
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   942
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   943
    ^self class getHistory
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   944
!
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   945
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   946
menuHistory
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   947
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   948
    |menu a|
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   949
    menu := Menu new receiver: self.
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   950
    (self history collect: [:histEntry| histEntry value]) asSet asOrderedCollection do:
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   951
    [:historyEntryType|    
803
f6ca4eb5da39 help texts for the history added
tz
parents: 802
diff changeset
   952
        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
   953
    ]. 
803
f6ca4eb5da39 help texts for the history added
tz
parents: 802
diff changeset
   954
    menu addItem: (MenuItem new label: 'Empty History'; value: #emptyHistory; activeHelpKey: #historyEmptyMenu).
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   955
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   956
    ^menu
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   957
!
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   958
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   959
removeFromHistory: aHistoryEntry
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   960
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   961
    self history remove: (self history detect: [:histEntry| histEntry key = aHistoryEntry key] ifNone: nil) ifAbsent: nil.
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   962
    [self history size > self class historyMaxSize] whileTrue: [self history removeLast]
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   963
! !
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   964
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   965
!ToolApplicationModel methodsFor:'queries'!
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   966
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   967
preferredExtent
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   968
    "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
   969
     will be considered"
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   970
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   971
    |window menu menuToolbarView preferredExtentOfWindow|
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   972
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   973
    window          := self builder window. 
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   974
    menu            := window subViews first.
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   975
    menuToolbarView := builder componentAt: #menuToolbarView.
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   976
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   977
    preferredExtentOfWindow := window extent.
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   978
    menu class = MenuPanel ifTrue: [preferredExtentOfWindow := preferredExtentOfWindow max: menu preferredExtent].
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   979
    menuToolbarView notNil ifTrue: [preferredExtentOfWindow := preferredExtentOfWindow max: menuToolbarView preferredExtent].
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   980
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   981
    ^window minExtent max: (preferredExtentOfWindow min: window maxExtent)
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   982
! !
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   983
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   984
!ToolApplicationModel methodsFor:'startup / release'!
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   985
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   986
close
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   987
756
4dba5a8797ec *** empty log message ***
tz
parents: 753
diff changeset
   988
    self uninitialize.
4dba5a8797ec *** empty log message ***
tz
parents: 753
diff changeset
   989
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   990
    super close
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   991
!
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   992
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   993
closeRequest
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   994
756
4dba5a8797ec *** empty log message ***
tz
parents: 753
diff changeset
   995
    self uninitialize.
4dba5a8797ec *** empty log message ***
tz
parents: 753
diff changeset
   996
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   997
    super closeRequest
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   998
!
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   999
791
a3269fe103eb *** empty log message ***
tz
parents: 790
diff changeset
  1000
openInterface:aSymbol
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1001
791
a3269fe103eb *** empty log message ***
tz
parents: 790
diff changeset
  1002
    self allButOpenInterface:aSymbol.
802
c863da8d04d3 some cleans
tz
parents: 800
diff changeset
  1003
c863da8d04d3 some cleans
tz
parents: 800
diff changeset
  1004
    builder window extent: self preferredExtent.
c863da8d04d3 some cleans
tz
parents: 800
diff changeset
  1005
    builder window label: self class label.
791
a3269fe103eb *** empty log message ***
tz
parents: 790
diff changeset
  1006
    self openWindow.
802
c863da8d04d3 some cleans
tz
parents: 800
diff changeset
  1007
791
a3269fe103eb *** empty log message ***
tz
parents: 790
diff changeset
  1008
    ^builder
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1009
!
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1010
790
648fac120039 time clock runs now correctly
tz
parents: 784
diff changeset
  1011
postOpenWith:aBuilder
648fac120039 time clock runs now correctly
tz
parents: 784
diff changeset
  1012
648fac120039 time clock runs now correctly
tz
parents: 784
diff changeset
  1013
    super postOpenWith:aBuilder.
648fac120039 time clock runs now correctly
tz
parents: 784
diff changeset
  1014
648fac120039 time clock runs now correctly
tz
parents: 784
diff changeset
  1015
    timeBlock := [self showTime].
791
a3269fe103eb *** empty log message ***
tz
parents: 790
diff changeset
  1016
    self showTime.
a3269fe103eb *** empty log message ***
tz
parents: 790
diff changeset
  1017
    self class showHelp ifTrue: [ActiveHelp startFor: self].
a3269fe103eb *** empty log message ***
tz
parents: 790
diff changeset
  1018
    self valueOfInfoLabel value: self defaultInfoLabel.
790
648fac120039 time clock runs now correctly
tz
parents: 784
diff changeset
  1019
!
648fac120039 time clock runs now correctly
tz
parents: 784
diff changeset
  1020
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1021
reOpen
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1022
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1023
    self close.
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1024
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1025
    self class open
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1026
!
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1027
760
26cf45040420 #preferredExtent cleaned
tz
parents: 758
diff changeset
  1028
removeAllTemporalViews
26cf45040420 #preferredExtent cleaned
tz
parents: 758
diff changeset
  1029
26cf45040420 #preferredExtent cleaned
tz
parents: 758
diff changeset
  1030
    self builder namedComponents keys copy do: 
26cf45040420 #preferredExtent cleaned
tz
parents: 758
diff changeset
  1031
    [:comp| 
26cf45040420 #preferredExtent cleaned
tz
parents: 758
diff changeset
  1032
        (comp includesString: '_Temporal') ifTrue: [self builder namedComponents removeKey: comp]
26cf45040420 #preferredExtent cleaned
tz
parents: 758
diff changeset
  1033
    ]
26cf45040420 #preferredExtent cleaned
tz
parents: 758
diff changeset
  1034
!
26cf45040420 #preferredExtent cleaned
tz
parents: 758
diff changeset
  1035
756
4dba5a8797ec *** empty log message ***
tz
parents: 753
diff changeset
  1036
uninitialize
4dba5a8797ec *** empty log message ***
tz
parents: 753
diff changeset
  1037
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
  1038
    self showHelp ifTrue: [ActiveHelp stopFor: self].
756
4dba5a8797ec *** empty log message ***
tz
parents: 753
diff changeset
  1039
    Processor removeTimedBlock:timeBlock.
4dba5a8797ec *** empty log message ***
tz
parents: 753
diff changeset
  1040
    timeBlock := nil.
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1041
! !
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1042
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1043
!ToolApplicationModel methodsFor:'window events'!
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1044
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1045
showTime
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1046
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1047
    |hours minutes suffix|
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1048
    suffix := ' am '.  
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1049
    (hours := Time now hours) > 12 ifTrue: [hours := hours - 12].
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1050
    Time now hours >= 12 ifTrue: [suffix := ' pm '].
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1051
    (minutes := Time now minutes printString) size = 1 ifTrue: [minutes := '0', minutes printString].
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1052
    self valueOfTimeLabel value: hours printString, ':', minutes, suffix.
790
648fac120039 time clock runs now correctly
tz
parents: 784
diff changeset
  1053
    Processor removeTimedBlock: timeBlock.
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1054
    Processor addTimedBlock: timeBlock afterSeconds: 1
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1055
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1056
! !
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1057
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1058
!ToolApplicationModel class methodsFor:'documentation'!
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1059
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1060
version
820
d01d777e2bb3 info bars redesigned
tz
parents: 805
diff changeset
  1061
    ^ '$Header: /cvs/stx/stx/libview2/ToolApplicationModel.st,v 1.32 1998-02-03 21:11:19 tz Exp $'
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1062
! !