ToolApplicationModel.st
author Claus Gittinger <cg@exept.de>
Thu, 18 Jan 2001 16:39:12 +0100
changeset 1458 43c22152a2f5
parent 1427 b3e355574ccf
child 1471 50775b15e283
permissions -rw-r--r--
accept autoAccept (RETURN) if no input field widget is present
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
1391
383411d95966 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
    15
"{ Package: 'stx:libview2' }"
383411d95966 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
    16
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
    17
ApplicationModel subclass:#ToolApplicationModel
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
    18
	instanceVariableNames:'timeBlock'
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
    19
	classVariableNames:''
9c837d99f109 intitial checkin
tz
parents:
diff changeset
    20
	poolDictionaries:''
834
ac1655bd31bb class category changed
tz
parents: 833
diff changeset
    21
	category:'Interface-Framework'
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
    22
!
9c837d99f109 intitial checkin
tz
parents:
diff changeset
    23
1089
49b05d386ccc removed Thomas's memory leak
Claus Gittinger <cg@exept.de>
parents: 1084
diff changeset
    24
ToolApplicationModel class instanceVariableNames:'history clipboard settings showingHelp instances'
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
    25
9c837d99f109 intitial checkin
tz
parents:
diff changeset
    26
"
9c837d99f109 intitial checkin
tz
parents:
diff changeset
    27
 The following class instance variables are inherited by this class:
9c837d99f109 intitial checkin
tz
parents:
diff changeset
    28
9c837d99f109 intitial checkin
tz
parents:
diff changeset
    29
	ApplicationModel - ClassResources
9c837d99f109 intitial checkin
tz
parents:
diff changeset
    30
	Model - 
9c837d99f109 intitial checkin
tz
parents:
diff changeset
    31
	Object - 
9c837d99f109 intitial checkin
tz
parents:
diff changeset
    32
"
9c837d99f109 intitial checkin
tz
parents:
diff changeset
    33
!
9c837d99f109 intitial checkin
tz
parents:
diff changeset
    34
9c837d99f109 intitial checkin
tz
parents:
diff changeset
    35
!ToolApplicationModel class methodsFor:'documentation'!
9c837d99f109 intitial checkin
tz
parents:
diff changeset
    36
756
4dba5a8797ec *** empty log message ***
tz
parents: 753
diff changeset
    37
copyright
4dba5a8797ec *** empty log message ***
tz
parents: 753
diff changeset
    38
"
784
b08b05900f30 copyright changed
tz
parents: 783
diff changeset
    39
 COPYRIGHT (c) 1997 by eXept Software AG
756
4dba5a8797ec *** empty log message ***
tz
parents: 753
diff changeset
    40
              All Rights Reserved
4dba5a8797ec *** empty log message ***
tz
parents: 753
diff changeset
    41
4dba5a8797ec *** empty log message ***
tz
parents: 753
diff changeset
    42
 This software is furnished under a license and may be used
4dba5a8797ec *** empty log message ***
tz
parents: 753
diff changeset
    43
 only in accordance with the terms of that license and with the
4dba5a8797ec *** empty log message ***
tz
parents: 753
diff changeset
    44
 inclusion of the above copyright notice. This software may not
4dba5a8797ec *** empty log message ***
tz
parents: 753
diff changeset
    45
 be provided or otherwise made available to, or used by, any
4dba5a8797ec *** empty log message ***
tz
parents: 753
diff changeset
    46
 other person. No title to or ownership of the software is
4dba5a8797ec *** empty log message ***
tz
parents: 753
diff changeset
    47
 hereby transferred.
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
4dba5a8797ec *** empty log message ***
tz
parents: 753
diff changeset
    51
!
4dba5a8797ec *** empty log message ***
tz
parents: 753
diff changeset
    52
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
    53
documentation
9c837d99f109 intitial checkin
tz
parents:
diff changeset
    54
"
1200
a86be4f3fd69 added clearModifiedFlag
Claus Gittinger <cg@exept.de>
parents: 1195
diff changeset
    55
    Framework class for tool applications (UIPainter, MenuEditor etc.).
a86be4f3fd69 added clearModifiedFlag
Claus Gittinger <cg@exept.de>
parents: 1195
diff changeset
    56
    Provides hooks for modifiedChannels, history management,
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
    57
    showing help texts, about menu, help menu etc.
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
    58
9c837d99f109 intitial checkin
tz
parents:
diff changeset
    59
    [author:]
876
585929b1fec2 some cleans
tz
parents: 872
diff changeset
    60
        Thomas Zwick, eXept Software AG
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
    61
"
9c837d99f109 intitial checkin
tz
parents:
diff changeset
    62
! !
9c837d99f109 intitial checkin
tz
parents:
diff changeset
    63
9c837d99f109 intitial checkin
tz
parents:
diff changeset
    64
!ToolApplicationModel class methodsFor:'accessing'!
9c837d99f109 intitial checkin
tz
parents:
diff changeset
    65
1150
5211197a2671 NEVER - redefine allInstances
Claus Gittinger <cg@exept.de>
parents: 1148
diff changeset
    66
allToolInstances
1089
49b05d386ccc removed Thomas's memory leak
Claus Gittinger <cg@exept.de>
parents: 1084
diff changeset
    67
    ^ instances ? #()
49b05d386ccc removed Thomas's memory leak
Claus Gittinger <cg@exept.de>
parents: 1084
diff changeset
    68
49b05d386ccc removed Thomas's memory leak
Claus Gittinger <cg@exept.de>
parents: 1084
diff changeset
    69
    "Created: / 4.2.1999 / 15:34:55 / cg"
49b05d386ccc removed Thomas's memory leak
Claus Gittinger <cg@exept.de>
parents: 1084
diff changeset
    70
!
49b05d386ccc removed Thomas's memory leak
Claus Gittinger <cg@exept.de>
parents: 1084
diff changeset
    71
800
b98050cf7a43 better author extraction.
Claus Gittinger <cg@exept.de>
parents: 799
diff changeset
    72
authorLinesForAboutBox
907
f4087882555a method comments added
tz
parents: 893
diff changeset
    73
    "extracts the author(s) from the documentation method."
800
b98050cf7a43 better author extraction.
Claus Gittinger <cg@exept.de>
parents: 799
diff changeset
    74
b98050cf7a43 better author extraction.
Claus Gittinger <cg@exept.de>
parents: 799
diff changeset
    75
    |firstClassWithDocumentation src s line lines|
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
    76
800
b98050cf7a43 better author extraction.
Claus Gittinger <cg@exept.de>
parents: 799
diff changeset
    77
    firstClassWithDocumentation := self class withAllSuperclasses detect:[:metacls| metacls implements:#documentation].
b98050cf7a43 better author extraction.
Claus Gittinger <cg@exept.de>
parents: 799
diff changeset
    78
    firstClassWithDocumentation notNil ifTrue:[
b98050cf7a43 better author extraction.
Claus Gittinger <cg@exept.de>
parents: 799
diff changeset
    79
        (firstClassWithDocumentation inheritsFrom:ToolApplicationModel class) ifTrue:[
b98050cf7a43 better author extraction.
Claus Gittinger <cg@exept.de>
parents: 799
diff changeset
    80
            src := (firstClassWithDocumentation compiledMethodAt:#documentation) source.
b98050cf7a43 better author extraction.
Claus Gittinger <cg@exept.de>
parents: 799
diff changeset
    81
            src notNil ifTrue:[
b98050cf7a43 better author extraction.
Claus Gittinger <cg@exept.de>
parents: 799
diff changeset
    82
                s := src readStream.
b98050cf7a43 better author extraction.
Claus Gittinger <cg@exept.de>
parents: 799
diff changeset
    83
                s upToAll:'[author:]'.
b98050cf7a43 better author extraction.
Claus Gittinger <cg@exept.de>
parents: 799
diff changeset
    84
                s nextLine.   "/ skip to end
b98050cf7a43 better author extraction.
Claus Gittinger <cg@exept.de>
parents: 799
diff changeset
    85
                line := s nextLine.   "/ line after [author:]
b98050cf7a43 better author extraction.
Claus Gittinger <cg@exept.de>
parents: 799
diff changeset
    86
                lines := OrderedCollection new.
b98050cf7a43 better author extraction.
Claus Gittinger <cg@exept.de>
parents: 799
diff changeset
    87
                [line notNil and:[line notEmpty]] whileTrue:[
b98050cf7a43 better author extraction.
Claus Gittinger <cg@exept.de>
parents: 799
diff changeset
    88
                    line := line trimBlanks.
b98050cf7a43 better author extraction.
Claus Gittinger <cg@exept.de>
parents: 799
diff changeset
    89
                    line size > 1 ifTrue:[
b98050cf7a43 better author extraction.
Claus Gittinger <cg@exept.de>
parents: 799
diff changeset
    90
                        lines add:line trimBlanks.
b98050cf7a43 better author extraction.
Claus Gittinger <cg@exept.de>
parents: 799
diff changeset
    91
                        line := s nextLine.
b98050cf7a43 better author extraction.
Claus Gittinger <cg@exept.de>
parents: 799
diff changeset
    92
                    ] ifFalse:[
b98050cf7a43 better author extraction.
Claus Gittinger <cg@exept.de>
parents: 799
diff changeset
    93
                        line := nil
b98050cf7a43 better author extraction.
Claus Gittinger <cg@exept.de>
parents: 799
diff changeset
    94
                    ]
b98050cf7a43 better author extraction.
Claus Gittinger <cg@exept.de>
parents: 799
diff changeset
    95
                ].
b98050cf7a43 better author extraction.
Claus Gittinger <cg@exept.de>
parents: 799
diff changeset
    96
                ^ lines.
b98050cf7a43 better author extraction.
Claus Gittinger <cg@exept.de>
parents: 799
diff changeset
    97
            ]
b98050cf7a43 better author extraction.
Claus Gittinger <cg@exept.de>
parents: 799
diff changeset
    98
        ]
b98050cf7a43 better author extraction.
Claus Gittinger <cg@exept.de>
parents: 799
diff changeset
    99
    ].
b98050cf7a43 better author extraction.
Claus Gittinger <cg@exept.de>
parents: 799
diff changeset
   100
    ^ #('unnown')
b98050cf7a43 better author extraction.
Claus Gittinger <cg@exept.de>
parents: 799
diff changeset
   101
b98050cf7a43 better author extraction.
Claus Gittinger <cg@exept.de>
parents: 799
diff changeset
   102
    "Created: / 1.2.1998 / 15:41:43 / cg"
b98050cf7a43 better author extraction.
Claus Gittinger <cg@exept.de>
parents: 799
diff changeset
   103
    "Modified: / 1.2.1998 / 15:59:10 / cg"
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   104
!
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   105
1089
49b05d386ccc removed Thomas's memory leak
Claus Gittinger <cg@exept.de>
parents: 1084
diff changeset
   106
forgetInstance:anInstance
49b05d386ccc removed Thomas's memory leak
Claus Gittinger <cg@exept.de>
parents: 1084
diff changeset
   107
    instances remove:anInstance.
49b05d386ccc removed Thomas's memory leak
Claus Gittinger <cg@exept.de>
parents: 1084
diff changeset
   108
    instances isEmpty ifTrue:[instances := nil].
49b05d386ccc removed Thomas's memory leak
Claus Gittinger <cg@exept.de>
parents: 1084
diff changeset
   109
49b05d386ccc removed Thomas's memory leak
Claus Gittinger <cg@exept.de>
parents: 1084
diff changeset
   110
    "Modified: / 4.2.1999 / 15:38:49 / cg"
49b05d386ccc removed Thomas's memory leak
Claus Gittinger <cg@exept.de>
parents: 1084
diff changeset
   111
!
49b05d386ccc removed Thomas's memory leak
Claus Gittinger <cg@exept.de>
parents: 1084
diff changeset
   112
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   113
label
1018
7222534cb3dc part of the activeHelp framework moved to ApplicationModel.
Claus Gittinger <cg@exept.de>
parents: 1016
diff changeset
   114
    "returns the label for the tool instances of this class;
907
f4087882555a method comments added
tz
parents: 893
diff changeset
   115
     extracted from the class name;
f4087882555a method comments added
tz
parents: 893
diff changeset
   116
     can be redefined in subclasses"
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   117
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   118
    |label|
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   119
    label := ''.
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   120
    self name do:
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   121
    [:c|
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   122
        c isUppercase ifTrue: [label := label, $ ].
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   123
        label := label, c
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   124
    ].
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   125
    ^label trimBlanks
1018
7222534cb3dc part of the activeHelp framework moved to ApplicationModel.
Claus Gittinger <cg@exept.de>
parents: 1016
diff changeset
   126
7222534cb3dc part of the activeHelp framework moved to ApplicationModel.
Claus Gittinger <cg@exept.de>
parents: 1016
diff changeset
   127
    "Modified: / 31.7.1998 / 18:04:18 / cg"
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   128
!
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   129
1089
49b05d386ccc removed Thomas's memory leak
Claus Gittinger <cg@exept.de>
parents: 1084
diff changeset
   130
rememberInstance:anInstance
49b05d386ccc removed Thomas's memory leak
Claus Gittinger <cg@exept.de>
parents: 1084
diff changeset
   131
    instances isNil ifTrue:[
49b05d386ccc removed Thomas's memory leak
Claus Gittinger <cg@exept.de>
parents: 1084
diff changeset
   132
        instances := WeakIdentitySet new
49b05d386ccc removed Thomas's memory leak
Claus Gittinger <cg@exept.de>
parents: 1084
diff changeset
   133
    ].
49b05d386ccc removed Thomas's memory leak
Claus Gittinger <cg@exept.de>
parents: 1084
diff changeset
   134
    instances add:anInstance
49b05d386ccc removed Thomas's memory leak
Claus Gittinger <cg@exept.de>
parents: 1084
diff changeset
   135
49b05d386ccc removed Thomas's memory leak
Claus Gittinger <cg@exept.de>
parents: 1084
diff changeset
   136
    "Created: / 4.2.1999 / 15:33:43 / cg"
49b05d386ccc removed Thomas's memory leak
Claus Gittinger <cg@exept.de>
parents: 1084
diff changeset
   137
    "Modified: / 4.2.1999 / 15:34:14 / cg"
49b05d386ccc removed Thomas's memory leak
Claus Gittinger <cg@exept.de>
parents: 1084
diff changeset
   138
!
49b05d386ccc removed Thomas's memory leak
Claus Gittinger <cg@exept.de>
parents: 1084
diff changeset
   139
850
cdf5ecf904e2 some obselete icons removed
tz
parents: 846
diff changeset
   140
settings
907
f4087882555a method comments added
tz
parents: 893
diff changeset
   141
    "returns the settings dictionary"
850
cdf5ecf904e2 some obselete icons removed
tz
parents: 846
diff changeset
   142
872
a1606dcbd38b better font setting routines
tz
parents: 871
diff changeset
   143
    settings isNil ifTrue: [settings := IdentityDictionary new].
a1606dcbd38b better font setting routines
tz
parents: 871
diff changeset
   144
    ^settings
850
cdf5ecf904e2 some obselete icons removed
tz
parents: 846
diff changeset
   145
!
cdf5ecf904e2 some obselete icons removed
tz
parents: 846
diff changeset
   146
1018
7222534cb3dc part of the activeHelp framework moved to ApplicationModel.
Claus Gittinger <cg@exept.de>
parents: 1016
diff changeset
   147
showingHelp
7222534cb3dc part of the activeHelp framework moved to ApplicationModel.
Claus Gittinger <cg@exept.de>
parents: 1016
diff changeset
   148
    "returns true if active help is turned on for instances of this class"
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   149
1018
7222534cb3dc part of the activeHelp framework moved to ApplicationModel.
Claus Gittinger <cg@exept.de>
parents: 1016
diff changeset
   150
    showingHelp isNil ifTrue: [showingHelp := true].
7222534cb3dc part of the activeHelp framework moved to ApplicationModel.
Claus Gittinger <cg@exept.de>
parents: 1016
diff changeset
   151
    ^showingHelp
7222534cb3dc part of the activeHelp framework moved to ApplicationModel.
Claus Gittinger <cg@exept.de>
parents: 1016
diff changeset
   152
7222534cb3dc part of the activeHelp framework moved to ApplicationModel.
Claus Gittinger <cg@exept.de>
parents: 1016
diff changeset
   153
    "Created: / 31.7.1998 / 18:03:38 / cg"
7222534cb3dc part of the activeHelp framework moved to ApplicationModel.
Claus Gittinger <cg@exept.de>
parents: 1016
diff changeset
   154
    "Modified: / 31.7.1998 / 18:16:55 / cg"
782
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
1018
7222534cb3dc part of the activeHelp framework moved to ApplicationModel.
Claus Gittinger <cg@exept.de>
parents: 1016
diff changeset
   157
showingHelp: aBoolean
7222534cb3dc part of the activeHelp framework moved to ApplicationModel.
Claus Gittinger <cg@exept.de>
parents: 1016
diff changeset
   158
    "enable/disable active help for instances of this class"
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   159
1018
7222534cb3dc part of the activeHelp framework moved to ApplicationModel.
Claus Gittinger <cg@exept.de>
parents: 1016
diff changeset
   160
    ^ showingHelp := aBoolean
7222534cb3dc part of the activeHelp framework moved to ApplicationModel.
Claus Gittinger <cg@exept.de>
parents: 1016
diff changeset
   161
7222534cb3dc part of the activeHelp framework moved to ApplicationModel.
Claus Gittinger <cg@exept.de>
parents: 1016
diff changeset
   162
    "Modified: / 31.7.1998 / 18:17:14 / cg"
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   163
! !
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   164
756
4dba5a8797ec *** empty log message ***
tz
parents: 753
diff changeset
   165
!ToolApplicationModel class methodsFor:'clipboard'!
4dba5a8797ec *** empty log message ***
tz
parents: 753
diff changeset
   166
4dba5a8797ec *** empty log message ***
tz
parents: 753
diff changeset
   167
clipboard
907
f4087882555a method comments added
tz
parents: 893
diff changeset
   168
    "returns the clipboard of this tool class"
756
4dba5a8797ec *** empty log message ***
tz
parents: 753
diff changeset
   169
4dba5a8797ec *** empty log message ***
tz
parents: 753
diff changeset
   170
    ^clipboard
4dba5a8797ec *** empty log message ***
tz
parents: 753
diff changeset
   171
!
4dba5a8797ec *** empty log message ***
tz
parents: 753
diff changeset
   172
4dba5a8797ec *** empty log message ***
tz
parents: 753
diff changeset
   173
clipboard: anEditObject
907
f4087882555a method comments added
tz
parents: 893
diff changeset
   174
    "sets the clipboard for this tool class"
756
4dba5a8797ec *** empty log message ***
tz
parents: 753
diff changeset
   175
4dba5a8797ec *** empty log message ***
tz
parents: 753
diff changeset
   176
    clipboard := anEditObject
4dba5a8797ec *** empty log message ***
tz
parents: 753
diff changeset
   177
! !
4dba5a8797ec *** empty log message ***
tz
parents: 753
diff changeset
   178
1043
32cd5ccbd94f made openAboutSTX a class method for sharability.
Claus Gittinger <cg@exept.de>
parents: 1040
diff changeset
   179
!ToolApplicationModel class methodsFor:'help'!
32cd5ccbd94f made openAboutSTX a class method for sharability.
Claus Gittinger <cg@exept.de>
parents: 1040
diff changeset
   180
32cd5ccbd94f made openAboutSTX a class method for sharability.
Claus Gittinger <cg@exept.de>
parents: 1040
diff changeset
   181
openAboutSTX
32cd5ccbd94f made openAboutSTX a class method for sharability.
Claus Gittinger <cg@exept.de>
parents: 1040
diff changeset
   182
    "opens an about box (on ST/X)"
32cd5ccbd94f made openAboutSTX a class method for sharability.
Claus Gittinger <cg@exept.de>
parents: 1040
diff changeset
   183
32cd5ccbd94f made openAboutSTX a class method for sharability.
Claus Gittinger <cg@exept.de>
parents: 1040
diff changeset
   184
    |box|
32cd5ccbd94f made openAboutSTX a class method for sharability.
Claus Gittinger <cg@exept.de>
parents: 1040
diff changeset
   185
32cd5ccbd94f made openAboutSTX a class method for sharability.
Claus Gittinger <cg@exept.de>
parents: 1040
diff changeset
   186
    AboutBox isNil ifTrue:[
32cd5ccbd94f made openAboutSTX a class method for sharability.
Claus Gittinger <cg@exept.de>
parents: 1040
diff changeset
   187
        "/ this handles bad installations of ST/X,
32cd5ccbd94f made openAboutSTX a class method for sharability.
Claus Gittinger <cg@exept.de>
parents: 1040
diff changeset
   188
        "/ where the AboutBox is missing.
32cd5ccbd94f made openAboutSTX a class method for sharability.
Claus Gittinger <cg@exept.de>
parents: 1040
diff changeset
   189
        "/ (May vanish in the future)
32cd5ccbd94f made openAboutSTX a class method for sharability.
Claus Gittinger <cg@exept.de>
parents: 1040
diff changeset
   190
        ^ self information:('Smalltalk/X rev.' , Smalltalk versionString)
32cd5ccbd94f made openAboutSTX a class method for sharability.
Claus Gittinger <cg@exept.de>
parents: 1040
diff changeset
   191
    ].
32cd5ccbd94f made openAboutSTX a class method for sharability.
Claus Gittinger <cg@exept.de>
parents: 1040
diff changeset
   192
32cd5ccbd94f made openAboutSTX a class method for sharability.
Claus Gittinger <cg@exept.de>
parents: 1040
diff changeset
   193
    box := AboutBox new.
32cd5ccbd94f made openAboutSTX a class method for sharability.
Claus Gittinger <cg@exept.de>
parents: 1040
diff changeset
   194
    box autoHideAfter:10 with:[].
1091
6816bfce45a3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1089
diff changeset
   195
    box showAtCenter
6816bfce45a3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1089
diff changeset
   196
"/    box showAtPointer
1043
32cd5ccbd94f made openAboutSTX a class method for sharability.
Claus Gittinger <cg@exept.de>
parents: 1040
diff changeset
   197
32cd5ccbd94f made openAboutSTX a class method for sharability.
Claus Gittinger <cg@exept.de>
parents: 1040
diff changeset
   198
    "Modified: / 14.8.1998 / 13:03:58 / cg"
32cd5ccbd94f made openAboutSTX a class method for sharability.
Claus Gittinger <cg@exept.de>
parents: 1040
diff changeset
   199
    "Created: / 14.8.1998 / 13:17:43 / cg"
32cd5ccbd94f made openAboutSTX a class method for sharability.
Claus Gittinger <cg@exept.de>
parents: 1040
diff changeset
   200
! !
32cd5ccbd94f made openAboutSTX a class method for sharability.
Claus Gittinger <cg@exept.de>
parents: 1040
diff changeset
   201
762
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
   202
!ToolApplicationModel class methodsFor:'help specs'!
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
   203
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
   204
helpSpec
869
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   205
    "This resource specification was automatically generated
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   206
     by the UIHelpTool of ST/X."
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   207
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   208
    "Do not manually edit this!! If it is corrupted,
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   209
     the UIHelpTool may not be able to read the specification."
762
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
   210
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
   211
    "
869
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   212
     UIHelpTool openOnClass:ToolApplicationModel    
762
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
   213
    "
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
   214
869
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   215
    <resource: #help>
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   216
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   217
    ^super helpSpec addPairsFrom:#(
762
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
   218
823
d812eae12888 help texts added
tz
parents: 822
diff changeset
   219
#about
1284
62d950568786 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1283
diff changeset
   220
'Info functions.'
823
d812eae12888 help texts added
tz
parents: 822
diff changeset
   221
762
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
   222
#aboutSTX
1283
1671949a97be checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1259
diff changeset
   223
'Info about the running ST/X.'
762
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
   224
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
   225
#aboutThisAppliaction
1283
1671949a97be checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1259
diff changeset
   226
'Info about that applications release and author.'
762
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
   227
823
d812eae12888 help texts added
tz
parents: 822
diff changeset
   228
#add
834
ac1655bd31bb class category changed
tz
parents: 833
diff changeset
   229
'Add functions.'
823
d812eae12888 help texts added
tz
parents: 822
diff changeset
   230
d812eae12888 help texts added
tz
parents: 822
diff changeset
   231
#commitCancel
910
670bffab7041 help texts
Claus Gittinger <cg@exept.de>
parents: 907
diff changeset
   232
'Cancels changes.'
823
d812eae12888 help texts added
tz
parents: 822
diff changeset
   233
d812eae12888 help texts added
tz
parents: 822
diff changeset
   234
#commitOK
910
670bffab7041 help texts
Claus Gittinger <cg@exept.de>
parents: 907
diff changeset
   235
'Commit changes.'
823
d812eae12888 help texts added
tz
parents: 822
diff changeset
   236
d812eae12888 help texts added
tz
parents: 822
diff changeset
   237
#edit
834
ac1655bd31bb class category changed
tz
parents: 833
diff changeset
   238
'Edit functions.'
823
d812eae12888 help texts added
tz
parents: 822
diff changeset
   239
d812eae12888 help texts added
tz
parents: 822
diff changeset
   240
#editCopy
910
670bffab7041 help texts
Claus Gittinger <cg@exept.de>
parents: 907
diff changeset
   241
'Copy the selected item(s) to the clipboard.'
762
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
   242
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   243
#editCut
910
670bffab7041 help texts
Claus Gittinger <cg@exept.de>
parents: 907
diff changeset
   244
'Move the selected item(s) to the clipboard.'
853
19f2d0152fcb time clock only for the launcher
tz
parents: 851
diff changeset
   245
19f2d0152fcb time clock only for the launcher
tz
parents: 851
diff changeset
   246
#editDelete
910
670bffab7041 help texts
Claus Gittinger <cg@exept.de>
parents: 907
diff changeset
   247
'Delete the selected item(s).'
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   248
823
d812eae12888 help texts added
tz
parents: 822
diff changeset
   249
#editMoveDown
910
670bffab7041 help texts
Claus Gittinger <cg@exept.de>
parents: 907
diff changeset
   250
'Moves the selected item one step down in the order list.'
823
d812eae12888 help texts added
tz
parents: 822
diff changeset
   251
d812eae12888 help texts added
tz
parents: 822
diff changeset
   252
#editMoveIn
834
ac1655bd31bb class category changed
tz
parents: 833
diff changeset
   253
'Moves the selected item into next item as child item.'
823
d812eae12888 help texts added
tz
parents: 822
diff changeset
   254
d812eae12888 help texts added
tz
parents: 822
diff changeset
   255
#editMoveOut
910
670bffab7041 help texts
Claus Gittinger <cg@exept.de>
parents: 907
diff changeset
   256
'Moves the selected item out of its parent item.'
823
d812eae12888 help texts added
tz
parents: 822
diff changeset
   257
d812eae12888 help texts added
tz
parents: 822
diff changeset
   258
#editMoveUp
910
670bffab7041 help texts
Claus Gittinger <cg@exept.de>
parents: 907
diff changeset
   259
'Moves the selected item one step up in the order list.'
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   260
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   261
#editPaste
910
670bffab7041 help texts
Claus Gittinger <cg@exept.de>
parents: 907
diff changeset
   262
'Paste from the clipboard.'
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   263
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   264
#editUndo
910
670bffab7041 help texts
Claus Gittinger <cg@exept.de>
parents: 907
diff changeset
   265
'Undo the last action.'
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   266
823
d812eae12888 help texts added
tz
parents: 822
diff changeset
   267
#file
834
ac1655bd31bb class category changed
tz
parents: 833
diff changeset
   268
'File functions.'
805
d4c4ee3bb474 now, help menu is very rudimentarily
tz
parents: 804
diff changeset
   269
823
d812eae12888 help texts added
tz
parents: 822
diff changeset
   270
#fileBrowseClass
1018
7222534cb3dc part of the activeHelp framework moved to ApplicationModel.
Claus Gittinger <cg@exept.de>
parents: 1016
diff changeset
   271
'Open a System Browser on the current class.'
805
d4c4ee3bb474 now, help menu is very rudimentarily
tz
parents: 804
diff changeset
   272
823
d812eae12888 help texts added
tz
parents: 822
diff changeset
   273
#fileDefineClass
910
670bffab7041 help texts
Claus Gittinger <cg@exept.de>
parents: 907
diff changeset
   274
'Open a dialog to define the current class.'
805
d4c4ee3bb474 now, help menu is very rudimentarily
tz
parents: 804
diff changeset
   275
d4c4ee3bb474 now, help menu is very rudimentarily
tz
parents: 804
diff changeset
   276
#fileDefineClassAndSelector
910
670bffab7041 help texts
Claus Gittinger <cg@exept.de>
parents: 907
diff changeset
   277
'Open a dialog to define the current class and selector.'
805
d4c4ee3bb474 now, help menu is very rudimentarily
tz
parents: 804
diff changeset
   278
823
d812eae12888 help texts added
tz
parents: 822
diff changeset
   279
#fileExit
910
670bffab7041 help texts
Claus Gittinger <cg@exept.de>
parents: 907
diff changeset
   280
'Exit this application.'
823
d812eae12888 help texts added
tz
parents: 822
diff changeset
   281
922
94a40763e3bf checkin from browser
Claus Gittinger <cg@exept.de>
parents: 920
diff changeset
   282
#generate
94a40763e3bf checkin from browser
Claus Gittinger <cg@exept.de>
parents: 920
diff changeset
   283
'Code generation.'
94a40763e3bf checkin from browser
Claus Gittinger <cg@exept.de>
parents: 920
diff changeset
   284
823
d812eae12888 help texts added
tz
parents: 822
diff changeset
   285
#help
834
ac1655bd31bb class category changed
tz
parents: 833
diff changeset
   286
'Help functions.'
823
d812eae12888 help texts added
tz
parents: 822
diff changeset
   287
876
585929b1fec2 some cleans
tz
parents: 872
diff changeset
   288
#helpHelpTool
1018
7222534cb3dc part of the activeHelp framework moved to ApplicationModel.
Claus Gittinger <cg@exept.de>
parents: 1016
diff changeset
   289
'Show the Help Tools documentation.'
876
585929b1fec2 some cleans
tz
parents: 872
diff changeset
   290
823
d812eae12888 help texts added
tz
parents: 822
diff changeset
   291
#helpShowHelp
910
670bffab7041 help texts
Claus Gittinger <cg@exept.de>
parents: 907
diff changeset
   292
'Toggle display of help texts.'
823
d812eae12888 help texts added
tz
parents: 822
diff changeset
   293
d812eae12888 help texts added
tz
parents: 822
diff changeset
   294
#helpTutorial
1018
7222534cb3dc part of the activeHelp framework moved to ApplicationModel.
Claus Gittinger <cg@exept.de>
parents: 1016
diff changeset
   295
'Show this applications documentation.'
823
d812eae12888 help texts added
tz
parents: 822
diff changeset
   296
d812eae12888 help texts added
tz
parents: 822
diff changeset
   297
#history
834
ac1655bd31bb class category changed
tz
parents: 833
diff changeset
   298
'History functions.'
803
f6ca4eb5da39 help texts for the history added
tz
parents: 802
diff changeset
   299
f6ca4eb5da39 help texts for the history added
tz
parents: 802
diff changeset
   300
#historyEmptyMenu
1016
57892160f78e help spec.
Claus Gittinger <cg@exept.de>
parents: 1015
diff changeset
   301
'Clear the history.'
803
f6ca4eb5da39 help texts for the history added
tz
parents: 802
diff changeset
   302
823
d812eae12888 help texts added
tz
parents: 822
diff changeset
   303
#historyMenuItem
1016
57892160f78e help spec.
Claus Gittinger <cg@exept.de>
parents: 1015
diff changeset
   304
'Switch to that item.'
762
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
   305
893
8a142b17a0c8 some cleans
tz
parents: 892
diff changeset
   306
#settings
8a142b17a0c8 some cleans
tz
parents: 892
diff changeset
   307
'Settings functions.'
8a142b17a0c8 some cleans
tz
parents: 892
diff changeset
   308
823
d812eae12888 help texts added
tz
parents: 822
diff changeset
   309
#test
834
ac1655bd31bb class category changed
tz
parents: 833
diff changeset
   310
'Test functions.'
762
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
   311
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
   312
)
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
   313
! !
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
   314
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   315
!ToolApplicationModel class methodsFor:'history'!
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   316
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   317
getHistory
907
f4087882555a method comments added
tz
parents: 893
diff changeset
   318
    "returns the history for this tool class"
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   319
761
cc0404f8aec6 #getHistory changed because here #? doesn't work correctly
tz
parents: 760
diff changeset
   320
    history isNil ifTrue: [history := OrderedCollection new].
cc0404f8aec6 #getHistory changed because here #? doesn't work correctly
tz
parents: 760
diff changeset
   321
    ^history
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   322
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   323
!
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   324
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   325
historyMaxSize
907
f4087882555a method comments added
tz
parents: 893
diff changeset
   326
    "returns the maximum size for the history of this tool class"
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   327
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   328
    ^10
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   329
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   330
! !
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   331
869
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   332
!ToolApplicationModel class methodsFor:'image specs'!
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   333
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   334
desktopIcon
907
f4087882555a method comments added
tz
parents: 893
diff changeset
   335
    "returns the icon used for the desktop"
869
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   336
1054
ab639131be1f find all icons in getAllImageSelectorsFrom:(walk class hierarchy);
Claus Gittinger <cg@exept.de>
parents: 1051
diff changeset
   337
    <resource: #programImage>
ab639131be1f find all icons in getAllImageSelectorsFrom:(walk class hierarchy);
Claus Gittinger <cg@exept.de>
parents: 1051
diff changeset
   338
869
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   339
    ^Icon
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   340
        constantNamed:#'ToolApplicationModel desktopIcon'
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   341
        ifAbsentPut:
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   342
        [
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   343
            |desktopIcon|
990
13f2fe627628 images moved to class Icon
tz
parents: 987
diff changeset
   344
            desktopIcon := Icon stxIcon.
869
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   345
            desktopIcon magnifiedBy: Display preferredIconSize/desktopIcon extent
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   346
        ]
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   347
1054
ab639131be1f find all icons in getAllImageSelectorsFrom:(walk class hierarchy);
Claus Gittinger <cg@exept.de>
parents: 1051
diff changeset
   348
    "Modified: / 24.8.1998 / 21:34:38 / cg"
869
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   349
!
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   350
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   351
menuIcon
907
f4087882555a method comments added
tz
parents: 893
diff changeset
   352
    "returns the icon used for the menu bar"
869
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   353
1054
ab639131be1f find all icons in getAllImageSelectorsFrom:(walk class hierarchy);
Claus Gittinger <cg@exept.de>
parents: 1051
diff changeset
   354
    <resource: #programImage>
ab639131be1f find all icons in getAllImageSelectorsFrom:(walk class hierarchy);
Claus Gittinger <cg@exept.de>
parents: 1051
diff changeset
   355
869
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   356
    ^Icon
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   357
        constantNamed:#'ToolApplicationModel menuIcon'
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   358
        ifAbsentPut:
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   359
        [
1165
70fd3edc13b4 care for device-less menuFont
Claus Gittinger <cg@exept.de>
parents: 1157
diff changeset
   360
            |menuIcon myDevice|
990
13f2fe627628 images moved to class Icon
tz
parents: 987
diff changeset
   361
            menuIcon := Icon stxIcon.
1165
70fd3edc13b4 care for device-less menuFont
Claus Gittinger <cg@exept.de>
parents: 1157
diff changeset
   362
            myDevice := Screen current.
70fd3edc13b4 care for device-less menuFont
Claus Gittinger <cg@exept.de>
parents: 1157
diff changeset
   363
            menuIcon magnifiedBy: (MenuPanel defaultFont heightOn:myDevice)/menuIcon height
869
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   364
        ]
1054
ab639131be1f find all icons in getAllImageSelectorsFrom:(walk class hierarchy);
Claus Gittinger <cg@exept.de>
parents: 1051
diff changeset
   365
ab639131be1f find all icons in getAllImageSelectorsFrom:(walk class hierarchy);
Claus Gittinger <cg@exept.de>
parents: 1051
diff changeset
   366
    "Modified: / 24.8.1998 / 21:34:33 / cg"
987
54c15a2642f6 images moved to class Icon
tz
parents: 984
diff changeset
   367
! !
869
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   368
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   369
!ToolApplicationModel class methodsFor:'interface specs'!
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   370
797
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   371
windowSpecForCommit
869
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   372
    "This resource specification was automatically generated
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   373
     by the UIPainter of ST/X."
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   374
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   375
    "Do not manually edit this!! If it is corrupted,
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   376
     the UIPainter may not be able to read the specification."
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   377
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   378
    "
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   379
     UIPainter new openOnClass:ToolApplicationModel andSelector:#windowSpecForCommit
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   380
     ToolApplicationModel new openInterface:#windowSpecForCommit
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   381
    "
797
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   382
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   383
    <resource: #canvas>
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   384
1259
394ab30e07e0 OK/Cancel button spec (reverse if OK atLeft)
Claus Gittinger <cg@exept.de>
parents: 1200
diff changeset
   385
    ^ 
394ab30e07e0 OK/Cancel button spec (reverse if OK atLeft)
Claus Gittinger <cg@exept.de>
parents: 1200
diff changeset
   386
     #(#FullSpec
394ab30e07e0 OK/Cancel button spec (reverse if OK atLeft)
Claus Gittinger <cg@exept.de>
parents: 1200
diff changeset
   387
        #name: #windowSpecForCommit
394ab30e07e0 OK/Cancel button spec (reverse if OK atLeft)
Claus Gittinger <cg@exept.de>
parents: 1200
diff changeset
   388
        #window: 
394ab30e07e0 OK/Cancel button spec (reverse if OK atLeft)
Claus Gittinger <cg@exept.de>
parents: 1200
diff changeset
   389
       #(#WindowSpec
394ab30e07e0 OK/Cancel button spec (reverse if OK atLeft)
Claus Gittinger <cg@exept.de>
parents: 1200
diff changeset
   390
          #label: 'Commit Buttons'
394ab30e07e0 OK/Cancel button spec (reverse if OK atLeft)
Claus Gittinger <cg@exept.de>
parents: 1200
diff changeset
   391
          #name: 'Commit Buttons'
394ab30e07e0 OK/Cancel button spec (reverse if OK atLeft)
Claus Gittinger <cg@exept.de>
parents: 1200
diff changeset
   392
          #min: #(#Point 100 22)
394ab30e07e0 OK/Cancel button spec (reverse if OK atLeft)
Claus Gittinger <cg@exept.de>
parents: 1200
diff changeset
   393
          #max: #(#Point 1152 900)
394ab30e07e0 OK/Cancel button spec (reverse if OK atLeft)
Claus Gittinger <cg@exept.de>
parents: 1200
diff changeset
   394
          #bounds: #(#Rectangle 18 51 318 111)
394ab30e07e0 OK/Cancel button spec (reverse if OK atLeft)
Claus Gittinger <cg@exept.de>
parents: 1200
diff changeset
   395
        )
394ab30e07e0 OK/Cancel button spec (reverse if OK atLeft)
Claus Gittinger <cg@exept.de>
parents: 1200
diff changeset
   396
        #component: 
394ab30e07e0 OK/Cancel button spec (reverse if OK atLeft)
Claus Gittinger <cg@exept.de>
parents: 1200
diff changeset
   397
       #(#SpecCollection
394ab30e07e0 OK/Cancel button spec (reverse if OK atLeft)
Claus Gittinger <cg@exept.de>
parents: 1200
diff changeset
   398
          #collection: #(
394ab30e07e0 OK/Cancel button spec (reverse if OK atLeft)
Claus Gittinger <cg@exept.de>
parents: 1200
diff changeset
   399
           #(#HorizontalPanelViewSpec
394ab30e07e0 OK/Cancel button spec (reverse if OK atLeft)
Claus Gittinger <cg@exept.de>
parents: 1200
diff changeset
   400
              #name: 'HorizontalPanel1'
394ab30e07e0 OK/Cancel button spec (reverse if OK atLeft)
Claus Gittinger <cg@exept.de>
parents: 1200
diff changeset
   401
              #layout: #(#LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0)
394ab30e07e0 OK/Cancel button spec (reverse if OK atLeft)
Claus Gittinger <cg@exept.de>
parents: 1200
diff changeset
   402
              #horizontalLayout: #fitSpace
394ab30e07e0 OK/Cancel button spec (reverse if OK atLeft)
Claus Gittinger <cg@exept.de>
parents: 1200
diff changeset
   403
              #verticalLayout: #centerMax
394ab30e07e0 OK/Cancel button spec (reverse if OK atLeft)
Claus Gittinger <cg@exept.de>
parents: 1200
diff changeset
   404
              #horizontalSpace: 3
394ab30e07e0 OK/Cancel button spec (reverse if OK atLeft)
Claus Gittinger <cg@exept.de>
parents: 1200
diff changeset
   405
              #verticalSpace: 3
394ab30e07e0 OK/Cancel button spec (reverse if OK atLeft)
Claus Gittinger <cg@exept.de>
parents: 1200
diff changeset
   406
              #reverseOrderIfOKAtLeft: true
394ab30e07e0 OK/Cancel button spec (reverse if OK atLeft)
Claus Gittinger <cg@exept.de>
parents: 1200
diff changeset
   407
              #component: 
394ab30e07e0 OK/Cancel button spec (reverse if OK atLeft)
Claus Gittinger <cg@exept.de>
parents: 1200
diff changeset
   408
             #(#SpecCollection
394ab30e07e0 OK/Cancel button spec (reverse if OK atLeft)
Claus Gittinger <cg@exept.de>
parents: 1200
diff changeset
   409
                #collection: #(
797
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   410
                 #(#ActionButtonSpec
1259
394ab30e07e0 OK/Cancel button spec (reverse if OK atLeft)
Claus Gittinger <cg@exept.de>
parents: 1200
diff changeset
   411
                    #label: 'Cancel'
859
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   412
                    #name: 'cancelButton'
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   413
                    #activeHelpKey: #commitCancel
927
2e4efdc9bc69 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 922
diff changeset
   414
                    #translateLabel: true
1259
394ab30e07e0 OK/Cancel button spec (reverse if OK atLeft)
Claus Gittinger <cg@exept.de>
parents: 1200
diff changeset
   415
                    #resizeForLabel: true
859
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   416
                    #tabable: true
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   417
                    #model: #cancel
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   418
                    #enableChannel: #valueOfEnablingCommitButtons
1259
394ab30e07e0 OK/Cancel button spec (reverse if OK atLeft)
Claus Gittinger <cg@exept.de>
parents: 1200
diff changeset
   419
                    #useDefaultExtent: true
394ab30e07e0 OK/Cancel button spec (reverse if OK atLeft)
Claus Gittinger <cg@exept.de>
parents: 1200
diff changeset
   420
                  )
797
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   421
                 #(#ActionButtonSpec
1259
394ab30e07e0 OK/Cancel button spec (reverse if OK atLeft)
Claus Gittinger <cg@exept.de>
parents: 1200
diff changeset
   422
                    #label: 'OK'
859
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   423
                    #name: 'okButton'
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   424
                    #activeHelpKey: #commitOK
927
2e4efdc9bc69 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 922
diff changeset
   425
                    #translateLabel: true
1259
394ab30e07e0 OK/Cancel button spec (reverse if OK atLeft)
Claus Gittinger <cg@exept.de>
parents: 1200
diff changeset
   426
                    #resizeForLabel: true
859
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   427
                    #tabable: true
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   428
                    #model: #accept
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   429
                    #enableChannel: #valueOfEnablingCommitButtons
1259
394ab30e07e0 OK/Cancel button spec (reverse if OK atLeft)
Claus Gittinger <cg@exept.de>
parents: 1200
diff changeset
   430
                    #useDefaultExtent: true
394ab30e07e0 OK/Cancel button spec (reverse if OK atLeft)
Claus Gittinger <cg@exept.de>
parents: 1200
diff changeset
   431
                  )
394ab30e07e0 OK/Cancel button spec (reverse if OK atLeft)
Claus Gittinger <cg@exept.de>
parents: 1200
diff changeset
   432
                 )
394ab30e07e0 OK/Cancel button spec (reverse if OK atLeft)
Claus Gittinger <cg@exept.de>
parents: 1200
diff changeset
   433
               
797
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   434
              )
1259
394ab30e07e0 OK/Cancel button spec (reverse if OK atLeft)
Claus Gittinger <cg@exept.de>
parents: 1200
diff changeset
   435
            )
394ab30e07e0 OK/Cancel button spec (reverse if OK atLeft)
Claus Gittinger <cg@exept.de>
parents: 1200
diff changeset
   436
           )
394ab30e07e0 OK/Cancel button spec (reverse if OK atLeft)
Claus Gittinger <cg@exept.de>
parents: 1200
diff changeset
   437
         
394ab30e07e0 OK/Cancel button spec (reverse if OK atLeft)
Claus Gittinger <cg@exept.de>
parents: 1200
diff changeset
   438
        )
797
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   439
      )
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   440
!
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   441
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   442
windowSpecForCommitWithoutChannels
869
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   443
    "This resource specification was automatically generated
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   444
     by the UIPainter of ST/X."
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   445
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   446
    "Do not manually edit this!! If it is corrupted,
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   447
     the UIPainter may not be able to read the specification."
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   448
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   449
    "
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   450
     UIPainter new openOnClass:ToolApplicationModel andSelector:#windowSpecForCommitWithoutChannels
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   451
     ToolApplicationModel new openInterface:#windowSpecForCommitWithoutChannels
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   452
    "
797
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   453
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   454
    <resource: #canvas>
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   455
1259
394ab30e07e0 OK/Cancel button spec (reverse if OK atLeft)
Claus Gittinger <cg@exept.de>
parents: 1200
diff changeset
   456
    ^ 
394ab30e07e0 OK/Cancel button spec (reverse if OK atLeft)
Claus Gittinger <cg@exept.de>
parents: 1200
diff changeset
   457
     #(#FullSpec
394ab30e07e0 OK/Cancel button spec (reverse if OK atLeft)
Claus Gittinger <cg@exept.de>
parents: 1200
diff changeset
   458
        #name: #windowSpecForCommitWithoutChannels
394ab30e07e0 OK/Cancel button spec (reverse if OK atLeft)
Claus Gittinger <cg@exept.de>
parents: 1200
diff changeset
   459
        #window: 
394ab30e07e0 OK/Cancel button spec (reverse if OK atLeft)
Claus Gittinger <cg@exept.de>
parents: 1200
diff changeset
   460
       #(#WindowSpec
394ab30e07e0 OK/Cancel button spec (reverse if OK atLeft)
Claus Gittinger <cg@exept.de>
parents: 1200
diff changeset
   461
          #label: 'Commit Buttons Without Channels'
394ab30e07e0 OK/Cancel button spec (reverse if OK atLeft)
Claus Gittinger <cg@exept.de>
parents: 1200
diff changeset
   462
          #name: 'Commit Buttons Without Channels'
394ab30e07e0 OK/Cancel button spec (reverse if OK atLeft)
Claus Gittinger <cg@exept.de>
parents: 1200
diff changeset
   463
          #min: #(#Point 100 22)
394ab30e07e0 OK/Cancel button spec (reverse if OK atLeft)
Claus Gittinger <cg@exept.de>
parents: 1200
diff changeset
   464
          #max: #(#Point 1152 900)
394ab30e07e0 OK/Cancel button spec (reverse if OK atLeft)
Claus Gittinger <cg@exept.de>
parents: 1200
diff changeset
   465
          #bounds: #(#Rectangle 18 51 318 97)
394ab30e07e0 OK/Cancel button spec (reverse if OK atLeft)
Claus Gittinger <cg@exept.de>
parents: 1200
diff changeset
   466
        )
394ab30e07e0 OK/Cancel button spec (reverse if OK atLeft)
Claus Gittinger <cg@exept.de>
parents: 1200
diff changeset
   467
        #component: 
394ab30e07e0 OK/Cancel button spec (reverse if OK atLeft)
Claus Gittinger <cg@exept.de>
parents: 1200
diff changeset
   468
       #(#SpecCollection
394ab30e07e0 OK/Cancel button spec (reverse if OK atLeft)
Claus Gittinger <cg@exept.de>
parents: 1200
diff changeset
   469
          #collection: #(
394ab30e07e0 OK/Cancel button spec (reverse if OK atLeft)
Claus Gittinger <cg@exept.de>
parents: 1200
diff changeset
   470
           #(#HorizontalPanelViewSpec
394ab30e07e0 OK/Cancel button spec (reverse if OK atLeft)
Claus Gittinger <cg@exept.de>
parents: 1200
diff changeset
   471
              #name: 'HorizontalPanel1'
394ab30e07e0 OK/Cancel button spec (reverse if OK atLeft)
Claus Gittinger <cg@exept.de>
parents: 1200
diff changeset
   472
              #layout: #(#LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0)
394ab30e07e0 OK/Cancel button spec (reverse if OK atLeft)
Claus Gittinger <cg@exept.de>
parents: 1200
diff changeset
   473
              #horizontalLayout: #fitSpace
394ab30e07e0 OK/Cancel button spec (reverse if OK atLeft)
Claus Gittinger <cg@exept.de>
parents: 1200
diff changeset
   474
              #verticalLayout: #centerMax
394ab30e07e0 OK/Cancel button spec (reverse if OK atLeft)
Claus Gittinger <cg@exept.de>
parents: 1200
diff changeset
   475
              #horizontalSpace: 3
394ab30e07e0 OK/Cancel button spec (reverse if OK atLeft)
Claus Gittinger <cg@exept.de>
parents: 1200
diff changeset
   476
              #verticalSpace: 3
394ab30e07e0 OK/Cancel button spec (reverse if OK atLeft)
Claus Gittinger <cg@exept.de>
parents: 1200
diff changeset
   477
              #reverseOrderIfOKAtLeft: true
394ab30e07e0 OK/Cancel button spec (reverse if OK atLeft)
Claus Gittinger <cg@exept.de>
parents: 1200
diff changeset
   478
              #component: 
394ab30e07e0 OK/Cancel button spec (reverse if OK atLeft)
Claus Gittinger <cg@exept.de>
parents: 1200
diff changeset
   479
             #(#SpecCollection
394ab30e07e0 OK/Cancel button spec (reverse if OK atLeft)
Claus Gittinger <cg@exept.de>
parents: 1200
diff changeset
   480
                #collection: #(
797
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   481
                 #(#ActionButtonSpec
1259
394ab30e07e0 OK/Cancel button spec (reverse if OK atLeft)
Claus Gittinger <cg@exept.de>
parents: 1200
diff changeset
   482
                    #label: 'Cancel'
859
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   483
                    #name: 'cancelButton'
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   484
                    #activeHelpKey: #commitCancel
927
2e4efdc9bc69 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 922
diff changeset
   485
                    #translateLabel: true
1259
394ab30e07e0 OK/Cancel button spec (reverse if OK atLeft)
Claus Gittinger <cg@exept.de>
parents: 1200
diff changeset
   486
                    #resizeForLabel: true
859
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   487
                    #tabable: true
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   488
                    #model: #cancel
1259
394ab30e07e0 OK/Cancel button spec (reverse if OK atLeft)
Claus Gittinger <cg@exept.de>
parents: 1200
diff changeset
   489
                    #useDefaultExtent: true
394ab30e07e0 OK/Cancel button spec (reverse if OK atLeft)
Claus Gittinger <cg@exept.de>
parents: 1200
diff changeset
   490
                  )
797
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   491
                 #(#ActionButtonSpec
1259
394ab30e07e0 OK/Cancel button spec (reverse if OK atLeft)
Claus Gittinger <cg@exept.de>
parents: 1200
diff changeset
   492
                    #label: 'OK'
859
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   493
                    #name: 'okButton'
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   494
                    #activeHelpKey: #commitOK
927
2e4efdc9bc69 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 922
diff changeset
   495
                    #translateLabel: true
1259
394ab30e07e0 OK/Cancel button spec (reverse if OK atLeft)
Claus Gittinger <cg@exept.de>
parents: 1200
diff changeset
   496
                    #resizeForLabel: true
859
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   497
                    #tabable: true
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   498
                    #model: #accept
1259
394ab30e07e0 OK/Cancel button spec (reverse if OK atLeft)
Claus Gittinger <cg@exept.de>
parents: 1200
diff changeset
   499
                    #useDefaultExtent: true
394ab30e07e0 OK/Cancel button spec (reverse if OK atLeft)
Claus Gittinger <cg@exept.de>
parents: 1200
diff changeset
   500
                  )
394ab30e07e0 OK/Cancel button spec (reverse if OK atLeft)
Claus Gittinger <cg@exept.de>
parents: 1200
diff changeset
   501
                 )
394ab30e07e0 OK/Cancel button spec (reverse if OK atLeft)
Claus Gittinger <cg@exept.de>
parents: 1200
diff changeset
   502
               
797
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   503
              )
1259
394ab30e07e0 OK/Cancel button spec (reverse if OK atLeft)
Claus Gittinger <cg@exept.de>
parents: 1200
diff changeset
   504
            )
394ab30e07e0 OK/Cancel button spec (reverse if OK atLeft)
Claus Gittinger <cg@exept.de>
parents: 1200
diff changeset
   505
           )
394ab30e07e0 OK/Cancel button spec (reverse if OK atLeft)
Claus Gittinger <cg@exept.de>
parents: 1200
diff changeset
   506
         
394ab30e07e0 OK/Cancel button spec (reverse if OK atLeft)
Claus Gittinger <cg@exept.de>
parents: 1200
diff changeset
   507
        )
797
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   508
      )
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   509
!
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   510
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   511
windowSpecForInfoBar
869
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   512
    "This resource specification was automatically generated
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   513
     by the UIPainter of ST/X."
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   514
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   515
    "Do not manually edit this!! If it is corrupted,
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   516
     the UIPainter may not be able to read the specification."
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   517
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   518
    "
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   519
     UIPainter new openOnClass:ToolApplicationModel andSelector:#windowSpecForInfoBar
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   520
     ToolApplicationModel new openInterface:#windowSpecForInfoBar
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   521
    "
797
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   522
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   523
    <resource: #canvas>
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   524
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   525
    ^
859
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   526
     
797
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   527
       #(#FullSpec
859
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   528
          #window: 
797
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   529
           #(#WindowSpec
859
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   530
              #name: 'Info Bar'
869
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   531
              #layout: #(#LayoutFrame 233 0 218 0 732 0 563 0)
859
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   532
              #label: 'Info Bar'
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   533
              #min: #(#Point 400 320)
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   534
              #max: #(#Point 1152 900)
869
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   535
              #bounds: #(#Rectangle 233 218 733 564)
859
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   536
              #menu: #menu
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   537
              #usePreferredExtent: false
797
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   538
          )
859
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   539
          #component: 
797
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   540
           #(#SpecCollection
859
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   541
              #collection: 
797
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   542
               #(
820
d01d777e2bb3 info bars redesigned
tz
parents: 805
diff changeset
   543
                 #(#ViewSpec
859
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   544
                    #name: 'view'
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   545
                    #layout: #(#LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0)
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   546
                    #component: 
820
d01d777e2bb3 info bars redesigned
tz
parents: 805
diff changeset
   547
                     #(#SpecCollection
859
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   548
                        #collection: 
820
d01d777e2bb3 info bars redesigned
tz
parents: 805
diff changeset
   549
                         #(
d01d777e2bb3 info bars redesigned
tz
parents: 805
diff changeset
   550
                           #(#LabelSpec
859
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   551
                              #name: 'infoLabel'
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   552
                              #layout: #(#LayoutFrame 2 0.0 1 0.0 -1 1.0 -1 1.0)
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   553
                              #labelChannel: #valueOfInfoLabel
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   554
                              #level: -1
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   555
                              #adjust: #left
869
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   556
                              #resizeForLabel: false
820
d01d777e2bb3 info bars redesigned
tz
parents: 805
diff changeset
   557
                          )
d01d777e2bb3 info bars redesigned
tz
parents: 805
diff changeset
   558
                        )
d01d777e2bb3 info bars redesigned
tz
parents: 805
diff changeset
   559
                    )
797
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   560
                )
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   561
              )
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   562
          )
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   563
      )
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   564
!
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   565
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   566
windowSpecForInfoBarWithClock
869
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   567
    "This resource specification was automatically generated
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   568
     by the UIPainter of ST/X."
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   569
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   570
    "Do not manually edit this!! If it is corrupted,
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   571
     the UIPainter may not be able to read the specification."
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   572
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   573
    "
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   574
     UIPainter new openOnClass:ToolApplicationModel andSelector:#windowSpecForInfoBarWithClock
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   575
     ToolApplicationModel new openInterface:#windowSpecForInfoBarWithClock
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   576
    "
797
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   577
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   578
    <resource: #canvas>
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   579
1331
7bb366803653 resizable info/clock bar
Claus Gittinger <cg@exept.de>
parents: 1323
diff changeset
   580
    ^ 
7bb366803653 resizable info/clock bar
Claus Gittinger <cg@exept.de>
parents: 1323
diff changeset
   581
     #(#FullSpec
7bb366803653 resizable info/clock bar
Claus Gittinger <cg@exept.de>
parents: 1323
diff changeset
   582
        #name: #windowSpecForInfoBarWithClock
7bb366803653 resizable info/clock bar
Claus Gittinger <cg@exept.de>
parents: 1323
diff changeset
   583
        #window: 
7bb366803653 resizable info/clock bar
Claus Gittinger <cg@exept.de>
parents: 1323
diff changeset
   584
       #(#WindowSpec
7bb366803653 resizable info/clock bar
Claus Gittinger <cg@exept.de>
parents: 1323
diff changeset
   585
          #label: 'Info Bar'
7bb366803653 resizable info/clock bar
Claus Gittinger <cg@exept.de>
parents: 1323
diff changeset
   586
          #name: 'Info Bar'
7bb366803653 resizable info/clock bar
Claus Gittinger <cg@exept.de>
parents: 1323
diff changeset
   587
          #min: #(#Point 400 320)
7bb366803653 resizable info/clock bar
Claus Gittinger <cg@exept.de>
parents: 1323
diff changeset
   588
          #max: #(#Point 1152 900)
7bb366803653 resizable info/clock bar
Claus Gittinger <cg@exept.de>
parents: 1323
diff changeset
   589
          #bounds: #(#Rectangle 12 22 512 342)
7bb366803653 resizable info/clock bar
Claus Gittinger <cg@exept.de>
parents: 1323
diff changeset
   590
          #menu: #menu
7bb366803653 resizable info/clock bar
Claus Gittinger <cg@exept.de>
parents: 1323
diff changeset
   591
        )
7bb366803653 resizable info/clock bar
Claus Gittinger <cg@exept.de>
parents: 1323
diff changeset
   592
        #component: 
7bb366803653 resizable info/clock bar
Claus Gittinger <cg@exept.de>
parents: 1323
diff changeset
   593
       #(#SpecCollection
7bb366803653 resizable info/clock bar
Claus Gittinger <cg@exept.de>
parents: 1323
diff changeset
   594
          #collection: #(
7bb366803653 resizable info/clock bar
Claus Gittinger <cg@exept.de>
parents: 1323
diff changeset
   595
           #(#VariableHorizontalPanelSpec
7bb366803653 resizable info/clock bar
Claus Gittinger <cg@exept.de>
parents: 1323
diff changeset
   596
              #name: 'VariableHorizontalPanel1'
7bb366803653 resizable info/clock bar
Claus Gittinger <cg@exept.de>
parents: 1323
diff changeset
   597
              #layout: #(#LayoutFrame 0 0 0 0 0 1 0 1)
7bb366803653 resizable info/clock bar
Claus Gittinger <cg@exept.de>
parents: 1323
diff changeset
   598
              #barWidth: 2
7bb366803653 resizable info/clock bar
Claus Gittinger <cg@exept.de>
parents: 1323
diff changeset
   599
              #showHandle: false
7bb366803653 resizable info/clock bar
Claus Gittinger <cg@exept.de>
parents: 1323
diff changeset
   600
              #component: 
7bb366803653 resizable info/clock bar
Claus Gittinger <cg@exept.de>
parents: 1323
diff changeset
   601
             #(#SpecCollection
7bb366803653 resizable info/clock bar
Claus Gittinger <cg@exept.de>
parents: 1323
diff changeset
   602
                #collection: #(
7bb366803653 resizable info/clock bar
Claus Gittinger <cg@exept.de>
parents: 1323
diff changeset
   603
                 #(#LabelSpec
7bb366803653 resizable info/clock bar
Claus Gittinger <cg@exept.de>
parents: 1323
diff changeset
   604
                    #name: 'infoLabel'
7bb366803653 resizable info/clock bar
Claus Gittinger <cg@exept.de>
parents: 1323
diff changeset
   605
                    #level: -1
7bb366803653 resizable info/clock bar
Claus Gittinger <cg@exept.de>
parents: 1323
diff changeset
   606
                    #labelChannel: #valueOfInfoLabel
7bb366803653 resizable info/clock bar
Claus Gittinger <cg@exept.de>
parents: 1323
diff changeset
   607
                    #resizeForLabel: false
7bb366803653 resizable info/clock bar
Claus Gittinger <cg@exept.de>
parents: 1323
diff changeset
   608
                    #adjust: #left
7bb366803653 resizable info/clock bar
Claus Gittinger <cg@exept.de>
parents: 1323
diff changeset
   609
                  )
7bb366803653 resizable info/clock bar
Claus Gittinger <cg@exept.de>
parents: 1323
diff changeset
   610
                 #(#LabelSpec
7bb366803653 resizable info/clock bar
Claus Gittinger <cg@exept.de>
parents: 1323
diff changeset
   611
                    #name: 'timeLabel'
7bb366803653 resizable info/clock bar
Claus Gittinger <cg@exept.de>
parents: 1323
diff changeset
   612
                    #level: -1
7bb366803653 resizable info/clock bar
Claus Gittinger <cg@exept.de>
parents: 1323
diff changeset
   613
                    #labelChannel: #valueOfTimeLabel
7bb366803653 resizable info/clock bar
Claus Gittinger <cg@exept.de>
parents: 1323
diff changeset
   614
                    #resizeForLabel: false
7bb366803653 resizable info/clock bar
Claus Gittinger <cg@exept.de>
parents: 1323
diff changeset
   615
                    #adjust: #rightLeft
7bb366803653 resizable info/clock bar
Claus Gittinger <cg@exept.de>
parents: 1323
diff changeset
   616
                  )
7bb366803653 resizable info/clock bar
Claus Gittinger <cg@exept.de>
parents: 1323
diff changeset
   617
                 )
7bb366803653 resizable info/clock bar
Claus Gittinger <cg@exept.de>
parents: 1323
diff changeset
   618
               
797
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   619
              )
1331
7bb366803653 resizable info/clock bar
Claus Gittinger <cg@exept.de>
parents: 1323
diff changeset
   620
              #handles: #(#Any 0.854 1.0)
7bb366803653 resizable info/clock bar
Claus Gittinger <cg@exept.de>
parents: 1323
diff changeset
   621
            )
7bb366803653 resizable info/clock bar
Claus Gittinger <cg@exept.de>
parents: 1323
diff changeset
   622
           )
7bb366803653 resizable info/clock bar
Claus Gittinger <cg@exept.de>
parents: 1323
diff changeset
   623
         
7bb366803653 resizable info/clock bar
Claus Gittinger <cg@exept.de>
parents: 1323
diff changeset
   624
        )
797
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   625
      )
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   626
! !
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   627
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   628
!ToolApplicationModel class methodsFor:'menu specs'!
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   629
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   630
menuAbout
869
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   631
    "This resource specification was automatically generated
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   632
     by the MenuEditor of ST/X."
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   633
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   634
    "Do not manually edit this!! If it is corrupted,
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   635
     the MenuEditor may not be able to read the specification."
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   636
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   637
    "
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   638
     MenuEditor new openOnClass:ToolApplicationModel andSelector:#menuAbout
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   639
     (Menu new fromLiteralArrayEncoding:(ToolApplicationModel menuAbout)) startUp
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   640
    "
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   641
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   642
    <resource: #menu>
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   643
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   644
    ^
859
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   645
     
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   646
       #(#Menu
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   647
          
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   648
           #(
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   649
             #(#MenuItem
859
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   650
                #label: 'About Smalltalk/X...'
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   651
                #translateLabel: true
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   652
                #value: #openAbout
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   653
                #activeHelpKey: #aboutSTX
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   654
            )
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   655
             #(#MenuItem
859
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   656
                #label: '-'
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   657
            )
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   658
             #(#MenuItem
922
94a40763e3bf checkin from browser
Claus Gittinger <cg@exept.de>
parents: 920
diff changeset
   659
                #label: 'About this Application...'
859
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   660
                #translateLabel: true
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   661
                #value: #openAboutThisApplication
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   662
                #activeHelpKey: #aboutThisAppliaction
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   663
            )
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   664
          ) nil
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   665
          nil
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   666
      )
922
94a40763e3bf checkin from browser
Claus Gittinger <cg@exept.de>
parents: 920
diff changeset
   667
94a40763e3bf checkin from browser
Claus Gittinger <cg@exept.de>
parents: 920
diff changeset
   668
    "Modified: / 19.5.1998 / 21:44:09 / cg"
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   669
!
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   670
1104
a2f59712ce7b removed the (stupid) fontSettings menu support.
Claus Gittinger <cg@exept.de>
parents: 1091
diff changeset
   671
menuHelp
a2f59712ce7b removed the (stupid) fontSettings menu support.
Claus Gittinger <cg@exept.de>
parents: 1091
diff changeset
   672
    "This resource specification was automatically generated
a2f59712ce7b removed the (stupid) fontSettings menu support.
Claus Gittinger <cg@exept.de>
parents: 1091
diff changeset
   673
     by the MenuEditor of ST/X."
a2f59712ce7b removed the (stupid) fontSettings menu support.
Claus Gittinger <cg@exept.de>
parents: 1091
diff changeset
   674
a2f59712ce7b removed the (stupid) fontSettings menu support.
Claus Gittinger <cg@exept.de>
parents: 1091
diff changeset
   675
    "Do not manually edit this!! If it is corrupted,
a2f59712ce7b removed the (stupid) fontSettings menu support.
Claus Gittinger <cg@exept.de>
parents: 1091
diff changeset
   676
     the MenuEditor may not be able to read the specification."
a2f59712ce7b removed the (stupid) fontSettings menu support.
Claus Gittinger <cg@exept.de>
parents: 1091
diff changeset
   677
a2f59712ce7b removed the (stupid) fontSettings menu support.
Claus Gittinger <cg@exept.de>
parents: 1091
diff changeset
   678
    "
a2f59712ce7b removed the (stupid) fontSettings menu support.
Claus Gittinger <cg@exept.de>
parents: 1091
diff changeset
   679
     MenuEditor new openOnClass:ToolApplicationModel andSelector:#menuHelp
a2f59712ce7b removed the (stupid) fontSettings menu support.
Claus Gittinger <cg@exept.de>
parents: 1091
diff changeset
   680
     (Menu new fromLiteralArrayEncoding:(ToolApplicationModel menuHelp)) startUp
a2f59712ce7b removed the (stupid) fontSettings menu support.
Claus Gittinger <cg@exept.de>
parents: 1091
diff changeset
   681
    "
a2f59712ce7b removed the (stupid) fontSettings menu support.
Claus Gittinger <cg@exept.de>
parents: 1091
diff changeset
   682
a2f59712ce7b removed the (stupid) fontSettings menu support.
Claus Gittinger <cg@exept.de>
parents: 1091
diff changeset
   683
    <resource: #menu>
a2f59712ce7b removed the (stupid) fontSettings menu support.
Claus Gittinger <cg@exept.de>
parents: 1091
diff changeset
   684
a2f59712ce7b removed the (stupid) fontSettings menu support.
Claus Gittinger <cg@exept.de>
parents: 1091
diff changeset
   685
    ^
a2f59712ce7b removed the (stupid) fontSettings menu support.
Claus Gittinger <cg@exept.de>
parents: 1091
diff changeset
   686
     
a2f59712ce7b removed the (stupid) fontSettings menu support.
Claus Gittinger <cg@exept.de>
parents: 1091
diff changeset
   687
       #(#Menu
a2f59712ce7b removed the (stupid) fontSettings menu support.
Claus Gittinger <cg@exept.de>
parents: 1091
diff changeset
   688
          
a2f59712ce7b removed the (stupid) fontSettings menu support.
Claus Gittinger <cg@exept.de>
parents: 1091
diff changeset
   689
           #(
a2f59712ce7b removed the (stupid) fontSettings menu support.
Claus Gittinger <cg@exept.de>
parents: 1091
diff changeset
   690
             #(#MenuItem
a2f59712ce7b removed the (stupid) fontSettings menu support.
Claus Gittinger <cg@exept.de>
parents: 1091
diff changeset
   691
                #label: 'Documentation'
a2f59712ce7b removed the (stupid) fontSettings menu support.
Claus Gittinger <cg@exept.de>
parents: 1091
diff changeset
   692
                #translateLabel: true
a2f59712ce7b removed the (stupid) fontSettings menu support.
Claus Gittinger <cg@exept.de>
parents: 1091
diff changeset
   693
                #value: #openDocumentation
a2f59712ce7b removed the (stupid) fontSettings menu support.
Claus Gittinger <cg@exept.de>
parents: 1091
diff changeset
   694
                #activeHelpKey: #helpTutorial
a2f59712ce7b removed the (stupid) fontSettings menu support.
Claus Gittinger <cg@exept.de>
parents: 1091
diff changeset
   695
                #enabled: #valueOfHavingDocumentation
a2f59712ce7b removed the (stupid) fontSettings menu support.
Claus Gittinger <cg@exept.de>
parents: 1091
diff changeset
   696
            )
a2f59712ce7b removed the (stupid) fontSettings menu support.
Claus Gittinger <cg@exept.de>
parents: 1091
diff changeset
   697
             #(#MenuItem
a2f59712ce7b removed the (stupid) fontSettings menu support.
Claus Gittinger <cg@exept.de>
parents: 1091
diff changeset
   698
                #label: '-'
a2f59712ce7b removed the (stupid) fontSettings menu support.
Claus Gittinger <cg@exept.de>
parents: 1091
diff changeset
   699
            )
a2f59712ce7b removed the (stupid) fontSettings menu support.
Claus Gittinger <cg@exept.de>
parents: 1091
diff changeset
   700
             #(#MenuItem
a2f59712ce7b removed the (stupid) fontSettings menu support.
Claus Gittinger <cg@exept.de>
parents: 1091
diff changeset
   701
                #label: 'Show Help Texts'
a2f59712ce7b removed the (stupid) fontSettings menu support.
Claus Gittinger <cg@exept.de>
parents: 1091
diff changeset
   702
                #translateLabel: true
a2f59712ce7b removed the (stupid) fontSettings menu support.
Claus Gittinger <cg@exept.de>
parents: 1091
diff changeset
   703
                #activeHelpKey: #helpShowHelp
a2f59712ce7b removed the (stupid) fontSettings menu support.
Claus Gittinger <cg@exept.de>
parents: 1091
diff changeset
   704
                #indication: #showingHelp:
a2f59712ce7b removed the (stupid) fontSettings menu support.
Claus Gittinger <cg@exept.de>
parents: 1091
diff changeset
   705
            )
a2f59712ce7b removed the (stupid) fontSettings menu support.
Claus Gittinger <cg@exept.de>
parents: 1091
diff changeset
   706
          ) nil
a2f59712ce7b removed the (stupid) fontSettings menu support.
Claus Gittinger <cg@exept.de>
parents: 1091
diff changeset
   707
          nil
a2f59712ce7b removed the (stupid) fontSettings menu support.
Claus Gittinger <cg@exept.de>
parents: 1091
diff changeset
   708
      )
a2f59712ce7b removed the (stupid) fontSettings menu support.
Claus Gittinger <cg@exept.de>
parents: 1091
diff changeset
   709
a2f59712ce7b removed the (stupid) fontSettings menu support.
Claus Gittinger <cg@exept.de>
parents: 1091
diff changeset
   710
    "Modified: / 31.7.1998 / 18:19:42 / cg"
a2f59712ce7b removed the (stupid) fontSettings menu support.
Claus Gittinger <cg@exept.de>
parents: 1091
diff changeset
   711
!
a2f59712ce7b removed the (stupid) fontSettings menu support.
Claus Gittinger <cg@exept.de>
parents: 1091
diff changeset
   712
a2f59712ce7b removed the (stupid) fontSettings menu support.
Claus Gittinger <cg@exept.de>
parents: 1091
diff changeset
   713
xxxmenuFont
869
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   714
    "This resource specification was automatically generated
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   715
     by the MenuEditor of ST/X."
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   716
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   717
    "Do not manually edit this!! If it is corrupted,
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   718
     the MenuEditor may not be able to read the specification."
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   719
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   720
    "
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   721
     MenuEditor new openOnClass:ToolApplicationModel andSelector:#menuFont
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   722
     (Menu new fromLiteralArrayEncoding:(ToolApplicationModel menuFont)) startUp
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   723
    "
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   724
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   725
    <resource: #menu>
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   726
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   727
    ^
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   728
     
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   729
       #(#Menu
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   730
          
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   731
           #(
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   732
             #(#MenuItem
872
a1606dcbd38b better font setting routines
tz
parents: 871
diff changeset
   733
                #label: 'Label...'
1018
7222534cb3dc part of the activeHelp framework moved to ApplicationModel.
Claus Gittinger <cg@exept.de>
parents: 1016
diff changeset
   734
                #translateLabel: true
869
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   735
                #value: #chooseFont:
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   736
                #argument: 'Label Font'
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   737
            )
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   738
             #(#MenuItem
872
a1606dcbd38b better font setting routines
tz
parents: 871
diff changeset
   739
                #label: 'Button...'
1018
7222534cb3dc part of the activeHelp framework moved to ApplicationModel.
Claus Gittinger <cg@exept.de>
parents: 1016
diff changeset
   740
                #translateLabel: true
869
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   741
                #value: #chooseFont:
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   742
                #argument: 'Button Font'
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   743
            )
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   744
             #(#MenuItem
872
a1606dcbd38b better font setting routines
tz
parents: 871
diff changeset
   745
                #label: 'Edit...'
1018
7222534cb3dc part of the activeHelp framework moved to ApplicationModel.
Claus Gittinger <cg@exept.de>
parents: 1016
diff changeset
   746
                #translateLabel: true
869
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   747
                #value: #chooseFont:
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   748
                #argument: 'Edit Font'
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   749
            )
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   750
             #(#MenuItem
872
a1606dcbd38b better font setting routines
tz
parents: 871
diff changeset
   751
                #label: 'List...'
1018
7222534cb3dc part of the activeHelp framework moved to ApplicationModel.
Claus Gittinger <cg@exept.de>
parents: 1016
diff changeset
   752
                #translateLabel: true
869
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   753
                #value: #chooseFont:
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   754
                #argument: 'List Font'
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   755
            )
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   756
             #(#MenuItem
872
a1606dcbd38b better font setting routines
tz
parents: 871
diff changeset
   757
                #label: 'Tree List...'
1018
7222534cb3dc part of the activeHelp framework moved to ApplicationModel.
Claus Gittinger <cg@exept.de>
parents: 1016
diff changeset
   758
                #translateLabel: true
869
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   759
                #value: #chooseFont:
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   760
                #argument: 'Tree List Font'
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   761
            )
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   762
             #(#MenuItem
872
a1606dcbd38b better font setting routines
tz
parents: 871
diff changeset
   763
                #label: 'Note Book...'
1018
7222534cb3dc part of the activeHelp framework moved to ApplicationModel.
Claus Gittinger <cg@exept.de>
parents: 1016
diff changeset
   764
                #translateLabel: true
872
a1606dcbd38b better font setting routines
tz
parents: 871
diff changeset
   765
                #value: #chooseFont:
a1606dcbd38b better font setting routines
tz
parents: 871
diff changeset
   766
                #argument: 'Note Book Font'
a1606dcbd38b better font setting routines
tz
parents: 871
diff changeset
   767
            )
a1606dcbd38b better font setting routines
tz
parents: 871
diff changeset
   768
             #(#MenuItem
a1606dcbd38b better font setting routines
tz
parents: 871
diff changeset
   769
                #label: 'Framed Box...'
1018
7222534cb3dc part of the activeHelp framework moved to ApplicationModel.
Claus Gittinger <cg@exept.de>
parents: 1016
diff changeset
   770
                #translateLabel: true
872
a1606dcbd38b better font setting routines
tz
parents: 871
diff changeset
   771
                #value: #chooseFont:
a1606dcbd38b better font setting routines
tz
parents: 871
diff changeset
   772
                #argument: 'Framed Box Font'
a1606dcbd38b better font setting routines
tz
parents: 871
diff changeset
   773
            )
a1606dcbd38b better font setting routines
tz
parents: 871
diff changeset
   774
             #(#MenuItem
869
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   775
                #label: '-'
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   776
            )
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   777
             #(#MenuItem
872
a1606dcbd38b better font setting routines
tz
parents: 871
diff changeset
   778
                #label: 'Reset'
1018
7222534cb3dc part of the activeHelp framework moved to ApplicationModel.
Claus Gittinger <cg@exept.de>
parents: 1016
diff changeset
   779
                #translateLabel: true
869
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   780
                #value: #resetFonts
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   781
            )
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   782
          ) nil
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   783
          nil
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   784
      )
1018
7222534cb3dc part of the activeHelp framework moved to ApplicationModel.
Claus Gittinger <cg@exept.de>
parents: 1016
diff changeset
   785
7222534cb3dc part of the activeHelp framework moved to ApplicationModel.
Claus Gittinger <cg@exept.de>
parents: 1016
diff changeset
   786
    "Modified: / 31.7.1998 / 18:55:34 / cg"
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   787
! !
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   788
907
f4087882555a method comments added
tz
parents: 893
diff changeset
   789
!ToolApplicationModel class methodsFor:'queries'!
f4087882555a method comments added
tz
parents: 893
diff changeset
   790
f4087882555a method comments added
tz
parents: 893
diff changeset
   791
isVisualStartable
1427
b3e355574ccf comment only
Claus Gittinger <cg@exept.de>
parents: 1391
diff changeset
   792
    "return true, if this application can be started via #open.
b3e355574ccf comment only
Claus Gittinger <cg@exept.de>
parents: 1391
diff changeset
   793
     (to allow start of a change browser via double-click in the browser)"
907
f4087882555a method comments added
tz
parents: 893
diff changeset
   794
f4087882555a method comments added
tz
parents: 893
diff changeset
   795
    self == ToolApplicationModel ifTrue:[^false].
f4087882555a method comments added
tz
parents: 893
diff changeset
   796
    ^super isVisualStartable
f4087882555a method comments added
tz
parents: 893
diff changeset
   797
! !
f4087882555a method comments added
tz
parents: 893
diff changeset
   798
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   799
!ToolApplicationModel class methodsFor:'startup / release'!
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   800
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   801
preSnapshot
907
f4087882555a method comments added
tz
parents: 893
diff changeset
   802
    "removes the clipboard before snap shoting"
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   803
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   804
    clipboard := nil
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   805
!
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   806
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   807
uninitialize
907
f4087882555a method comments added
tz
parents: 893
diff changeset
   808
    "resets the class instance variables"
760
26cf45040420 #preferredExtent cleaned
tz
parents: 758
diff changeset
   809
1089
49b05d386ccc removed Thomas's memory leak
Claus Gittinger <cg@exept.de>
parents: 1084
diff changeset
   810
    settings := instances := showingHelp := history := clipboard := nil
1018
7222534cb3dc part of the activeHelp framework moved to ApplicationModel.
Claus Gittinger <cg@exept.de>
parents: 1016
diff changeset
   811
1089
49b05d386ccc removed Thomas's memory leak
Claus Gittinger <cg@exept.de>
parents: 1084
diff changeset
   812
    "
49b05d386ccc removed Thomas's memory leak
Claus Gittinger <cg@exept.de>
parents: 1084
diff changeset
   813
     self withAllSubclasses do:[:c | c uninitialize]
49b05d386ccc removed Thomas's memory leak
Claus Gittinger <cg@exept.de>
parents: 1084
diff changeset
   814
    "
49b05d386ccc removed Thomas's memory leak
Claus Gittinger <cg@exept.de>
parents: 1084
diff changeset
   815
49b05d386ccc removed Thomas's memory leak
Claus Gittinger <cg@exept.de>
parents: 1084
diff changeset
   816
    "Modified: / 4.2.1999 / 15:37:43 / cg"
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   817
! !
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   818
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   819
!ToolApplicationModel methodsFor:'aspects'!
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   820
1147
bbaa243ddd1c accept & modifiedChannels
Claus Gittinger <cg@exept.de>
parents: 1138
diff changeset
   821
acceptChannel
bbaa243ddd1c accept & modifiedChannels
Claus Gittinger <cg@exept.de>
parents: 1138
diff changeset
   822
    "returns a valueHolder which can be set to true to force all inputFields
bbaa243ddd1c accept & modifiedChannels
Claus Gittinger <cg@exept.de>
parents: 1138
diff changeset
   823
     to accept their value."
bbaa243ddd1c accept & modifiedChannels
Claus Gittinger <cg@exept.de>
parents: 1138
diff changeset
   824
bbaa243ddd1c accept & modifiedChannels
Claus Gittinger <cg@exept.de>
parents: 1138
diff changeset
   825
    |holder|
bbaa243ddd1c accept & modifiedChannels
Claus Gittinger <cg@exept.de>
parents: 1138
diff changeset
   826
bbaa243ddd1c accept & modifiedChannels
Claus Gittinger <cg@exept.de>
parents: 1138
diff changeset
   827
    (holder := builder bindingAt:#acceptChannel) isNil ifTrue:[
1157
feeae3138d3d checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1150
diff changeset
   828
        builder aspectAt:#acceptChannel put:(holder :=  ValueHolder with:false).
1147
bbaa243ddd1c accept & modifiedChannels
Claus Gittinger <cg@exept.de>
parents: 1138
diff changeset
   829
    ].
bbaa243ddd1c accept & modifiedChannels
Claus Gittinger <cg@exept.de>
parents: 1138
diff changeset
   830
    ^ holder
bbaa243ddd1c accept & modifiedChannels
Claus Gittinger <cg@exept.de>
parents: 1138
diff changeset
   831
bbaa243ddd1c accept & modifiedChannels
Claus Gittinger <cg@exept.de>
parents: 1138
diff changeset
   832
    "Modified: / 21.5.1998 / 03:39:49 / cg"
bbaa243ddd1c accept & modifiedChannels
Claus Gittinger <cg@exept.de>
parents: 1138
diff changeset
   833
!
bbaa243ddd1c accept & modifiedChannels
Claus Gittinger <cg@exept.de>
parents: 1138
diff changeset
   834
bbaa243ddd1c accept & modifiedChannels
Claus Gittinger <cg@exept.de>
parents: 1138
diff changeset
   835
modifiedChannel
bbaa243ddd1c accept & modifiedChannels
Claus Gittinger <cg@exept.de>
parents: 1138
diff changeset
   836
    "returns a valueHolder which is set to true, whenever any of
bbaa243ddd1c accept & modifiedChannels
Claus Gittinger <cg@exept.de>
parents: 1138
diff changeset
   837
     my editfields is modified - this is hooked to
bbaa243ddd1c accept & modifiedChannels
Claus Gittinger <cg@exept.de>
parents: 1138
diff changeset
   838
     the valueOfEnablingCommitButtons channel"
bbaa243ddd1c accept & modifiedChannels
Claus Gittinger <cg@exept.de>
parents: 1138
diff changeset
   839
bbaa243ddd1c accept & modifiedChannels
Claus Gittinger <cg@exept.de>
parents: 1138
diff changeset
   840
    |holder|
bbaa243ddd1c accept & modifiedChannels
Claus Gittinger <cg@exept.de>
parents: 1138
diff changeset
   841
bbaa243ddd1c accept & modifiedChannels
Claus Gittinger <cg@exept.de>
parents: 1138
diff changeset
   842
    (holder := builder bindingAt:#modifiedChannel) isNil ifTrue:[
1157
feeae3138d3d checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1150
diff changeset
   843
        builder aspectAt:#modifiedChannel put:(holder :=  ValueHolder with:false).
1147
bbaa243ddd1c accept & modifiedChannels
Claus Gittinger <cg@exept.de>
parents: 1138
diff changeset
   844
        holder 
1331
7bb366803653 resizable info/clock bar
Claus Gittinger <cg@exept.de>
parents: 1323
diff changeset
   845
            onChangeEvaluate:[
1148
b0c0506d044b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1147
diff changeset
   846
                holder value ifTrue:[
b0c0506d044b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1147
diff changeset
   847
                    self valueOfEnablingCommitButtons value:true.
1147
bbaa243ddd1c accept & modifiedChannels
Claus Gittinger <cg@exept.de>
parents: 1138
diff changeset
   848
                ]
bbaa243ddd1c accept & modifiedChannels
Claus Gittinger <cg@exept.de>
parents: 1138
diff changeset
   849
               ]
bbaa243ddd1c accept & modifiedChannels
Claus Gittinger <cg@exept.de>
parents: 1138
diff changeset
   850
    ].
bbaa243ddd1c accept & modifiedChannels
Claus Gittinger <cg@exept.de>
parents: 1138
diff changeset
   851
    ^ holder
bbaa243ddd1c accept & modifiedChannels
Claus Gittinger <cg@exept.de>
parents: 1138
diff changeset
   852
bbaa243ddd1c accept & modifiedChannels
Claus Gittinger <cg@exept.de>
parents: 1138
diff changeset
   853
    "Modified: / 21.5.1998 / 03:39:49 / cg"
bbaa243ddd1c accept & modifiedChannels
Claus Gittinger <cg@exept.de>
parents: 1138
diff changeset
   854
!
bbaa243ddd1c accept & modifiedChannels
Claus Gittinger <cg@exept.de>
parents: 1138
diff changeset
   855
822
374400d57e0b some useful aspects added
tz
parents: 821
diff changeset
   856
valueOfCanCopy
907
f4087882555a method comments added
tz
parents: 893
diff changeset
   857
    "returns whether can copy as value holder"
822
374400d57e0b some useful aspects added
tz
parents: 821
diff changeset
   858
936
d3d50ac7cdd0 code compression
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   859
    ^ builder booleanValueAspectFor:#valueOfCanCopy
822
374400d57e0b some useful aspects added
tz
parents: 821
diff changeset
   860
936
d3d50ac7cdd0 code compression
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   861
    "Modified: / 21.5.1998 / 03:39:05 / cg"
822
374400d57e0b some useful aspects added
tz
parents: 821
diff changeset
   862
!
374400d57e0b some useful aspects added
tz
parents: 821
diff changeset
   863
374400d57e0b some useful aspects added
tz
parents: 821
diff changeset
   864
valueOfCanCut
907
f4087882555a method comments added
tz
parents: 893
diff changeset
   865
    "returns whether can paste as value holder"
822
374400d57e0b some useful aspects added
tz
parents: 821
diff changeset
   866
936
d3d50ac7cdd0 code compression
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   867
    ^ builder booleanValueAspectFor:#valueOfCanCut
822
374400d57e0b some useful aspects added
tz
parents: 821
diff changeset
   868
936
d3d50ac7cdd0 code compression
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   869
    "Modified: / 21.5.1998 / 03:39:13 / cg"
822
374400d57e0b some useful aspects added
tz
parents: 821
diff changeset
   870
!
374400d57e0b some useful aspects added
tz
parents: 821
diff changeset
   871
374400d57e0b some useful aspects added
tz
parents: 821
diff changeset
   872
valueOfCanPaste
907
f4087882555a method comments added
tz
parents: 893
diff changeset
   873
    "returns whether can paste as value holder"
822
374400d57e0b some useful aspects added
tz
parents: 821
diff changeset
   874
936
d3d50ac7cdd0 code compression
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   875
    ^ builder booleanValueAspectFor:#valueOfCanPaste
822
374400d57e0b some useful aspects added
tz
parents: 821
diff changeset
   876
936
d3d50ac7cdd0 code compression
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   877
    "Modified: / 21.5.1998 / 03:39:22 / cg"
822
374400d57e0b some useful aspects added
tz
parents: 821
diff changeset
   878
!
374400d57e0b some useful aspects added
tz
parents: 821
diff changeset
   879
374400d57e0b some useful aspects added
tz
parents: 821
diff changeset
   880
valueOfCanUndo
907
f4087882555a method comments added
tz
parents: 893
diff changeset
   881
    "returns whether can undo as value holder"
822
374400d57e0b some useful aspects added
tz
parents: 821
diff changeset
   882
936
d3d50ac7cdd0 code compression
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   883
    ^ builder booleanValueAspectFor:#valueOfCanUndo
822
374400d57e0b some useful aspects added
tz
parents: 821
diff changeset
   884
936
d3d50ac7cdd0 code compression
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   885
    "Modified: / 21.5.1998 / 03:39:31 / cg"
822
374400d57e0b some useful aspects added
tz
parents: 821
diff changeset
   886
!
374400d57e0b some useful aspects added
tz
parents: 821
diff changeset
   887
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   888
valueOfEnablingCommitButtons
907
f4087882555a method comments added
tz
parents: 893
diff changeset
   889
    "returns the enabling of the commit of this tool as value holder"
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   890
936
d3d50ac7cdd0 code compression
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   891
    ^ builder booleanValueAspectFor:#valueOfEnablingCommitButtons
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   892
936
d3d50ac7cdd0 code compression
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   893
    "Modified: / 21.5.1998 / 03:39:49 / cg"
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   894
!
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   895
858
a36ca9158a69 show help bug fixed
tz
parents: 853
diff changeset
   896
valueOfHavingDocumentation
1004
6dc621535e26 valueOfHavingDocumentation must be set
tz
parents: 990
diff changeset
   897
    "returns the enabling of having documentation for this tool as value holder"
803
f6ca4eb5da39 help texts for the history added
tz
parents: 802
diff changeset
   898
1108
2d57365bc340 fixed a copy-paste bug
Claus Gittinger <cg@exept.de>
parents: 1107
diff changeset
   899
    ^ (builder booleanValueAspectFor:#valueOfHavingDocumentation) value: (self class implements: #openDocumentation)
803
f6ca4eb5da39 help texts for the history added
tz
parents: 802
diff changeset
   900
!
f6ca4eb5da39 help texts for the history added
tz
parents: 802
diff changeset
   901
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   902
valueOfInfoLabel
907
f4087882555a method comments added
tz
parents: 893
diff changeset
   903
    "returns the info label as value holder"
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   904
936
d3d50ac7cdd0 code compression
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   905
    ^ builder nilValueAspectFor:#valueOfInfoLabel
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   906
936
d3d50ac7cdd0 code compression
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   907
    "Modified: / 21.5.1998 / 03:40:34 / cg"
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   908
!
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   909
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   910
valueOfTimeLabel
907
f4087882555a method comments added
tz
parents: 893
diff changeset
   911
    "returns the time label as value holder"
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   912
936
d3d50ac7cdd0 code compression
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   913
    ^ builder nilValueAspectFor:#valueOfTimeLabel
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   914
936
d3d50ac7cdd0 code compression
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
   915
    "Modified: / 21.5.1998 / 03:40:42 / cg"
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   916
! !
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   917
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   918
!ToolApplicationModel methodsFor:'clipboard'!
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   919
838
d2588cca5a15 some obselete texts removed
tz
parents: 834
diff changeset
   920
clipboard
907
f4087882555a method comments added
tz
parents: 893
diff changeset
   921
    "returns the clipboard"
838
d2588cca5a15 some obselete texts removed
tz
parents: 834
diff changeset
   922
d2588cca5a15 some obselete texts removed
tz
parents: 834
diff changeset
   923
    ^self class clipboard
d2588cca5a15 some obselete texts removed
tz
parents: 834
diff changeset
   924
!
d2588cca5a15 some obselete texts removed
tz
parents: 834
diff changeset
   925
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   926
clipboard: anEditObject
907
f4087882555a method comments added
tz
parents: 893
diff changeset
   927
    "sets the clipboard and the value holder for can pasting"
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   928
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   929
    self class clipboard: anEditObject.
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   930
869
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   931
    self valueOfCanPaste value: anEditObject notNil
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   932
! !
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   933
1195
3e136baa74f9 moved all clock-handling code to one place
Claus Gittinger <cg@exept.de>
parents: 1165
diff changeset
   934
!ToolApplicationModel methodsFor:'clock handling'!
3e136baa74f9 moved all clock-handling code to one place
Claus Gittinger <cg@exept.de>
parents: 1165
diff changeset
   935
3e136baa74f9 moved all clock-handling code to one place
Claus Gittinger <cg@exept.de>
parents: 1165
diff changeset
   936
startClock
3e136baa74f9 moved all clock-handling code to one place
Claus Gittinger <cg@exept.de>
parents: 1165
diff changeset
   937
    "/ start the time-block
3e136baa74f9 moved all clock-handling code to one place
Claus Gittinger <cg@exept.de>
parents: 1165
diff changeset
   938
    self startClockOnTimedBlock:[self updateTime]. 
3e136baa74f9 moved all clock-handling code to one place
Claus Gittinger <cg@exept.de>
parents: 1165
diff changeset
   939
!
3e136baa74f9 moved all clock-handling code to one place
Claus Gittinger <cg@exept.de>
parents: 1165
diff changeset
   940
3e136baa74f9 moved all clock-handling code to one place
Claus Gittinger <cg@exept.de>
parents: 1165
diff changeset
   941
startClockOnTimedBlock: aBlock
3e136baa74f9 moved all clock-handling code to one place
Claus Gittinger <cg@exept.de>
parents: 1165
diff changeset
   942
    "sets and starts the (optional) time block"
3e136baa74f9 moved all clock-handling code to one place
Claus Gittinger <cg@exept.de>
parents: 1165
diff changeset
   943
3e136baa74f9 moved all clock-handling code to one place
Claus Gittinger <cg@exept.de>
parents: 1165
diff changeset
   944
    timeBlock := aBlock.
3e136baa74f9 moved all clock-handling code to one place
Claus Gittinger <cg@exept.de>
parents: 1165
diff changeset
   945
    aBlock value.
3e136baa74f9 moved all clock-handling code to one place
Claus Gittinger <cg@exept.de>
parents: 1165
diff changeset
   946
3e136baa74f9 moved all clock-handling code to one place
Claus Gittinger <cg@exept.de>
parents: 1165
diff changeset
   947
    "Modified: / 31.7.1998 / 18:46:28 / cg"
3e136baa74f9 moved all clock-handling code to one place
Claus Gittinger <cg@exept.de>
parents: 1165
diff changeset
   948
!
3e136baa74f9 moved all clock-handling code to one place
Claus Gittinger <cg@exept.de>
parents: 1165
diff changeset
   949
3e136baa74f9 moved all clock-handling code to one place
Claus Gittinger <cg@exept.de>
parents: 1165
diff changeset
   950
stopClock
3e136baa74f9 moved all clock-handling code to one place
Claus Gittinger <cg@exept.de>
parents: 1165
diff changeset
   951
    "/ stop the time-block
3e136baa74f9 moved all clock-handling code to one place
Claus Gittinger <cg@exept.de>
parents: 1165
diff changeset
   952
3e136baa74f9 moved all clock-handling code to one place
Claus Gittinger <cg@exept.de>
parents: 1165
diff changeset
   953
    timeBlock notNil ifTrue:[
3e136baa74f9 moved all clock-handling code to one place
Claus Gittinger <cg@exept.de>
parents: 1165
diff changeset
   954
        Processor removeTimedBlock:timeBlock.
3e136baa74f9 moved all clock-handling code to one place
Claus Gittinger <cg@exept.de>
parents: 1165
diff changeset
   955
        timeBlock := nil.
3e136baa74f9 moved all clock-handling code to one place
Claus Gittinger <cg@exept.de>
parents: 1165
diff changeset
   956
    ].
3e136baa74f9 moved all clock-handling code to one place
Claus Gittinger <cg@exept.de>
parents: 1165
diff changeset
   957
    self valueOfTimeLabel value:''
3e136baa74f9 moved all clock-handling code to one place
Claus Gittinger <cg@exept.de>
parents: 1165
diff changeset
   958
!
3e136baa74f9 moved all clock-handling code to one place
Claus Gittinger <cg@exept.de>
parents: 1165
diff changeset
   959
3e136baa74f9 moved all clock-handling code to one place
Claus Gittinger <cg@exept.de>
parents: 1165
diff changeset
   960
updateTime
3e136baa74f9 moved all clock-handling code to one place
Claus Gittinger <cg@exept.de>
parents: 1165
diff changeset
   961
    "update my time-field"
3e136baa74f9 moved all clock-handling code to one place
Claus Gittinger <cg@exept.de>
parents: 1165
diff changeset
   962
3e136baa74f9 moved all clock-handling code to one place
Claus Gittinger <cg@exept.de>
parents: 1165
diff changeset
   963
    |now hours minutes suffix|
3e136baa74f9 moved all clock-handling code to one place
Claus Gittinger <cg@exept.de>
parents: 1165
diff changeset
   964
3e136baa74f9 moved all clock-handling code to one place
Claus Gittinger <cg@exept.de>
parents: 1165
diff changeset
   965
    now := Time now.
3e136baa74f9 moved all clock-handling code to one place
Claus Gittinger <cg@exept.de>
parents: 1165
diff changeset
   966
3e136baa74f9 moved all clock-handling code to one place
Claus Gittinger <cg@exept.de>
parents: 1165
diff changeset
   967
    hours := now hours.
3e136baa74f9 moved all clock-handling code to one place
Claus Gittinger <cg@exept.de>
parents: 1165
diff changeset
   968
    minutes := now minutes printString.
3e136baa74f9 moved all clock-handling code to one place
Claus Gittinger <cg@exept.de>
parents: 1165
diff changeset
   969
    suffix := ' '.
3e136baa74f9 moved all clock-handling code to one place
Claus Gittinger <cg@exept.de>
parents: 1165
diff changeset
   970
3e136baa74f9 moved all clock-handling code to one place
Claus Gittinger <cg@exept.de>
parents: 1165
diff changeset
   971
    (resources at:'TIME_FORMAT' ifAbsent:12) == 12 ifTrue:[
3e136baa74f9 moved all clock-handling code to one place
Claus Gittinger <cg@exept.de>
parents: 1165
diff changeset
   972
        suffix := ' am '.  
3e136baa74f9 moved all clock-handling code to one place
Claus Gittinger <cg@exept.de>
parents: 1165
diff changeset
   973
        hours > 12 ifTrue: [hours := hours - 12. suffix := ' pm '].
3e136baa74f9 moved all clock-handling code to one place
Claus Gittinger <cg@exept.de>
parents: 1165
diff changeset
   974
    ].
3e136baa74f9 moved all clock-handling code to one place
Claus Gittinger <cg@exept.de>
parents: 1165
diff changeset
   975
3e136baa74f9 moved all clock-handling code to one place
Claus Gittinger <cg@exept.de>
parents: 1165
diff changeset
   976
    minutes size = 1 ifTrue: [minutes := '0', minutes].
3e136baa74f9 moved all clock-handling code to one place
Claus Gittinger <cg@exept.de>
parents: 1165
diff changeset
   977
3e136baa74f9 moved all clock-handling code to one place
Claus Gittinger <cg@exept.de>
parents: 1165
diff changeset
   978
    self valueOfTimeLabel value:(hours printString, ':', minutes, suffix).
3e136baa74f9 moved all clock-handling code to one place
Claus Gittinger <cg@exept.de>
parents: 1165
diff changeset
   979
3e136baa74f9 moved all clock-handling code to one place
Claus Gittinger <cg@exept.de>
parents: 1165
diff changeset
   980
    timeBlock notNil ifTrue:[
3e136baa74f9 moved all clock-handling code to one place
Claus Gittinger <cg@exept.de>
parents: 1165
diff changeset
   981
        Processor removeTimedBlock:timeBlock.
3e136baa74f9 moved all clock-handling code to one place
Claus Gittinger <cg@exept.de>
parents: 1165
diff changeset
   982
        Processor addTimedBlock:timeBlock afterSeconds:5
3e136baa74f9 moved all clock-handling code to one place
Claus Gittinger <cg@exept.de>
parents: 1165
diff changeset
   983
    ]
3e136baa74f9 moved all clock-handling code to one place
Claus Gittinger <cg@exept.de>
parents: 1165
diff changeset
   984
! !
3e136baa74f9 moved all clock-handling code to one place
Claus Gittinger <cg@exept.de>
parents: 1165
diff changeset
   985
1006
786de97d72f9 allow redefinition of the about-boxes image.
Claus Gittinger <cg@exept.de>
parents: 1004
diff changeset
   986
!ToolApplicationModel methodsFor:'defaults'!
786de97d72f9 allow redefinition of the about-boxes image.
Claus Gittinger <cg@exept.de>
parents: 1004
diff changeset
   987
786de97d72f9 allow redefinition of the about-boxes image.
Claus Gittinger <cg@exept.de>
parents: 1004
diff changeset
   988
aboutImage
786de97d72f9 allow redefinition of the about-boxes image.
Claus Gittinger <cg@exept.de>
parents: 1004
diff changeset
   989
    "the image to be displayed in my about-box;
786de97d72f9 allow redefinition of the about-boxes image.
Claus Gittinger <cg@exept.de>
parents: 1004
diff changeset
   990
     If nil is returned, thhe ST/X default image is used."
786de97d72f9 allow redefinition of the about-boxes image.
Claus Gittinger <cg@exept.de>
parents: 1004
diff changeset
   991
786de97d72f9 allow redefinition of the about-boxes image.
Claus Gittinger <cg@exept.de>
parents: 1004
diff changeset
   992
    ^ nil
786de97d72f9 allow redefinition of the about-boxes image.
Claus Gittinger <cg@exept.de>
parents: 1004
diff changeset
   993
786de97d72f9 allow redefinition of the about-boxes image.
Claus Gittinger <cg@exept.de>
parents: 1004
diff changeset
   994
    "Created: / 25.7.1998 / 20:33:50 / cg"
786de97d72f9 allow redefinition of the about-boxes image.
Claus Gittinger <cg@exept.de>
parents: 1004
diff changeset
   995
! !
786de97d72f9 allow redefinition of the about-boxes image.
Claus Gittinger <cg@exept.de>
parents: 1004
diff changeset
   996
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   997
!ToolApplicationModel methodsFor:'help'!
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   998
762
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
   999
defaultInfoLabel
907
f4087882555a method comments added
tz
parents: 893
diff changeset
  1000
    "returns the default info label; here an empty string"
762
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
  1001
1018
7222534cb3dc part of the activeHelp framework moved to ApplicationModel.
Claus Gittinger <cg@exept.de>
parents: 1016
diff changeset
  1002
    ^ ''
984
a0a868c45691 show help synchronously
Claus Gittinger <cg@exept.de>
parents: 982
diff changeset
  1003
1018
7222534cb3dc part of the activeHelp framework moved to ApplicationModel.
Claus Gittinger <cg@exept.de>
parents: 1016
diff changeset
  1004
    "Modified: / 31.7.1998 / 18:44:55 / cg"
984
a0a868c45691 show help synchronously
Claus Gittinger <cg@exept.de>
parents: 982
diff changeset
  1005
!
a0a868c45691 show help synchronously
Claus Gittinger <cg@exept.de>
parents: 982
diff changeset
  1006
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1007
openAbout
1018
7222534cb3dc part of the activeHelp framework moved to ApplicationModel.
Claus Gittinger <cg@exept.de>
parents: 1016
diff changeset
  1008
    "opens an about box (on ST/X)"
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1009
1043
32cd5ccbd94f made openAboutSTX a class method for sharability.
Claus Gittinger <cg@exept.de>
parents: 1040
diff changeset
  1010
    self class openAboutSTX
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1011
1043
32cd5ccbd94f made openAboutSTX a class method for sharability.
Claus Gittinger <cg@exept.de>
parents: 1040
diff changeset
  1012
    "Modified: / 14.8.1998 / 13:17:57 / cg"
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1013
!
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1014
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1015
openAboutThisApplication
1018
7222534cb3dc part of the activeHelp framework moved to ApplicationModel.
Claus Gittinger <cg@exept.de>
parents: 1016
diff changeset
  1016
    "opens an about box for this application.
7222534cb3dc part of the activeHelp framework moved to ApplicationModel.
Claus Gittinger <cg@exept.de>
parents: 1016
diff changeset
  1017
     Extracts some common info (i.e. class revision, author etc. from
7222534cb3dc part of the activeHelp framework moved to ApplicationModel.
Claus Gittinger <cg@exept.de>
parents: 1016
diff changeset
  1018
     the classes documentation."
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1019
1040
4a395c06a985 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1034
diff changeset
  1020
    |rev box myClass clsRev image msg|
936
d3d50ac7cdd0 code compression
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1021
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1022
    rev := ''.
936
d3d50ac7cdd0 code compression
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1023
    myClass := self class.
d3d50ac7cdd0 code compression
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1024
d3d50ac7cdd0 code compression
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1025
    (clsRev := myClass revision) notNil ifTrue: [rev := '  (rev: ', clsRev printString, ')'].
1040
4a395c06a985 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1034
diff changeset
  1026
4a395c06a985 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1034
diff changeset
  1027
    msg := '\The application\\' withCRs
936
d3d50ac7cdd0 code compression
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1028
        , myClass name asBoldText, rev
850
cdf5ecf904e2 some obselete icons removed
tz
parents: 846
diff changeset
  1029
        , '\\has been designed and implemented by: \' withCRs
cdf5ecf904e2 some obselete icons removed
tz
parents: 846
diff changeset
  1030
        , ((self class authorLinesForAboutBox collect:[:l | '- ' , l]) asStringWith:$\) withCRs
800
b98050cf7a43 better author extraction.
Claus Gittinger <cg@exept.de>
parents: 799
diff changeset
  1031
        , '\\' withCRs.
1138
106a5cc7a4a8 do not display tabs in a string.
Claus Gittinger <cg@exept.de>
parents: 1108
diff changeset
  1032
    msg := msg withTabsExpanded.
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1033
1040
4a395c06a985 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1034
diff changeset
  1034
    AboutBox isNil ifTrue:[
4a395c06a985 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1034
diff changeset
  1035
        "/ this handles bad installations of ST/X,
4a395c06a985 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1034
diff changeset
  1036
        "/ where the AboutBox is missing.
4a395c06a985 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1034
diff changeset
  1037
        "/ (May vanish in the future)
4a395c06a985 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1034
diff changeset
  1038
        ^ self information:msg
4a395c06a985 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1034
diff changeset
  1039
    ].
4a395c06a985 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1034
diff changeset
  1040
4a395c06a985 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1034
diff changeset
  1041
    box := AboutBox title:msg.
4a395c06a985 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1034
diff changeset
  1042
1006
786de97d72f9 allow redefinition of the about-boxes image.
Claus Gittinger <cg@exept.de>
parents: 1004
diff changeset
  1043
    image := self aboutImage.
786de97d72f9 allow redefinition of the about-boxes image.
Claus Gittinger <cg@exept.de>
parents: 1004
diff changeset
  1044
    image notNil ifTrue:[
786de97d72f9 allow redefinition of the about-boxes image.
Claus Gittinger <cg@exept.de>
parents: 1004
diff changeset
  1045
        box image:image
786de97d72f9 allow redefinition of the about-boxes image.
Claus Gittinger <cg@exept.de>
parents: 1004
diff changeset
  1046
    ].
786de97d72f9 allow redefinition of the about-boxes image.
Claus Gittinger <cg@exept.de>
parents: 1004
diff changeset
  1047
    box   label:'About This Application'.
786de97d72f9 allow redefinition of the about-boxes image.
Claus Gittinger <cg@exept.de>
parents: 1004
diff changeset
  1048
    box   autoHideAfter:10 with:[].
1034
59abcada672e show about boxes under the mouse pointer.
Claus Gittinger <cg@exept.de>
parents: 1025
diff changeset
  1049
    box   showAtPointer.
936
d3d50ac7cdd0 code compression
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1050
1138
106a5cc7a4a8 do not display tabs in a string.
Claus Gittinger <cg@exept.de>
parents: 1108
diff changeset
  1051
    "Modified: / 12.3.1999 / 00:12:13 / cg"
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1052
!
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1053
858
a36ca9158a69 show help bug fixed
tz
parents: 853
diff changeset
  1054
openHTMLDocument: aHTMLFilename
907
f4087882555a method comments added
tz
parents: 893
diff changeset
  1055
    "opens a HTML browser on aHTMLFilename"
858
a36ca9158a69 show help bug fixed
tz
parents: 853
diff changeset
  1056
a36ca9158a69 show help bug fixed
tz
parents: 853
diff changeset
  1057
    HTMLDocumentView openFullOnDocumentationFile: aHTMLFilename
a36ca9158a69 show help bug fixed
tz
parents: 853
diff changeset
  1058
!
a36ca9158a69 show help bug fixed
tz
parents: 853
diff changeset
  1059
1018
7222534cb3dc part of the activeHelp framework moved to ApplicationModel.
Claus Gittinger <cg@exept.de>
parents: 1016
diff changeset
  1060
showHelp:aHelpText for:view
7222534cb3dc part of the activeHelp framework moved to ApplicationModel.
Claus Gittinger <cg@exept.de>
parents: 1016
diff changeset
  1061
    "displays aHelpText in the info label"
7222534cb3dc part of the activeHelp framework moved to ApplicationModel.
Claus Gittinger <cg@exept.de>
parents: 1016
diff changeset
  1062
1343
3ee2bcb3527d undo last change
ca
parents: 1341
diff changeset
  1063
"/    masterApplication notNil ifTrue:[
3ee2bcb3527d undo last change
ca
parents: 1341
diff changeset
  1064
"/        ^ masterApplication showHelp:aHelpText for:view
3ee2bcb3527d undo last change
ca
parents: 1341
diff changeset
  1065
"/    ].
3ee2bcb3527d undo last change
ca
parents: 1341
diff changeset
  1066
"/
1018
7222534cb3dc part of the activeHelp framework moved to ApplicationModel.
Claus Gittinger <cg@exept.de>
parents: 1016
diff changeset
  1067
    aHelpText isNil 
7222534cb3dc part of the activeHelp framework moved to ApplicationModel.
Claus Gittinger <cg@exept.de>
parents: 1016
diff changeset
  1068
        ifTrue:  [self updateInfoLabel] 
7222534cb3dc part of the activeHelp framework moved to ApplicationModel.
Claus Gittinger <cg@exept.de>
parents: 1016
diff changeset
  1069
        ifFalse: [self valueOfInfoLabel value: (aHelpText asString printString readStream through: $.)].
7222534cb3dc part of the activeHelp framework moved to ApplicationModel.
Claus Gittinger <cg@exept.de>
parents: 1016
diff changeset
  1070
7222534cb3dc part of the activeHelp framework moved to ApplicationModel.
Claus Gittinger <cg@exept.de>
parents: 1016
diff changeset
  1071
    "Created: / 20.6.1998 / 16:37:23 / cg"
7222534cb3dc part of the activeHelp framework moved to ApplicationModel.
Claus Gittinger <cg@exept.de>
parents: 1016
diff changeset
  1072
    "Modified: / 31.7.1998 / 18:40:19 / cg"
7222534cb3dc part of the activeHelp framework moved to ApplicationModel.
Claus Gittinger <cg@exept.de>
parents: 1016
diff changeset
  1073
!
7222534cb3dc part of the activeHelp framework moved to ApplicationModel.
Claus Gittinger <cg@exept.de>
parents: 1016
diff changeset
  1074
7222534cb3dc part of the activeHelp framework moved to ApplicationModel.
Claus Gittinger <cg@exept.de>
parents: 1016
diff changeset
  1075
showingHelp
7222534cb3dc part of the activeHelp framework moved to ApplicationModel.
Claus Gittinger <cg@exept.de>
parents: 1016
diff changeset
  1076
    "returns true, if automatic display of help is enabled for this
7222534cb3dc part of the activeHelp framework moved to ApplicationModel.
Claus Gittinger <cg@exept.de>
parents: 1016
diff changeset
  1077
     application; false otherwise"
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
  1078
783
4e1545900244 show help corrections
tz
parents: 782
diff changeset
  1079
    |currentActiveHelp|
858
a36ca9158a69 show help bug fixed
tz
parents: 853
diff changeset
  1080
783
4e1545900244 show help corrections
tz
parents: 782
diff changeset
  1081
    currentActiveHelp := ActiveHelp currentHelpListener.
4e1545900244 show help corrections
tz
parents: 782
diff changeset
  1082
1018
7222534cb3dc part of the activeHelp framework moved to ApplicationModel.
Claus Gittinger <cg@exept.de>
parents: 1016
diff changeset
  1083
    ^ self class showingHelp 
1051
65dfbf6481b5 showingHelp fixed (tree-item editor)
Claus Gittinger <cg@exept.de>
parents: 1043
diff changeset
  1084
      and: [currentActiveHelp notNil and: [
65dfbf6481b5 showingHelp fixed (tree-item editor)
Claus Gittinger <cg@exept.de>
parents: 1043
diff changeset
  1085
                currentActiveHelp interestedIn: self window]]
65dfbf6481b5 showingHelp fixed (tree-item editor)
Claus Gittinger <cg@exept.de>
parents: 1043
diff changeset
  1086
65dfbf6481b5 showingHelp fixed (tree-item editor)
Claus Gittinger <cg@exept.de>
parents: 1043
diff changeset
  1087
"/    ^ self class showingHelp 
65dfbf6481b5 showingHelp fixed (tree-item editor)
Claus Gittinger <cg@exept.de>
parents: 1043
diff changeset
  1088
"/      and: [currentActiveHelp notNil and: [masterApplication notNil 
65dfbf6481b5 showingHelp fixed (tree-item editor)
Claus Gittinger <cg@exept.de>
parents: 1043
diff changeset
  1089
"/                ifFalse: [currentActiveHelp interestedIn: self window]
65dfbf6481b5 showingHelp fixed (tree-item editor)
Claus Gittinger <cg@exept.de>
parents: 1043
diff changeset
  1090
"/                ifTrue:  [currentActiveHelp interestedIn: masterApplication window]]]
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
  1091
1018
7222534cb3dc part of the activeHelp framework moved to ApplicationModel.
Claus Gittinger <cg@exept.de>
parents: 1016
diff changeset
  1092
    "Created: / 31.7.1998 / 17:57:03 / cg"
1051
65dfbf6481b5 showingHelp fixed (tree-item editor)
Claus Gittinger <cg@exept.de>
parents: 1043
diff changeset
  1093
    "Modified: / 22.8.1998 / 00:06:38 / cg"
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
  1094
!
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
  1095
1018
7222534cb3dc part of the activeHelp framework moved to ApplicationModel.
Claus Gittinger <cg@exept.de>
parents: 1016
diff changeset
  1096
showingHelp: aValue
7222534cb3dc part of the activeHelp framework moved to ApplicationModel.
Claus Gittinger <cg@exept.de>
parents: 1016
diff changeset
  1097
    "toggles showing help for this application"
984
a0a868c45691 show help synchronously
Claus Gittinger <cg@exept.de>
parents: 982
diff changeset
  1098
1018
7222534cb3dc part of the activeHelp framework moved to ApplicationModel.
Claus Gittinger <cg@exept.de>
parents: 1016
diff changeset
  1099
    (self class showingHelp: aValue)
7222534cb3dc part of the activeHelp framework moved to ApplicationModel.
Claus Gittinger <cg@exept.de>
parents: 1016
diff changeset
  1100
        ifTrue:  [ActiveHelp startFor:self]
7222534cb3dc part of the activeHelp framework moved to ApplicationModel.
Claus Gittinger <cg@exept.de>
parents: 1016
diff changeset
  1101
        ifFalse: [ActiveHelp stopFor:self. self updateInfoLabel]
984
a0a868c45691 show help synchronously
Claus Gittinger <cg@exept.de>
parents: 982
diff changeset
  1102
1018
7222534cb3dc part of the activeHelp framework moved to ApplicationModel.
Claus Gittinger <cg@exept.de>
parents: 1016
diff changeset
  1103
    "Created: / 31.7.1998 / 18:20:44 / cg"
7222534cb3dc part of the activeHelp framework moved to ApplicationModel.
Claus Gittinger <cg@exept.de>
parents: 1016
diff changeset
  1104
    "Modified: / 31.7.1998 / 18:44:39 / cg"
822
374400d57e0b some useful aspects added
tz
parents: 821
diff changeset
  1105
!
374400d57e0b some useful aspects added
tz
parents: 821
diff changeset
  1106
374400d57e0b some useful aspects added
tz
parents: 821
diff changeset
  1107
updateInfoLabel
1018
7222534cb3dc part of the activeHelp framework moved to ApplicationModel.
Claus Gittinger <cg@exept.de>
parents: 1016
diff changeset
  1108
    "updates the info label at the bottom of this application"
822
374400d57e0b some useful aspects added
tz
parents: 821
diff changeset
  1109
374400d57e0b some useful aspects added
tz
parents: 821
diff changeset
  1110
    self valueOfInfoLabel value: self defaultInfoLabel
1018
7222534cb3dc part of the activeHelp framework moved to ApplicationModel.
Claus Gittinger <cg@exept.de>
parents: 1016
diff changeset
  1111
7222534cb3dc part of the activeHelp framework moved to ApplicationModel.
Claus Gittinger <cg@exept.de>
parents: 1016
diff changeset
  1112
    "Modified: / 31.7.1998 / 18:44:46 / cg"
762
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
  1113
! !
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
  1114
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1115
!ToolApplicationModel methodsFor:'history'!
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1116
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1117
addToHistory: aHistoryEntry
907
f4087882555a method comments added
tz
parents: 893
diff changeset
  1118
    "adds aHistoryEntry (format: loadMessage -> evalString) at the top of the history,
f4087882555a method comments added
tz
parents: 893
diff changeset
  1119
     and checks for maximum size of the history"
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1120
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
  1121
    aHistoryEntry key size = 0 ifTrue: [^nil].
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1122
    self history remove: (self history detect: [:histEntry| histEntry key = aHistoryEntry key] ifNone: nil) ifAbsent: nil.
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1123
    self history addFirst: aHistoryEntry.
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1124
    [self history size > self class historyMaxSize] whileTrue: [self history removeLast]
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1125
!
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1126
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1127
emptyHistory
907
f4087882555a method comments added
tz
parents: 893
diff changeset
  1128
    "removes all history entries"
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1129
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1130
    ^self history removeAll
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1131
!
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1132
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1133
history
907
f4087882555a method comments added
tz
parents: 893
diff changeset
  1134
    "returns the history from tool class"
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1135
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1136
    ^self class getHistory
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1137
!
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1138
844
5d9915ac0be6 checkin from browser
tz
parents: 838
diff changeset
  1139
historyEntries
907
f4087882555a method comments added
tz
parents: 893
diff changeset
  1140
    "returns the history entries, i.e. the evaluatable values containing the information"
844
5d9915ac0be6 checkin from browser
tz
parents: 838
diff changeset
  1141
5d9915ac0be6 checkin from browser
tz
parents: 838
diff changeset
  1142
    ^self history collect: [:asso| asso key]
5d9915ac0be6 checkin from browser
tz
parents: 838
diff changeset
  1143
!
5d9915ac0be6 checkin from browser
tz
parents: 838
diff changeset
  1144
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1145
menuHistory
907
f4087882555a method comments added
tz
parents: 893
diff changeset
  1146
    "returns a history submenu"
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1147
893
8a142b17a0c8 some cleans
tz
parents: 892
diff changeset
  1148
    |menu|
920
6b72e4ce4406 must find gui resources (xlations in in history menu)
Claus Gittinger <cg@exept.de>
parents: 910
diff changeset
  1149
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1150
    menu := Menu new receiver: self.
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1151
    (self history collect: [:histEntry| histEntry value]) asSet asOrderedCollection do:
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1152
    [:historyEntryType|    
1013
64f464903584 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1006
diff changeset
  1153
        menu addItemGroup:
64f464903584 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1006
diff changeset
  1154
                ((self history 
64f464903584 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1006
diff changeset
  1155
                    select: [:histEntry| 
64f464903584 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1006
diff changeset
  1156
                        histEntry value = historyEntryType]) 
64f464903584 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1006
diff changeset
  1157
                    collect: [:histEntry|  
64f464903584 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1006
diff changeset
  1158
                        MenuItem new 
64f464903584 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1006
diff changeset
  1159
                            label: histEntry key printString; 
64f464903584 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1006
diff changeset
  1160
                            value: histEntry value; 
64f464903584 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1006
diff changeset
  1161
                            argument: histEntry key; 
64f464903584 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1006
diff changeset
  1162
                            activeHelpKey: #historyMenuItem]).
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1163
    ]. 
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1164
920
6b72e4ce4406 must find gui resources (xlations in in history menu)
Claus Gittinger <cg@exept.de>
parents: 910
diff changeset
  1165
    menu addItem: (MenuItem new 
6b72e4ce4406 must find gui resources (xlations in in history menu)
Claus Gittinger <cg@exept.de>
parents: 910
diff changeset
  1166
                        label: 'Empty History'; 
6b72e4ce4406 must find gui resources (xlations in in history menu)
Claus Gittinger <cg@exept.de>
parents: 910
diff changeset
  1167
                        value: #emptyHistory; 
6b72e4ce4406 must find gui resources (xlations in in history menu)
Claus Gittinger <cg@exept.de>
parents: 910
diff changeset
  1168
                        activeHelpKey: #historyEmptyMenu;
6b72e4ce4406 must find gui resources (xlations in in history menu)
Claus Gittinger <cg@exept.de>
parents: 910
diff changeset
  1169
                        translateLabel:true).
6b72e4ce4406 must find gui resources (xlations in in history menu)
Claus Gittinger <cg@exept.de>
parents: 910
diff changeset
  1170
6b72e4ce4406 must find gui resources (xlations in in history menu)
Claus Gittinger <cg@exept.de>
parents: 910
diff changeset
  1171
    menu findGuiResourcesIn:self.
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1172
    ^menu
920
6b72e4ce4406 must find gui resources (xlations in in history menu)
Claus Gittinger <cg@exept.de>
parents: 910
diff changeset
  1173
1013
64f464903584 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1006
diff changeset
  1174
    "Modified: / 29.7.1998 / 11:40:11 / cg"
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1175
!
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1176
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1177
removeFromHistory: aHistoryEntry
907
f4087882555a method comments added
tz
parents: 893
diff changeset
  1178
    "removes aHistoryEntry from the history"
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1179
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1180
    self history remove: (self history detect: [:histEntry| histEntry key = aHistoryEntry key] ifNone: nil) ifAbsent: nil.
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1181
    [self history size > self class historyMaxSize] whileTrue: [self history removeLast]
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1182
! !
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1183
982
807f440e0df7 bw. compatibility - needs builder early.
Claus Gittinger <cg@exept.de>
parents: 971
diff changeset
  1184
!ToolApplicationModel methodsFor:'initialization'!
807f440e0df7 bw. compatibility - needs builder early.
Claus Gittinger <cg@exept.de>
parents: 971
diff changeset
  1185
807f440e0df7 bw. compatibility - needs builder early.
Claus Gittinger <cg@exept.de>
parents: 971
diff changeset
  1186
initialize
807f440e0df7 bw. compatibility - needs builder early.
Claus Gittinger <cg@exept.de>
parents: 971
diff changeset
  1187
    super initialize.
807f440e0df7 bw. compatibility - needs builder early.
Claus Gittinger <cg@exept.de>
parents: 971
diff changeset
  1188
    self createBuilder
807f440e0df7 bw. compatibility - needs builder early.
Claus Gittinger <cg@exept.de>
parents: 971
diff changeset
  1189
807f440e0df7 bw. compatibility - needs builder early.
Claus Gittinger <cg@exept.de>
parents: 971
diff changeset
  1190
    "Created: / 20.6.1998 / 14:51:29 / cg"
807f440e0df7 bw. compatibility - needs builder early.
Claus Gittinger <cg@exept.de>
parents: 971
diff changeset
  1191
! !
807f440e0df7 bw. compatibility - needs builder early.
Claus Gittinger <cg@exept.de>
parents: 971
diff changeset
  1192
1200
a86be4f3fd69 added clearModifiedFlag
Claus Gittinger <cg@exept.de>
parents: 1195
diff changeset
  1193
!ToolApplicationModel methodsFor:'misc'!
a86be4f3fd69 added clearModifiedFlag
Claus Gittinger <cg@exept.de>
parents: 1195
diff changeset
  1194
a86be4f3fd69 added clearModifiedFlag
Claus Gittinger <cg@exept.de>
parents: 1195
diff changeset
  1195
clearModifiedFlag
a86be4f3fd69 added clearModifiedFlag
Claus Gittinger <cg@exept.de>
parents: 1195
diff changeset
  1196
    "clear the modifiedChannel.
a86be4f3fd69 added clearModifiedFlag
Claus Gittinger <cg@exept.de>
parents: 1195
diff changeset
  1197
     That one is hooked to components in the right noteBook,
a86be4f3fd69 added clearModifiedFlag
Claus Gittinger <cg@exept.de>
parents: 1195
diff changeset
  1198
     and will be set, when any value is modified.
a86be4f3fd69 added clearModifiedFlag
Claus Gittinger <cg@exept.de>
parents: 1195
diff changeset
  1199
     (to enable OK and cancel buttons)"
a86be4f3fd69 added clearModifiedFlag
Claus Gittinger <cg@exept.de>
parents: 1195
diff changeset
  1200
a86be4f3fd69 added clearModifiedFlag
Claus Gittinger <cg@exept.de>
parents: 1195
diff changeset
  1201
    self modifiedChannel value:false
a86be4f3fd69 added clearModifiedFlag
Claus Gittinger <cg@exept.de>
parents: 1195
diff changeset
  1202
! !
a86be4f3fd69 added clearModifiedFlag
Claus Gittinger <cg@exept.de>
parents: 1195
diff changeset
  1203
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
  1204
!ToolApplicationModel methodsFor:'queries'!
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
  1205
876
585929b1fec2 some cleans
tz
parents: 872
diff changeset
  1206
allToolInstances
907
f4087882555a method comments added
tz
parents: 893
diff changeset
  1207
    "returns all instances of this tool class"
876
585929b1fec2 some cleans
tz
parents: 872
diff changeset
  1208
1150
5211197a2671 NEVER - redefine allInstances
Claus Gittinger <cg@exept.de>
parents: 1148
diff changeset
  1209
    ^ self class allToolInstances
1089
49b05d386ccc removed Thomas's memory leak
Claus Gittinger <cg@exept.de>
parents: 1084
diff changeset
  1210
49b05d386ccc removed Thomas's memory leak
Claus Gittinger <cg@exept.de>
parents: 1084
diff changeset
  1211
    "Modified: / 4.2.1999 / 15:34:58 / cg"
876
585929b1fec2 some cleans
tz
parents: 872
diff changeset
  1212
!
585929b1fec2 some cleans
tz
parents: 872
diff changeset
  1213
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
  1214
preferredExtent
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
  1215
    "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
  1216
     will be considered"
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
  1217
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
  1218
    |window menu menuToolbarView preferredExtentOfWindow|
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
  1219
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
  1220
    window          := self builder window. 
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
  1221
    menu            := window subViews first.
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
  1222
    menuToolbarView := builder componentAt: #menuToolbarView.
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
  1223
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
  1224
    preferredExtentOfWindow := window extent.
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
  1225
    menu class = MenuPanel ifTrue: [preferredExtentOfWindow := preferredExtentOfWindow max: menu preferredExtent].
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
  1226
    menuToolbarView notNil ifTrue: [preferredExtentOfWindow := preferredExtentOfWindow max: menuToolbarView preferredExtent].
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
  1227
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
  1228
    ^window minExtent max: (preferredExtentOfWindow min: window maxExtent)
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
  1229
! !
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
  1230
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1231
!ToolApplicationModel methodsFor:'startup / release'!
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1232
1107
f900f5d8993c more code cleanup
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1233
closeDownViews
907
f4087882555a method comments added
tz
parents: 893
diff changeset
  1234
    "uninitializes and closes this tool"
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1235
756
4dba5a8797ec *** empty log message ***
tz
parents: 753
diff changeset
  1236
    self uninitialize.
1107
f900f5d8993c more code cleanup
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1237
    super closeDownViews
1108
2d57365bc340 fixed a copy-paste bug
Claus Gittinger <cg@exept.de>
parents: 1107
diff changeset
  1238
!
936
d3d50ac7cdd0 code compression
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1239
790
648fac120039 time clock runs now correctly
tz
parents: 784
diff changeset
  1240
postOpenWith:aBuilder
907
f4087882555a method comments added
tz
parents: 893
diff changeset
  1241
    "starts the active help for this tool (if turned on in the settings)
f4087882555a method comments added
tz
parents: 893
diff changeset
  1242
     and updates the info label and the fonts (from the settings)"
790
648fac120039 time clock runs now correctly
tz
parents: 784
diff changeset
  1243
648fac120039 time clock runs now correctly
tz
parents: 784
diff changeset
  1244
    super postOpenWith:aBuilder.
648fac120039 time clock runs now correctly
tz
parents: 784
diff changeset
  1245
822
374400d57e0b some useful aspects added
tz
parents: 821
diff changeset
  1246
    self updateInfoLabel.
1104
a2f59712ce7b removed the (stupid) fontSettings menu support.
Claus Gittinger <cg@exept.de>
parents: 1091
diff changeset
  1247
"/    self updateFonts.
a2f59712ce7b removed the (stupid) fontSettings menu support.
Claus Gittinger <cg@exept.de>
parents: 1091
diff changeset
  1248
    self showingHelp:true
876
585929b1fec2 some cleans
tz
parents: 872
diff changeset
  1249
1018
7222534cb3dc part of the activeHelp framework moved to ApplicationModel.
Claus Gittinger <cg@exept.de>
parents: 1016
diff changeset
  1250
    "Modified: / 31.7.1998 / 18:17:34 / cg"
790
648fac120039 time clock runs now correctly
tz
parents: 784
diff changeset
  1251
!
648fac120039 time clock runs now correctly
tz
parents: 784
diff changeset
  1252
1323
045c3a6e4a88 after restart from image, restart also the timed block if defined
ca
parents: 1284
diff changeset
  1253
restarted
045c3a6e4a88 after restart from image, restart also the timed block if defined
ca
parents: 1284
diff changeset
  1254
    "sent by my windowGroup, when restarted from an image.
045c3a6e4a88 after restart from image, restart also the timed block if defined
ca
parents: 1284
diff changeset
  1255
     restart timed block if defined.
045c3a6e4a88 after restart from image, restart also the timed block if defined
ca
parents: 1284
diff changeset
  1256
    "
045c3a6e4a88 after restart from image, restart also the timed block if defined
ca
parents: 1284
diff changeset
  1257
    timeBlock notNil ifTrue:[
045c3a6e4a88 after restart from image, restart also the timed block if defined
ca
parents: 1284
diff changeset
  1258
        Processor removeTimedBlock:timeBlock.
045c3a6e4a88 after restart from image, restart also the timed block if defined
ca
parents: 1284
diff changeset
  1259
        self startClockOnTimedBlock:timeBlock.
045c3a6e4a88 after restart from image, restart also the timed block if defined
ca
parents: 1284
diff changeset
  1260
    ].
045c3a6e4a88 after restart from image, restart also the timed block if defined
ca
parents: 1284
diff changeset
  1261
    super restarted.
045c3a6e4a88 after restart from image, restart also the timed block if defined
ca
parents: 1284
diff changeset
  1262
!
045c3a6e4a88 after restart from image, restart also the timed block if defined
ca
parents: 1284
diff changeset
  1263
756
4dba5a8797ec *** empty log message ***
tz
parents: 753
diff changeset
  1264
uninitialize
1018
7222534cb3dc part of the activeHelp framework moved to ApplicationModel.
Claus Gittinger <cg@exept.de>
parents: 1016
diff changeset
  1265
    "stops active help for this tool and (if defined) removes the time block"
756
4dba5a8797ec *** empty log message ***
tz
parents: 753
diff changeset
  1266
1018
7222534cb3dc part of the activeHelp framework moved to ApplicationModel.
Claus Gittinger <cg@exept.de>
parents: 1016
diff changeset
  1267
    self showingHelp ifTrue: [ActiveHelp stopFor: self].
876
585929b1fec2 some cleans
tz
parents: 872
diff changeset
  1268
    timeBlock notNil ifTrue: [Processor removeTimedBlock:timeBlock. timeBlock := nil].
585929b1fec2 some cleans
tz
parents: 872
diff changeset
  1269
1018
7222534cb3dc part of the activeHelp framework moved to ApplicationModel.
Claus Gittinger <cg@exept.de>
parents: 1016
diff changeset
  1270
    "Modified: / 31.7.1998 / 18:46:21 / cg"
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1271
! !
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1272
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1273
!ToolApplicationModel class methodsFor:'documentation'!
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1274
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1275
version
1427
b3e355574ccf comment only
Claus Gittinger <cg@exept.de>
parents: 1391
diff changeset
  1276
    ^ '$Header: /cvs/stx/stx/libview2/ToolApplicationModel.st,v 1.99 2000-11-15 12:34:52 cg Exp $'
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1277
! !