ToolApplicationModel.st
author Stefan Vogel <sv@exept.de>
Sat, 16 Apr 2011 22:32:59 +0200
changeset 2907 d5ebe876eeaa
parent 2880 13e0be57cc20
child 2919 b21470d5e318
permissions -rw-r--r--
comment/format in: #fileHistoryEntries removw unused methods
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
"
1391
383411d95966 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
    12
"{ Package: 'stx:libview2' }"
383411d95966 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
    13
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
    14
ApplicationModel subclass:#ToolApplicationModel
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
    15
	instanceVariableNames:'timeBlock'
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
    16
	classVariableNames:''
9c837d99f109 intitial checkin
tz
parents:
diff changeset
    17
	poolDictionaries:''
834
ac1655bd31bb class category changed
tz
parents: 833
diff changeset
    18
	category:'Interface-Framework'
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
    19
!
9c837d99f109 intitial checkin
tz
parents:
diff changeset
    20
1969
8e8f5998d053 separate fileHistory
Claus Gittinger <cg@exept.de>
parents: 1809
diff changeset
    21
ToolApplicationModel class instanceVariableNames:'history fileHistory clipboard settings showingHelp instances'
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
    22
9c837d99f109 intitial checkin
tz
parents:
diff changeset
    23
"
9c837d99f109 intitial checkin
tz
parents:
diff changeset
    24
 The following class instance variables are inherited by this class:
9c837d99f109 intitial checkin
tz
parents:
diff changeset
    25
9c837d99f109 intitial checkin
tz
parents:
diff changeset
    26
	ApplicationModel - ClassResources
9c837d99f109 intitial checkin
tz
parents:
diff changeset
    27
	Model - 
9c837d99f109 intitial checkin
tz
parents:
diff changeset
    28
	Object - 
9c837d99f109 intitial checkin
tz
parents:
diff changeset
    29
"
9c837d99f109 intitial checkin
tz
parents:
diff changeset
    30
!
9c837d99f109 intitial checkin
tz
parents:
diff changeset
    31
2098
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
    32
Object subclass:#HistoryEntry
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
    33
	instanceVariableNames:''
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
    34
	classVariableNames:''
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
    35
	poolDictionaries:''
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
    36
	privateIn:ToolApplicationModel
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
    37
!
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
    38
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
    39
ToolApplicationModel::HistoryEntry subclass:#HistoryEntryForFile
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
    40
	instanceVariableNames:'filename'
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
    41
	classVariableNames:''
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
    42
	poolDictionaries:''
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
    43
	privateIn:ToolApplicationModel
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
    44
!
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
    45
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
    46
ToolApplicationModel::HistoryEntry subclass:#HistoryEntryForMethod
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
    47
	instanceVariableNames:'methodClass methodSelector'
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
    48
	classVariableNames:''
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
    49
	poolDictionaries:''
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
    50
	privateIn:ToolApplicationModel
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
    51
!
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
    52
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
    53
!ToolApplicationModel class methodsFor:'documentation'!
9c837d99f109 intitial checkin
tz
parents:
diff changeset
    54
756
4dba5a8797ec *** empty log message ***
tz
parents: 753
diff changeset
    55
copyright
4dba5a8797ec *** empty log message ***
tz
parents: 753
diff changeset
    56
"
784
b08b05900f30 copyright changed
tz
parents: 783
diff changeset
    57
 COPYRIGHT (c) 1997 by eXept Software AG
756
4dba5a8797ec *** empty log message ***
tz
parents: 753
diff changeset
    58
              All Rights Reserved
4dba5a8797ec *** empty log message ***
tz
parents: 753
diff changeset
    59
4dba5a8797ec *** empty log message ***
tz
parents: 753
diff changeset
    60
 This software is furnished under a license and may be used
4dba5a8797ec *** empty log message ***
tz
parents: 753
diff changeset
    61
 only in accordance with the terms of that license and with the
4dba5a8797ec *** empty log message ***
tz
parents: 753
diff changeset
    62
 inclusion of the above copyright notice. This software may not
4dba5a8797ec *** empty log message ***
tz
parents: 753
diff changeset
    63
 be provided or otherwise made available to, or used by, any
4dba5a8797ec *** empty log message ***
tz
parents: 753
diff changeset
    64
 other person. No title to or ownership of the software is
4dba5a8797ec *** empty log message ***
tz
parents: 753
diff changeset
    65
 hereby transferred.
4dba5a8797ec *** empty log message ***
tz
parents: 753
diff changeset
    66
"
4dba5a8797ec *** empty log message ***
tz
parents: 753
diff changeset
    67
4dba5a8797ec *** empty log message ***
tz
parents: 753
diff changeset
    68
4dba5a8797ec *** empty log message ***
tz
parents: 753
diff changeset
    69
!
4dba5a8797ec *** empty log message ***
tz
parents: 753
diff changeset
    70
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
    71
documentation
9c837d99f109 intitial checkin
tz
parents:
diff changeset
    72
"
1200
a86be4f3fd69 added clearModifiedFlag
Claus Gittinger <cg@exept.de>
parents: 1195
diff changeset
    73
    Framework class for tool applications (UIPainter, MenuEditor etc.).
a86be4f3fd69 added clearModifiedFlag
Claus Gittinger <cg@exept.de>
parents: 1195
diff changeset
    74
    Provides hooks for modifiedChannels, history management,
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
    75
    showing help texts, about menu, help menu etc.
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
    76
9c837d99f109 intitial checkin
tz
parents:
diff changeset
    77
    [author:]
876
585929b1fec2 some cleans
tz
parents: 872
diff changeset
    78
        Thomas Zwick, eXept Software AG
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
    79
"
9c837d99f109 intitial checkin
tz
parents:
diff changeset
    80
! !
9c837d99f109 intitial checkin
tz
parents:
diff changeset
    81
9c837d99f109 intitial checkin
tz
parents:
diff changeset
    82
!ToolApplicationModel class methodsFor:'accessing'!
9c837d99f109 intitial checkin
tz
parents:
diff changeset
    83
1150
5211197a2671 NEVER - redefine allInstances
Claus Gittinger <cg@exept.de>
parents: 1148
diff changeset
    84
allToolInstances
1089
49b05d386ccc removed Thomas's memory leak
Claus Gittinger <cg@exept.de>
parents: 1084
diff changeset
    85
    ^ instances ? #()
49b05d386ccc removed Thomas's memory leak
Claus Gittinger <cg@exept.de>
parents: 1084
diff changeset
    86
49b05d386ccc removed Thomas's memory leak
Claus Gittinger <cg@exept.de>
parents: 1084
diff changeset
    87
    "Created: / 4.2.1999 / 15:34:55 / cg"
49b05d386ccc removed Thomas's memory leak
Claus Gittinger <cg@exept.de>
parents: 1084
diff changeset
    88
!
49b05d386ccc removed Thomas's memory leak
Claus Gittinger <cg@exept.de>
parents: 1084
diff changeset
    89
800
b98050cf7a43 better author extraction.
Claus Gittinger <cg@exept.de>
parents: 799
diff changeset
    90
authorLinesForAboutBox
907
f4087882555a method comments added
tz
parents: 893
diff changeset
    91
    "extracts the author(s) from the documentation method."
800
b98050cf7a43 better author extraction.
Claus Gittinger <cg@exept.de>
parents: 799
diff changeset
    92
2266
2f9a3d9320a7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2140
diff changeset
    93
    |firstClassWithDocumentation docMethod src s line lines|
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
    94
1555
ba83d682d20a implements -> includesSelector
Claus Gittinger <cg@exept.de>
parents: 1545
diff changeset
    95
    firstClassWithDocumentation := self class withAllSuperclasses detect:[:metacls| metacls includesSelector:#documentation].
800
b98050cf7a43 better author extraction.
Claus Gittinger <cg@exept.de>
parents: 799
diff changeset
    96
    firstClassWithDocumentation notNil ifTrue:[
b98050cf7a43 better author extraction.
Claus Gittinger <cg@exept.de>
parents: 799
diff changeset
    97
        (firstClassWithDocumentation inheritsFrom:ToolApplicationModel class) ifTrue:[
2266
2f9a3d9320a7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2140
diff changeset
    98
            docMethod := firstClassWithDocumentation compiledMethodAt:#documentation.
2f9a3d9320a7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2140
diff changeset
    99
            docMethod notNil ifTrue:[
2f9a3d9320a7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2140
diff changeset
   100
                src := docMethod source.
2f9a3d9320a7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2140
diff changeset
   101
                src notNil ifTrue:[
2f9a3d9320a7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2140
diff changeset
   102
                    s := src readStream.
2f9a3d9320a7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2140
diff changeset
   103
                    s upToAll:'[author:]'.
2f9a3d9320a7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2140
diff changeset
   104
                    s nextLine.   "/ skip to end
2f9a3d9320a7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2140
diff changeset
   105
                    line := s nextLine.   "/ line after [author:]
2f9a3d9320a7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2140
diff changeset
   106
                    lines := OrderedCollection new.
2f9a3d9320a7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2140
diff changeset
   107
                    [line notEmptyOrNil] whileTrue:[
2f9a3d9320a7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2140
diff changeset
   108
                        line := line withoutSeparators.
2f9a3d9320a7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2140
diff changeset
   109
                        line size > 1 ifTrue:[
2f9a3d9320a7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2140
diff changeset
   110
                            lines add:line withoutSeparators.
2f9a3d9320a7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2140
diff changeset
   111
                            line := s nextLine.
2f9a3d9320a7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2140
diff changeset
   112
                        ] ifFalse:[
2f9a3d9320a7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2140
diff changeset
   113
                            line := nil
2f9a3d9320a7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2140
diff changeset
   114
                        ]
2f9a3d9320a7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2140
diff changeset
   115
                    ].
2f9a3d9320a7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2140
diff changeset
   116
                    ^ lines.
2f9a3d9320a7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2140
diff changeset
   117
                ]
800
b98050cf7a43 better author extraction.
Claus Gittinger <cg@exept.de>
parents: 799
diff changeset
   118
            ]
b98050cf7a43 better author extraction.
Claus Gittinger <cg@exept.de>
parents: 799
diff changeset
   119
        ]
b98050cf7a43 better author extraction.
Claus Gittinger <cg@exept.de>
parents: 799
diff changeset
   120
    ].
2266
2f9a3d9320a7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2140
diff changeset
   121
    ( #('stx' 'exept') includes:self class package asPackageId module) ifTrue:[
2f9a3d9320a7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2140
diff changeset
   122
        ^ #('eXept Software AG')
2f9a3d9320a7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2140
diff changeset
   123
    ].
800
b98050cf7a43 better author extraction.
Claus Gittinger <cg@exept.de>
parents: 799
diff changeset
   124
2266
2f9a3d9320a7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2140
diff changeset
   125
    ^ #('?')
2f9a3d9320a7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2140
diff changeset
   126
2f9a3d9320a7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2140
diff changeset
   127
    "Created: / 01-02-1998 / 15:41:43 / cg"
2f9a3d9320a7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2140
diff changeset
   128
    "Modified: / 25-10-2006 / 17:29:35 / cg"
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   129
!
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   130
1089
49b05d386ccc removed Thomas's memory leak
Claus Gittinger <cg@exept.de>
parents: 1084
diff changeset
   131
forgetInstance:anInstance
2121
aaa63f6a0025 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2108
diff changeset
   132
    instances notNil ifTrue:[
aaa63f6a0025 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2108
diff changeset
   133
        instances remove:anInstance ifAbsent:[].
aaa63f6a0025 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2108
diff changeset
   134
        instances isEmpty ifTrue:[instances := nil].
aaa63f6a0025 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2108
diff changeset
   135
    ].
1089
49b05d386ccc removed Thomas's memory leak
Claus Gittinger <cg@exept.de>
parents: 1084
diff changeset
   136
49b05d386ccc removed Thomas's memory leak
Claus Gittinger <cg@exept.de>
parents: 1084
diff changeset
   137
    "Modified: / 4.2.1999 / 15:38:49 / 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
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   140
label
1018
7222534cb3dc part of the activeHelp framework moved to ApplicationModel.
Claus Gittinger <cg@exept.de>
parents: 1016
diff changeset
   141
    "returns the label for the tool instances of this class;
907
f4087882555a method comments added
tz
parents: 893
diff changeset
   142
     extracted from the class name;
f4087882555a method comments added
tz
parents: 893
diff changeset
   143
     can be redefined in subclasses"
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   144
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   145
    |label|
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   146
    label := ''.
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   147
    self name do:
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   148
    [:c|
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   149
        c isUppercase ifTrue: [label := label, $ ].
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   150
        label := label, c
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   151
    ].
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   152
    ^label trimBlanks
1018
7222534cb3dc part of the activeHelp framework moved to ApplicationModel.
Claus Gittinger <cg@exept.de>
parents: 1016
diff changeset
   153
7222534cb3dc part of the activeHelp framework moved to ApplicationModel.
Claus Gittinger <cg@exept.de>
parents: 1016
diff changeset
   154
    "Modified: / 31.7.1998 / 18:04:18 / 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
1089
49b05d386ccc removed Thomas's memory leak
Claus Gittinger <cg@exept.de>
parents: 1084
diff changeset
   157
rememberInstance:anInstance
49b05d386ccc removed Thomas's memory leak
Claus Gittinger <cg@exept.de>
parents: 1084
diff changeset
   158
    instances isNil ifTrue:[
49b05d386ccc removed Thomas's memory leak
Claus Gittinger <cg@exept.de>
parents: 1084
diff changeset
   159
        instances := WeakIdentitySet new
49b05d386ccc removed Thomas's memory leak
Claus Gittinger <cg@exept.de>
parents: 1084
diff changeset
   160
    ].
49b05d386ccc removed Thomas's memory leak
Claus Gittinger <cg@exept.de>
parents: 1084
diff changeset
   161
    instances add:anInstance
49b05d386ccc removed Thomas's memory leak
Claus Gittinger <cg@exept.de>
parents: 1084
diff changeset
   162
49b05d386ccc removed Thomas's memory leak
Claus Gittinger <cg@exept.de>
parents: 1084
diff changeset
   163
    "Created: / 4.2.1999 / 15:33:43 / cg"
49b05d386ccc removed Thomas's memory leak
Claus Gittinger <cg@exept.de>
parents: 1084
diff changeset
   164
    "Modified: / 4.2.1999 / 15:34:14 / cg"
49b05d386ccc removed Thomas's memory leak
Claus Gittinger <cg@exept.de>
parents: 1084
diff changeset
   165
!
49b05d386ccc removed Thomas's memory leak
Claus Gittinger <cg@exept.de>
parents: 1084
diff changeset
   166
850
cdf5ecf904e2 some obselete icons removed
tz
parents: 846
diff changeset
   167
settings
907
f4087882555a method comments added
tz
parents: 893
diff changeset
   168
    "returns the settings dictionary"
850
cdf5ecf904e2 some obselete icons removed
tz
parents: 846
diff changeset
   169
872
a1606dcbd38b better font setting routines
tz
parents: 871
diff changeset
   170
    settings isNil ifTrue: [settings := IdentityDictionary new].
a1606dcbd38b better font setting routines
tz
parents: 871
diff changeset
   171
    ^settings
850
cdf5ecf904e2 some obselete icons removed
tz
parents: 846
diff changeset
   172
!
cdf5ecf904e2 some obselete icons removed
tz
parents: 846
diff changeset
   173
1018
7222534cb3dc part of the activeHelp framework moved to ApplicationModel.
Claus Gittinger <cg@exept.de>
parents: 1016
diff changeset
   174
showingHelp
7222534cb3dc part of the activeHelp framework moved to ApplicationModel.
Claus Gittinger <cg@exept.de>
parents: 1016
diff changeset
   175
    "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
   176
1018
7222534cb3dc part of the activeHelp framework moved to ApplicationModel.
Claus Gittinger <cg@exept.de>
parents: 1016
diff changeset
   177
    showingHelp isNil ifTrue: [showingHelp := true].
7222534cb3dc part of the activeHelp framework moved to ApplicationModel.
Claus Gittinger <cg@exept.de>
parents: 1016
diff changeset
   178
    ^showingHelp
7222534cb3dc part of the activeHelp framework moved to ApplicationModel.
Claus Gittinger <cg@exept.de>
parents: 1016
diff changeset
   179
7222534cb3dc part of the activeHelp framework moved to ApplicationModel.
Claus Gittinger <cg@exept.de>
parents: 1016
diff changeset
   180
    "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
   181
    "Modified: / 31.7.1998 / 18:16:55 / cg"
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   182
!
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   183
1018
7222534cb3dc part of the activeHelp framework moved to ApplicationModel.
Claus Gittinger <cg@exept.de>
parents: 1016
diff changeset
   184
showingHelp: aBoolean
7222534cb3dc part of the activeHelp framework moved to ApplicationModel.
Claus Gittinger <cg@exept.de>
parents: 1016
diff changeset
   185
    "enable/disable active help for instances of this class"
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   186
1018
7222534cb3dc part of the activeHelp framework moved to ApplicationModel.
Claus Gittinger <cg@exept.de>
parents: 1016
diff changeset
   187
    ^ showingHelp := aBoolean
7222534cb3dc part of the activeHelp framework moved to ApplicationModel.
Claus Gittinger <cg@exept.de>
parents: 1016
diff changeset
   188
7222534cb3dc part of the activeHelp framework moved to ApplicationModel.
Claus Gittinger <cg@exept.de>
parents: 1016
diff changeset
   189
    "Modified: / 31.7.1998 / 18:17:14 / cg"
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   190
! !
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   191
756
4dba5a8797ec *** empty log message ***
tz
parents: 753
diff changeset
   192
!ToolApplicationModel class methodsFor:'clipboard'!
4dba5a8797ec *** empty log message ***
tz
parents: 753
diff changeset
   193
4dba5a8797ec *** empty log message ***
tz
parents: 753
diff changeset
   194
clipboard
907
f4087882555a method comments added
tz
parents: 893
diff changeset
   195
    "returns the clipboard of this tool class"
756
4dba5a8797ec *** empty log message ***
tz
parents: 753
diff changeset
   196
4dba5a8797ec *** empty log message ***
tz
parents: 753
diff changeset
   197
    ^clipboard
4dba5a8797ec *** empty log message ***
tz
parents: 753
diff changeset
   198
!
4dba5a8797ec *** empty log message ***
tz
parents: 753
diff changeset
   199
4dba5a8797ec *** empty log message ***
tz
parents: 753
diff changeset
   200
clipboard: anEditObject
907
f4087882555a method comments added
tz
parents: 893
diff changeset
   201
    "sets the clipboard for this tool class"
756
4dba5a8797ec *** empty log message ***
tz
parents: 753
diff changeset
   202
4dba5a8797ec *** empty log message ***
tz
parents: 753
diff changeset
   203
    clipboard := anEditObject
4dba5a8797ec *** empty log message ***
tz
parents: 753
diff changeset
   204
! !
4dba5a8797ec *** empty log message ***
tz
parents: 753
diff changeset
   205
1043
32cd5ccbd94f made openAboutSTX a class method for sharability.
Claus Gittinger <cg@exept.de>
parents: 1040
diff changeset
   206
!ToolApplicationModel class methodsFor:'help'!
32cd5ccbd94f made openAboutSTX a class method for sharability.
Claus Gittinger <cg@exept.de>
parents: 1040
diff changeset
   207
32cd5ccbd94f made openAboutSTX a class method for sharability.
Claus Gittinger <cg@exept.de>
parents: 1040
diff changeset
   208
openAboutSTX
32cd5ccbd94f made openAboutSTX a class method for sharability.
Claus Gittinger <cg@exept.de>
parents: 1040
diff changeset
   209
    "opens an about box (on ST/X)"
32cd5ccbd94f made openAboutSTX a class method for sharability.
Claus Gittinger <cg@exept.de>
parents: 1040
diff changeset
   210
32cd5ccbd94f made openAboutSTX a class method for sharability.
Claus Gittinger <cg@exept.de>
parents: 1040
diff changeset
   211
    |box|
32cd5ccbd94f made openAboutSTX a class method for sharability.
Claus Gittinger <cg@exept.de>
parents: 1040
diff changeset
   212
32cd5ccbd94f made openAboutSTX a class method for sharability.
Claus Gittinger <cg@exept.de>
parents: 1040
diff changeset
   213
    AboutBox isNil ifTrue:[
32cd5ccbd94f made openAboutSTX a class method for sharability.
Claus Gittinger <cg@exept.de>
parents: 1040
diff changeset
   214
        "/ this handles bad installations of ST/X,
32cd5ccbd94f made openAboutSTX a class method for sharability.
Claus Gittinger <cg@exept.de>
parents: 1040
diff changeset
   215
        "/ where the AboutBox is missing.
32cd5ccbd94f made openAboutSTX a class method for sharability.
Claus Gittinger <cg@exept.de>
parents: 1040
diff changeset
   216
        "/ (May vanish in the future)
32cd5ccbd94f made openAboutSTX a class method for sharability.
Claus Gittinger <cg@exept.de>
parents: 1040
diff changeset
   217
        ^ self information:('Smalltalk/X rev.' , Smalltalk versionString)
32cd5ccbd94f made openAboutSTX a class method for sharability.
Claus Gittinger <cg@exept.de>
parents: 1040
diff changeset
   218
    ].
32cd5ccbd94f made openAboutSTX a class method for sharability.
Claus Gittinger <cg@exept.de>
parents: 1040
diff changeset
   219
32cd5ccbd94f made openAboutSTX a class method for sharability.
Claus Gittinger <cg@exept.de>
parents: 1040
diff changeset
   220
    box := AboutBox new.
32cd5ccbd94f made openAboutSTX a class method for sharability.
Claus Gittinger <cg@exept.de>
parents: 1040
diff changeset
   221
    box autoHideAfter:10 with:[].
1091
6816bfce45a3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1089
diff changeset
   222
    box showAtCenter
6816bfce45a3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1089
diff changeset
   223
"/    box showAtPointer
1043
32cd5ccbd94f made openAboutSTX a class method for sharability.
Claus Gittinger <cg@exept.de>
parents: 1040
diff changeset
   224
32cd5ccbd94f made openAboutSTX a class method for sharability.
Claus Gittinger <cg@exept.de>
parents: 1040
diff changeset
   225
    "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
   226
    "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
   227
! !
32cd5ccbd94f made openAboutSTX a class method for sharability.
Claus Gittinger <cg@exept.de>
parents: 1040
diff changeset
   228
762
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
   229
!ToolApplicationModel class methodsFor:'help specs'!
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
   230
1538
e906245e5171 flyByHelp
Claus Gittinger <cg@exept.de>
parents: 1530
diff changeset
   231
flyByHelpSpec
e906245e5171 flyByHelp
Claus Gittinger <cg@exept.de>
parents: 1530
diff changeset
   232
    <resource: #help>
e906245e5171 flyByHelp
Claus Gittinger <cg@exept.de>
parents: 1530
diff changeset
   233
1544
df243cbc29dd flyByHelp stuff
Claus Gittinger <cg@exept.de>
parents: 1538
diff changeset
   234
    ^super flyByHelpSpec addPairsFrom:#(
df243cbc29dd flyByHelp stuff
Claus Gittinger <cg@exept.de>
parents: 1538
diff changeset
   235
df243cbc29dd flyByHelp stuff
Claus Gittinger <cg@exept.de>
parents: 1538
diff changeset
   236
"/#commitCancel
df243cbc29dd flyByHelp stuff
Claus Gittinger <cg@exept.de>
parents: 1538
diff changeset
   237
"/'Cancels'
df243cbc29dd flyByHelp stuff
Claus Gittinger <cg@exept.de>
parents: 1538
diff changeset
   238
"/
df243cbc29dd flyByHelp stuff
Claus Gittinger <cg@exept.de>
parents: 1538
diff changeset
   239
"/#commitOK
df243cbc29dd flyByHelp stuff
Claus Gittinger <cg@exept.de>
parents: 1538
diff changeset
   240
"/'Commit'
df243cbc29dd flyByHelp stuff
Claus Gittinger <cg@exept.de>
parents: 1538
diff changeset
   241
df243cbc29dd flyByHelp stuff
Claus Gittinger <cg@exept.de>
parents: 1538
diff changeset
   242
#editCopy
1644
cc5baaae05e8 flyByHelp fixed
Claus Gittinger <cg@exept.de>
parents: 1632
diff changeset
   243
"/ 'Copy to clipboard'
cc5baaae05e8 flyByHelp fixed
Claus Gittinger <cg@exept.de>
parents: 1632
diff changeset
   244
'Copy'
1544
df243cbc29dd flyByHelp stuff
Claus Gittinger <cg@exept.de>
parents: 1538
diff changeset
   245
df243cbc29dd flyByHelp stuff
Claus Gittinger <cg@exept.de>
parents: 1538
diff changeset
   246
#editCut
1644
cc5baaae05e8 flyByHelp fixed
Claus Gittinger <cg@exept.de>
parents: 1632
diff changeset
   247
"/ 'Move to clipboard'
cc5baaae05e8 flyByHelp fixed
Claus Gittinger <cg@exept.de>
parents: 1632
diff changeset
   248
'Cut'
1544
df243cbc29dd flyByHelp stuff
Claus Gittinger <cg@exept.de>
parents: 1538
diff changeset
   249
df243cbc29dd flyByHelp stuff
Claus Gittinger <cg@exept.de>
parents: 1538
diff changeset
   250
#editDelete
df243cbc29dd flyByHelp stuff
Claus Gittinger <cg@exept.de>
parents: 1538
diff changeset
   251
'Delete'
df243cbc29dd flyByHelp stuff
Claus Gittinger <cg@exept.de>
parents: 1538
diff changeset
   252
2587
9d68cef3f410 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2537
diff changeset
   253
#editSearch
9d68cef3f410 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2537
diff changeset
   254
'Search'
9d68cef3f410 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2537
diff changeset
   255
1544
df243cbc29dd flyByHelp stuff
Claus Gittinger <cg@exept.de>
parents: 1538
diff changeset
   256
#editMoveDown
1644
cc5baaae05e8 flyByHelp fixed
Claus Gittinger <cg@exept.de>
parents: 1632
diff changeset
   257
'Move Down'
1544
df243cbc29dd flyByHelp stuff
Claus Gittinger <cg@exept.de>
parents: 1538
diff changeset
   258
df243cbc29dd flyByHelp stuff
Claus Gittinger <cg@exept.de>
parents: 1538
diff changeset
   259
#editMoveIn
1644
cc5baaae05e8 flyByHelp fixed
Claus Gittinger <cg@exept.de>
parents: 1632
diff changeset
   260
'Move Into Next'
1544
df243cbc29dd flyByHelp stuff
Claus Gittinger <cg@exept.de>
parents: 1538
diff changeset
   261
df243cbc29dd flyByHelp stuff
Claus Gittinger <cg@exept.de>
parents: 1538
diff changeset
   262
#editMoveInAbove
1644
cc5baaae05e8 flyByHelp fixed
Claus Gittinger <cg@exept.de>
parents: 1632
diff changeset
   263
'Move Into Previous'
1538
e906245e5171 flyByHelp
Claus Gittinger <cg@exept.de>
parents: 1530
diff changeset
   264
1544
df243cbc29dd flyByHelp stuff
Claus Gittinger <cg@exept.de>
parents: 1538
diff changeset
   265
#editMoveOut
1644
cc5baaae05e8 flyByHelp fixed
Claus Gittinger <cg@exept.de>
parents: 1632
diff changeset
   266
'Move Out'
1544
df243cbc29dd flyByHelp stuff
Claus Gittinger <cg@exept.de>
parents: 1538
diff changeset
   267
df243cbc29dd flyByHelp stuff
Claus Gittinger <cg@exept.de>
parents: 1538
diff changeset
   268
#editMoveUp
1644
cc5baaae05e8 flyByHelp fixed
Claus Gittinger <cg@exept.de>
parents: 1632
diff changeset
   269
'Move Up'
1544
df243cbc29dd flyByHelp stuff
Claus Gittinger <cg@exept.de>
parents: 1538
diff changeset
   270
df243cbc29dd flyByHelp stuff
Claus Gittinger <cg@exept.de>
parents: 1538
diff changeset
   271
#editPaste
df243cbc29dd flyByHelp stuff
Claus Gittinger <cg@exept.de>
parents: 1538
diff changeset
   272
'Paste'
df243cbc29dd flyByHelp stuff
Claus Gittinger <cg@exept.de>
parents: 1538
diff changeset
   273
df243cbc29dd flyByHelp stuff
Claus Gittinger <cg@exept.de>
parents: 1538
diff changeset
   274
#editUndo
df243cbc29dd flyByHelp stuff
Claus Gittinger <cg@exept.de>
parents: 1538
diff changeset
   275
'Undo'
df243cbc29dd flyByHelp stuff
Claus Gittinger <cg@exept.de>
parents: 1538
diff changeset
   276
df243cbc29dd flyByHelp stuff
Claus Gittinger <cg@exept.de>
parents: 1538
diff changeset
   277
#fileBrowseClass
df243cbc29dd flyByHelp stuff
Claus Gittinger <cg@exept.de>
parents: 1538
diff changeset
   278
'Browse class'
df243cbc29dd flyByHelp stuff
Claus Gittinger <cg@exept.de>
parents: 1538
diff changeset
   279
df243cbc29dd flyByHelp stuff
Claus Gittinger <cg@exept.de>
parents: 1538
diff changeset
   280
#fileDefineClass
df243cbc29dd flyByHelp stuff
Claus Gittinger <cg@exept.de>
parents: 1538
diff changeset
   281
'Define class'
df243cbc29dd flyByHelp stuff
Claus Gittinger <cg@exept.de>
parents: 1538
diff changeset
   282
df243cbc29dd flyByHelp stuff
Claus Gittinger <cg@exept.de>
parents: 1538
diff changeset
   283
#fileDefineClassAndSelector
df243cbc29dd flyByHelp stuff
Claus Gittinger <cg@exept.de>
parents: 1538
diff changeset
   284
'Define class & selector'
df243cbc29dd flyByHelp stuff
Claus Gittinger <cg@exept.de>
parents: 1538
diff changeset
   285
df243cbc29dd flyByHelp stuff
Claus Gittinger <cg@exept.de>
parents: 1538
diff changeset
   286
#fileExit
df243cbc29dd flyByHelp stuff
Claus Gittinger <cg@exept.de>
parents: 1538
diff changeset
   287
'Exit'
df243cbc29dd flyByHelp stuff
Claus Gittinger <cg@exept.de>
parents: 1538
diff changeset
   288
df243cbc29dd flyByHelp stuff
Claus Gittinger <cg@exept.de>
parents: 1538
diff changeset
   289
#helpShowHelp
df243cbc29dd flyByHelp stuff
Claus Gittinger <cg@exept.de>
parents: 1538
diff changeset
   290
'Toggle help'
1538
e906245e5171 flyByHelp
Claus Gittinger <cg@exept.de>
parents: 1530
diff changeset
   291
)
e906245e5171 flyByHelp
Claus Gittinger <cg@exept.de>
parents: 1530
diff changeset
   292
!
e906245e5171 flyByHelp
Claus Gittinger <cg@exept.de>
parents: 1530
diff changeset
   293
762
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
   294
helpSpec
869
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   295
    "This resource specification was automatically generated
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   296
     by the UIHelpTool of ST/X."
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   297
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   298
    "Do not manually edit this!! If it is corrupted,
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   299
     the UIHelpTool may not be able to read the specification."
762
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
   300
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
   301
    "
869
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   302
     UIHelpTool openOnClass:ToolApplicationModel    
762
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
   303
    "
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
   304
869
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   305
    <resource: #help>
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   306
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   307
    ^super helpSpec addPairsFrom:#(
762
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
   308
823
d812eae12888 help texts added
tz
parents: 822
diff changeset
   309
#about
1284
62d950568786 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1283
diff changeset
   310
'Info functions.'
823
d812eae12888 help texts added
tz
parents: 822
diff changeset
   311
762
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
   312
#aboutSTX
1283
1671949a97be checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1259
diff changeset
   313
'Info about the running ST/X.'
762
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
   314
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
   315
#aboutThisAppliaction
1283
1671949a97be checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1259
diff changeset
   316
'Info about that applications release and author.'
762
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
   317
823
d812eae12888 help texts added
tz
parents: 822
diff changeset
   318
#add
834
ac1655bd31bb class category changed
tz
parents: 833
diff changeset
   319
'Add functions.'
823
d812eae12888 help texts added
tz
parents: 822
diff changeset
   320
d812eae12888 help texts added
tz
parents: 822
diff changeset
   321
#commitCancel
1719
43bdde6db37b help texts
Claus Gittinger <cg@exept.de>
parents: 1690
diff changeset
   322
'Cancel changes.'
823
d812eae12888 help texts added
tz
parents: 822
diff changeset
   323
d812eae12888 help texts added
tz
parents: 822
diff changeset
   324
#commitOK
910
670bffab7041 help texts
Claus Gittinger <cg@exept.de>
parents: 907
diff changeset
   325
'Commit changes.'
823
d812eae12888 help texts added
tz
parents: 822
diff changeset
   326
d812eae12888 help texts added
tz
parents: 822
diff changeset
   327
#edit
834
ac1655bd31bb class category changed
tz
parents: 833
diff changeset
   328
'Edit functions.'
823
d812eae12888 help texts added
tz
parents: 822
diff changeset
   329
d812eae12888 help texts added
tz
parents: 822
diff changeset
   330
#editCopy
910
670bffab7041 help texts
Claus Gittinger <cg@exept.de>
parents: 907
diff changeset
   331
'Copy the selected item(s) to the clipboard.'
762
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
   332
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   333
#editCut
910
670bffab7041 help texts
Claus Gittinger <cg@exept.de>
parents: 907
diff changeset
   334
'Move the selected item(s) to the clipboard.'
853
19f2d0152fcb time clock only for the launcher
tz
parents: 851
diff changeset
   335
19f2d0152fcb time clock only for the launcher
tz
parents: 851
diff changeset
   336
#editDelete
910
670bffab7041 help texts
Claus Gittinger <cg@exept.de>
parents: 907
diff changeset
   337
'Delete the selected item(s).'
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   338
823
d812eae12888 help texts added
tz
parents: 822
diff changeset
   339
#editMoveDown
1471
50775b15e283 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1427
diff changeset
   340
'Move the selected item one step down (in the order list).'
823
d812eae12888 help texts added
tz
parents: 822
diff changeset
   341
d812eae12888 help texts added
tz
parents: 822
diff changeset
   342
#editMoveIn
1471
50775b15e283 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1427
diff changeset
   343
'Move the selected item into the next item (as child item).'
50775b15e283 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1427
diff changeset
   344
50775b15e283 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1427
diff changeset
   345
#editMoveInAbove
50775b15e283 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1427
diff changeset
   346
'Move the selected item into the previous item (as child item).'
823
d812eae12888 help texts added
tz
parents: 822
diff changeset
   347
d812eae12888 help texts added
tz
parents: 822
diff changeset
   348
#editMoveOut
1471
50775b15e283 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1427
diff changeset
   349
'Move the selected item out of its parent item.'
823
d812eae12888 help texts added
tz
parents: 822
diff changeset
   350
d812eae12888 help texts added
tz
parents: 822
diff changeset
   351
#editMoveUp
1471
50775b15e283 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1427
diff changeset
   352
'Move the selected item one step up (in the order list).'
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   353
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   354
#editPaste
910
670bffab7041 help texts
Claus Gittinger <cg@exept.de>
parents: 907
diff changeset
   355
'Paste from the clipboard.'
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   356
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   357
#editUndo
910
670bffab7041 help texts
Claus Gittinger <cg@exept.de>
parents: 907
diff changeset
   358
'Undo the last action.'
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   359
2880
13e0be57cc20 changed: #helpSpec
Claus Gittinger <cg@exept.de>
parents: 2827
diff changeset
   360
#editRedo
13e0be57cc20 changed: #helpSpec
Claus Gittinger <cg@exept.de>
parents: 2827
diff changeset
   361
'Redo the last undone action.'
13e0be57cc20 changed: #helpSpec
Claus Gittinger <cg@exept.de>
parents: 2827
diff changeset
   362
823
d812eae12888 help texts added
tz
parents: 822
diff changeset
   363
#file
834
ac1655bd31bb class category changed
tz
parents: 833
diff changeset
   364
'File functions.'
805
d4c4ee3bb474 now, help menu is very rudimentarily
tz
parents: 804
diff changeset
   365
823
d812eae12888 help texts added
tz
parents: 822
diff changeset
   366
#fileBrowseClass
1018
7222534cb3dc part of the activeHelp framework moved to ApplicationModel.
Claus Gittinger <cg@exept.de>
parents: 1016
diff changeset
   367
'Open a System Browser on the current class.'
805
d4c4ee3bb474 now, help menu is very rudimentarily
tz
parents: 804
diff changeset
   368
823
d812eae12888 help texts added
tz
parents: 822
diff changeset
   369
#fileDefineClass
910
670bffab7041 help texts
Claus Gittinger <cg@exept.de>
parents: 907
diff changeset
   370
'Open a dialog to define the current class.'
805
d4c4ee3bb474 now, help menu is very rudimentarily
tz
parents: 804
diff changeset
   371
d4c4ee3bb474 now, help menu is very rudimentarily
tz
parents: 804
diff changeset
   372
#fileDefineClassAndSelector
910
670bffab7041 help texts
Claus Gittinger <cg@exept.de>
parents: 907
diff changeset
   373
'Open a dialog to define the current class and selector.'
805
d4c4ee3bb474 now, help menu is very rudimentarily
tz
parents: 804
diff changeset
   374
823
d812eae12888 help texts added
tz
parents: 822
diff changeset
   375
#fileExit
910
670bffab7041 help texts
Claus Gittinger <cg@exept.de>
parents: 907
diff changeset
   376
'Exit this application.'
823
d812eae12888 help texts added
tz
parents: 822
diff changeset
   377
922
94a40763e3bf checkin from browser
Claus Gittinger <cg@exept.de>
parents: 920
diff changeset
   378
#generate
94a40763e3bf checkin from browser
Claus Gittinger <cg@exept.de>
parents: 920
diff changeset
   379
'Code generation.'
94a40763e3bf checkin from browser
Claus Gittinger <cg@exept.de>
parents: 920
diff changeset
   380
823
d812eae12888 help texts added
tz
parents: 822
diff changeset
   381
#help
834
ac1655bd31bb class category changed
tz
parents: 833
diff changeset
   382
'Help functions.'
823
d812eae12888 help texts added
tz
parents: 822
diff changeset
   383
876
585929b1fec2 some cleans
tz
parents: 872
diff changeset
   384
#helpHelpTool
1018
7222534cb3dc part of the activeHelp framework moved to ApplicationModel.
Claus Gittinger <cg@exept.de>
parents: 1016
diff changeset
   385
'Show the Help Tools documentation.'
876
585929b1fec2 some cleans
tz
parents: 872
diff changeset
   386
823
d812eae12888 help texts added
tz
parents: 822
diff changeset
   387
#helpShowHelp
910
670bffab7041 help texts
Claus Gittinger <cg@exept.de>
parents: 907
diff changeset
   388
'Toggle display of help texts.'
823
d812eae12888 help texts added
tz
parents: 822
diff changeset
   389
d812eae12888 help texts added
tz
parents: 822
diff changeset
   390
#helpTutorial
1018
7222534cb3dc part of the activeHelp framework moved to ApplicationModel.
Claus Gittinger <cg@exept.de>
parents: 1016
diff changeset
   391
'Show this applications documentation.'
823
d812eae12888 help texts added
tz
parents: 822
diff changeset
   392
d812eae12888 help texts added
tz
parents: 822
diff changeset
   393
#history
834
ac1655bd31bb class category changed
tz
parents: 833
diff changeset
   394
'History functions.'
803
f6ca4eb5da39 help texts for the history added
tz
parents: 802
diff changeset
   395
f6ca4eb5da39 help texts for the history added
tz
parents: 802
diff changeset
   396
#historyEmptyMenu
1016
57892160f78e help spec.
Claus Gittinger <cg@exept.de>
parents: 1015
diff changeset
   397
'Clear the history.'
803
f6ca4eb5da39 help texts for the history added
tz
parents: 802
diff changeset
   398
823
d812eae12888 help texts added
tz
parents: 822
diff changeset
   399
#historyMenuItem
1016
57892160f78e help spec.
Claus Gittinger <cg@exept.de>
parents: 1015
diff changeset
   400
'Switch to that item.'
762
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
   401
893
8a142b17a0c8 some cleans
tz
parents: 892
diff changeset
   402
#settings
8a142b17a0c8 some cleans
tz
parents: 892
diff changeset
   403
'Settings functions.'
8a142b17a0c8 some cleans
tz
parents: 892
diff changeset
   404
823
d812eae12888 help texts added
tz
parents: 822
diff changeset
   405
#test
834
ac1655bd31bb class category changed
tz
parents: 833
diff changeset
   406
'Test functions.'
762
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
   407
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
   408
)
2880
13e0be57cc20 changed: #helpSpec
Claus Gittinger <cg@exept.de>
parents: 2827
diff changeset
   409
13e0be57cc20 changed: #helpSpec
Claus Gittinger <cg@exept.de>
parents: 2827
diff changeset
   410
    "Modified: / 01-12-2010 / 12:25:43 / cg"
762
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
   411
! !
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
   412
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   413
!ToolApplicationModel class methodsFor:'history'!
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   414
1969
8e8f5998d053 separate fileHistory
Claus Gittinger <cg@exept.de>
parents: 1809
diff changeset
   415
getFileHistory
8e8f5998d053 separate fileHistory
Claus Gittinger <cg@exept.de>
parents: 1809
diff changeset
   416
    "returns the file-history for this tool class"
8e8f5998d053 separate fileHistory
Claus Gittinger <cg@exept.de>
parents: 1809
diff changeset
   417
8e8f5998d053 separate fileHistory
Claus Gittinger <cg@exept.de>
parents: 1809
diff changeset
   418
    fileHistory isNil ifTrue: [fileHistory := OrderedCollection new].
8e8f5998d053 separate fileHistory
Claus Gittinger <cg@exept.de>
parents: 1809
diff changeset
   419
    ^ fileHistory
8e8f5998d053 separate fileHistory
Claus Gittinger <cg@exept.de>
parents: 1809
diff changeset
   420
!
8e8f5998d053 separate fileHistory
Claus Gittinger <cg@exept.de>
parents: 1809
diff changeset
   421
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   422
getHistory
907
f4087882555a method comments added
tz
parents: 893
diff changeset
   423
    "returns the history for this tool class"
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   424
761
cc0404f8aec6 #getHistory changed because here #? doesn't work correctly
tz
parents: 760
diff changeset
   425
    history isNil ifTrue: [history := OrderedCollection new].
cc0404f8aec6 #getHistory changed because here #? doesn't work correctly
tz
parents: 760
diff changeset
   426
    ^history
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   427
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   428
!
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   429
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   430
historyMaxSize
907
f4087882555a method comments added
tz
parents: 893
diff changeset
   431
    "returns the maximum size for the history of this tool class"
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   432
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   433
    ^10
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   434
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   435
! !
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   436
869
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   437
!ToolApplicationModel class methodsFor:'image specs'!
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   438
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   439
desktopIcon
907
f4087882555a method comments added
tz
parents: 893
diff changeset
   440
    "returns the icon used for the desktop"
869
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   441
1054
ab639131be1f find all icons in getAllImageSelectorsFrom:(walk class hierarchy);
Claus Gittinger <cg@exept.de>
parents: 1051
diff changeset
   442
    <resource: #programImage>
ab639131be1f find all icons in getAllImageSelectorsFrom:(walk class hierarchy);
Claus Gittinger <cg@exept.de>
parents: 1051
diff changeset
   443
869
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   444
    ^Icon
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   445
        constantNamed:#'ToolApplicationModel desktopIcon'
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   446
        ifAbsentPut:
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   447
        [
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   448
            |desktopIcon|
990
13f2fe627628 images moved to class Icon
tz
parents: 987
diff changeset
   449
            desktopIcon := Icon stxIcon.
869
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   450
            desktopIcon magnifiedBy: Display preferredIconSize/desktopIcon extent
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   451
        ]
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   452
1054
ab639131be1f find all icons in getAllImageSelectorsFrom:(walk class hierarchy);
Claus Gittinger <cg@exept.de>
parents: 1051
diff changeset
   453
    "Modified: / 24.8.1998 / 21:34:38 / cg"
869
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   454
!
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   455
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   456
menuIcon
907
f4087882555a method comments added
tz
parents: 893
diff changeset
   457
    "returns the icon used for the menu bar"
869
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   458
1054
ab639131be1f find all icons in getAllImageSelectorsFrom:(walk class hierarchy);
Claus Gittinger <cg@exept.de>
parents: 1051
diff changeset
   459
    <resource: #programImage>
ab639131be1f find all icons in getAllImageSelectorsFrom:(walk class hierarchy);
Claus Gittinger <cg@exept.de>
parents: 1051
diff changeset
   460
869
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   461
    ^Icon
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   462
        constantNamed:#'ToolApplicationModel menuIcon'
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   463
        ifAbsentPut:
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   464
        [
1165
70fd3edc13b4 care for device-less menuFont
Claus Gittinger <cg@exept.de>
parents: 1157
diff changeset
   465
            |menuIcon myDevice|
990
13f2fe627628 images moved to class Icon
tz
parents: 987
diff changeset
   466
            menuIcon := Icon stxIcon.
1165
70fd3edc13b4 care for device-less menuFont
Claus Gittinger <cg@exept.de>
parents: 1157
diff changeset
   467
            myDevice := Screen current.
70fd3edc13b4 care for device-less menuFont
Claus Gittinger <cg@exept.de>
parents: 1157
diff changeset
   468
            menuIcon magnifiedBy: (MenuPanel defaultFont heightOn:myDevice)/menuIcon height
869
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   469
        ]
1054
ab639131be1f find all icons in getAllImageSelectorsFrom:(walk class hierarchy);
Claus Gittinger <cg@exept.de>
parents: 1051
diff changeset
   470
ab639131be1f find all icons in getAllImageSelectorsFrom:(walk class hierarchy);
Claus Gittinger <cg@exept.de>
parents: 1051
diff changeset
   471
    "Modified: / 24.8.1998 / 21:34:33 / cg"
987
54c15a2642f6 images moved to class Icon
tz
parents: 984
diff changeset
   472
! !
869
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   473
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   474
!ToolApplicationModel class methodsFor:'interface specs'!
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   475
797
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   476
windowSpecForCommit
869
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   477
    "This resource specification was automatically generated
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   478
     by the UIPainter of ST/X."
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   479
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   480
    "Do not manually edit this!! If it is corrupted,
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   481
     the UIPainter may not be able to read the specification."
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   482
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   483
    "
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   484
     UIPainter new openOnClass:ToolApplicationModel andSelector:#windowSpecForCommit
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   485
     ToolApplicationModel new openInterface:#windowSpecForCommit
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   486
    "
797
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   487
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   488
    <resource: #canvas>
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   489
1259
394ab30e07e0 OK/Cancel button spec (reverse if OK atLeft)
Claus Gittinger <cg@exept.de>
parents: 1200
diff changeset
   490
    ^ 
394ab30e07e0 OK/Cancel button spec (reverse if OK atLeft)
Claus Gittinger <cg@exept.de>
parents: 1200
diff changeset
   491
     #(#FullSpec
394ab30e07e0 OK/Cancel button spec (reverse if OK atLeft)
Claus Gittinger <cg@exept.de>
parents: 1200
diff changeset
   492
        #name: #windowSpecForCommit
394ab30e07e0 OK/Cancel button spec (reverse if OK atLeft)
Claus Gittinger <cg@exept.de>
parents: 1200
diff changeset
   493
        #window: 
394ab30e07e0 OK/Cancel button spec (reverse if OK atLeft)
Claus Gittinger <cg@exept.de>
parents: 1200
diff changeset
   494
       #(#WindowSpec
394ab30e07e0 OK/Cancel button spec (reverse if OK atLeft)
Claus Gittinger <cg@exept.de>
parents: 1200
diff changeset
   495
          #label: 'Commit Buttons'
394ab30e07e0 OK/Cancel button spec (reverse if OK atLeft)
Claus Gittinger <cg@exept.de>
parents: 1200
diff changeset
   496
          #name: 'Commit Buttons'
394ab30e07e0 OK/Cancel button spec (reverse if OK atLeft)
Claus Gittinger <cg@exept.de>
parents: 1200
diff changeset
   497
          #min: #(#Point 100 22)
394ab30e07e0 OK/Cancel button spec (reverse if OK atLeft)
Claus Gittinger <cg@exept.de>
parents: 1200
diff changeset
   498
          #max: #(#Point 1152 900)
394ab30e07e0 OK/Cancel button spec (reverse if OK atLeft)
Claus Gittinger <cg@exept.de>
parents: 1200
diff changeset
   499
          #bounds: #(#Rectangle 18 51 318 111)
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
        #component: 
394ab30e07e0 OK/Cancel button spec (reverse if OK atLeft)
Claus Gittinger <cg@exept.de>
parents: 1200
diff changeset
   502
       #(#SpecCollection
394ab30e07e0 OK/Cancel button spec (reverse if OK atLeft)
Claus Gittinger <cg@exept.de>
parents: 1200
diff changeset
   503
          #collection: #(
394ab30e07e0 OK/Cancel button spec (reverse if OK atLeft)
Claus Gittinger <cg@exept.de>
parents: 1200
diff changeset
   504
           #(#HorizontalPanelViewSpec
394ab30e07e0 OK/Cancel button spec (reverse if OK atLeft)
Claus Gittinger <cg@exept.de>
parents: 1200
diff changeset
   505
              #name: 'HorizontalPanel1'
394ab30e07e0 OK/Cancel button spec (reverse if OK atLeft)
Claus Gittinger <cg@exept.de>
parents: 1200
diff changeset
   506
              #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
   507
              #horizontalLayout: #fitSpace
394ab30e07e0 OK/Cancel button spec (reverse if OK atLeft)
Claus Gittinger <cg@exept.de>
parents: 1200
diff changeset
   508
              #verticalLayout: #centerMax
394ab30e07e0 OK/Cancel button spec (reverse if OK atLeft)
Claus Gittinger <cg@exept.de>
parents: 1200
diff changeset
   509
              #horizontalSpace: 3
394ab30e07e0 OK/Cancel button spec (reverse if OK atLeft)
Claus Gittinger <cg@exept.de>
parents: 1200
diff changeset
   510
              #verticalSpace: 3
394ab30e07e0 OK/Cancel button spec (reverse if OK atLeft)
Claus Gittinger <cg@exept.de>
parents: 1200
diff changeset
   511
              #reverseOrderIfOKAtLeft: true
394ab30e07e0 OK/Cancel button spec (reverse if OK atLeft)
Claus Gittinger <cg@exept.de>
parents: 1200
diff changeset
   512
              #component: 
394ab30e07e0 OK/Cancel button spec (reverse if OK atLeft)
Claus Gittinger <cg@exept.de>
parents: 1200
diff changeset
   513
             #(#SpecCollection
394ab30e07e0 OK/Cancel button spec (reverse if OK atLeft)
Claus Gittinger <cg@exept.de>
parents: 1200
diff changeset
   514
                #collection: #(
797
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   515
                 #(#ActionButtonSpec
1259
394ab30e07e0 OK/Cancel button spec (reverse if OK atLeft)
Claus Gittinger <cg@exept.de>
parents: 1200
diff changeset
   516
                    #label: 'Cancel'
859
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   517
                    #name: 'cancelButton'
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   518
                    #activeHelpKey: #commitCancel
927
2e4efdc9bc69 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 922
diff changeset
   519
                    #translateLabel: true
1752
4f7f144157b2 do not resize button labels for label-text
Claus Gittinger <cg@exept.de>
parents: 1751
diff changeset
   520
                    "/ #resizeForLabel: true
859
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   521
                    #tabable: true
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   522
                    #model: #cancel
2104
ac3c0a89fd95 valueOf* methods renamed
Claus Gittinger <cg@exept.de>
parents: 2098
diff changeset
   523
                    #enableChannel: #enablingCommitButtonsHolder
1259
394ab30e07e0 OK/Cancel button spec (reverse if OK atLeft)
Claus Gittinger <cg@exept.de>
parents: 1200
diff changeset
   524
                    #useDefaultExtent: true
394ab30e07e0 OK/Cancel button spec (reverse if OK atLeft)
Claus Gittinger <cg@exept.de>
parents: 1200
diff changeset
   525
                  )
797
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   526
                 #(#ActionButtonSpec
1259
394ab30e07e0 OK/Cancel button spec (reverse if OK atLeft)
Claus Gittinger <cg@exept.de>
parents: 1200
diff changeset
   527
                    #label: 'OK'
859
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   528
                    #name: 'okButton'
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   529
                    #activeHelpKey: #commitOK
927
2e4efdc9bc69 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 922
diff changeset
   530
                    #translateLabel: true
1752
4f7f144157b2 do not resize button labels for label-text
Claus Gittinger <cg@exept.de>
parents: 1751
diff changeset
   531
                    "/ #resizeForLabel: true
859
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   532
                    #tabable: true
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   533
                    #model: #accept
2104
ac3c0a89fd95 valueOf* methods renamed
Claus Gittinger <cg@exept.de>
parents: 2098
diff changeset
   534
                    #enableChannel: #enablingCommitButtonsHolder
1259
394ab30e07e0 OK/Cancel button spec (reverse if OK atLeft)
Claus Gittinger <cg@exept.de>
parents: 1200
diff changeset
   535
                    #useDefaultExtent: true
394ab30e07e0 OK/Cancel button spec (reverse if OK atLeft)
Claus Gittinger <cg@exept.de>
parents: 1200
diff changeset
   536
                  )
394ab30e07e0 OK/Cancel button spec (reverse if OK atLeft)
Claus Gittinger <cg@exept.de>
parents: 1200
diff changeset
   537
                 )
394ab30e07e0 OK/Cancel button spec (reverse if OK atLeft)
Claus Gittinger <cg@exept.de>
parents: 1200
diff changeset
   538
               
797
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   539
              )
1259
394ab30e07e0 OK/Cancel button spec (reverse if OK atLeft)
Claus Gittinger <cg@exept.de>
parents: 1200
diff changeset
   540
            )
394ab30e07e0 OK/Cancel button spec (reverse if OK atLeft)
Claus Gittinger <cg@exept.de>
parents: 1200
diff changeset
   541
           )
394ab30e07e0 OK/Cancel button spec (reverse if OK atLeft)
Claus Gittinger <cg@exept.de>
parents: 1200
diff changeset
   542
         
394ab30e07e0 OK/Cancel button spec (reverse if OK atLeft)
Claus Gittinger <cg@exept.de>
parents: 1200
diff changeset
   543
        )
797
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   544
      )
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   545
!
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   546
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   547
windowSpecForCommitWithoutChannels
869
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   548
    "This resource specification was automatically generated
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   549
     by the UIPainter of ST/X."
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   550
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   551
    "Do not manually edit this!! If it is corrupted,
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   552
     the UIPainter may not be able to read the specification."
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   553
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   554
    "
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   555
     UIPainter new openOnClass:ToolApplicationModel andSelector:#windowSpecForCommitWithoutChannels
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   556
     ToolApplicationModel new openInterface:#windowSpecForCommitWithoutChannels
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   557
    "
797
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   558
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   559
    <resource: #canvas>
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   560
1259
394ab30e07e0 OK/Cancel button spec (reverse if OK atLeft)
Claus Gittinger <cg@exept.de>
parents: 1200
diff changeset
   561
    ^ 
1989
aaddb1a4a09a OK-is return in dialog
Claus Gittinger <cg@exept.de>
parents: 1969
diff changeset
   562
     #(FullSpec
aaddb1a4a09a OK-is return in dialog
Claus Gittinger <cg@exept.de>
parents: 1969
diff changeset
   563
        name: windowSpecForCommitWithoutChannels
aaddb1a4a09a OK-is return in dialog
Claus Gittinger <cg@exept.de>
parents: 1969
diff changeset
   564
        window: 
aaddb1a4a09a OK-is return in dialog
Claus Gittinger <cg@exept.de>
parents: 1969
diff changeset
   565
       (WindowSpec
aaddb1a4a09a OK-is return in dialog
Claus Gittinger <cg@exept.de>
parents: 1969
diff changeset
   566
          label: 'Commit Buttons Without Channels'
aaddb1a4a09a OK-is return in dialog
Claus Gittinger <cg@exept.de>
parents: 1969
diff changeset
   567
          name: 'Commit Buttons Without Channels'
aaddb1a4a09a OK-is return in dialog
Claus Gittinger <cg@exept.de>
parents: 1969
diff changeset
   568
          min: (Point 100 22)
aaddb1a4a09a OK-is return in dialog
Claus Gittinger <cg@exept.de>
parents: 1969
diff changeset
   569
          max: (Point 1152 900)
aaddb1a4a09a OK-is return in dialog
Claus Gittinger <cg@exept.de>
parents: 1969
diff changeset
   570
          bounds: (Rectangle 0 0 300 46)
1259
394ab30e07e0 OK/Cancel button spec (reverse if OK atLeft)
Claus Gittinger <cg@exept.de>
parents: 1200
diff changeset
   571
        )
1989
aaddb1a4a09a OK-is return in dialog
Claus Gittinger <cg@exept.de>
parents: 1969
diff changeset
   572
        component: 
aaddb1a4a09a OK-is return in dialog
Claus Gittinger <cg@exept.de>
parents: 1969
diff changeset
   573
       (SpecCollection
aaddb1a4a09a OK-is return in dialog
Claus Gittinger <cg@exept.de>
parents: 1969
diff changeset
   574
          collection: (
aaddb1a4a09a OK-is return in dialog
Claus Gittinger <cg@exept.de>
parents: 1969
diff changeset
   575
           (HorizontalPanelViewSpec
aaddb1a4a09a OK-is return in dialog
Claus Gittinger <cg@exept.de>
parents: 1969
diff changeset
   576
              name: 'HorizontalPanel1'
aaddb1a4a09a OK-is return in dialog
Claus Gittinger <cg@exept.de>
parents: 1969
diff changeset
   577
              layout: (LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0)
aaddb1a4a09a OK-is return in dialog
Claus Gittinger <cg@exept.de>
parents: 1969
diff changeset
   578
              horizontalLayout: fitSpace
aaddb1a4a09a OK-is return in dialog
Claus Gittinger <cg@exept.de>
parents: 1969
diff changeset
   579
              verticalLayout: centerMax
aaddb1a4a09a OK-is return in dialog
Claus Gittinger <cg@exept.de>
parents: 1969
diff changeset
   580
              horizontalSpace: 3
aaddb1a4a09a OK-is return in dialog
Claus Gittinger <cg@exept.de>
parents: 1969
diff changeset
   581
              verticalSpace: 3
aaddb1a4a09a OK-is return in dialog
Claus Gittinger <cg@exept.de>
parents: 1969
diff changeset
   582
              reverseOrderIfOKAtLeft: true
aaddb1a4a09a OK-is return in dialog
Claus Gittinger <cg@exept.de>
parents: 1969
diff changeset
   583
              component: 
aaddb1a4a09a OK-is return in dialog
Claus Gittinger <cg@exept.de>
parents: 1969
diff changeset
   584
             (SpecCollection
aaddb1a4a09a OK-is return in dialog
Claus Gittinger <cg@exept.de>
parents: 1969
diff changeset
   585
                collection: (
aaddb1a4a09a OK-is return in dialog
Claus Gittinger <cg@exept.de>
parents: 1969
diff changeset
   586
                 (ActionButtonSpec
aaddb1a4a09a OK-is return in dialog
Claus Gittinger <cg@exept.de>
parents: 1969
diff changeset
   587
                    label: 'Cancel'
aaddb1a4a09a OK-is return in dialog
Claus Gittinger <cg@exept.de>
parents: 1969
diff changeset
   588
                    name: 'cancelButton'
aaddb1a4a09a OK-is return in dialog
Claus Gittinger <cg@exept.de>
parents: 1969
diff changeset
   589
                    activeHelpKey: commitCancel
aaddb1a4a09a OK-is return in dialog
Claus Gittinger <cg@exept.de>
parents: 1969
diff changeset
   590
                    translateLabel: true
aaddb1a4a09a OK-is return in dialog
Claus Gittinger <cg@exept.de>
parents: 1969
diff changeset
   591
                    tabable: true
aaddb1a4a09a OK-is return in dialog
Claus Gittinger <cg@exept.de>
parents: 1969
diff changeset
   592
                    model: cancel
aaddb1a4a09a OK-is return in dialog
Claus Gittinger <cg@exept.de>
parents: 1969
diff changeset
   593
                    useDefaultExtent: true
1259
394ab30e07e0 OK/Cancel button spec (reverse if OK atLeft)
Claus Gittinger <cg@exept.de>
parents: 1200
diff changeset
   594
                  )
1989
aaddb1a4a09a OK-is return in dialog
Claus Gittinger <cg@exept.de>
parents: 1969
diff changeset
   595
                 (ActionButtonSpec
aaddb1a4a09a OK-is return in dialog
Claus Gittinger <cg@exept.de>
parents: 1969
diff changeset
   596
                    label: 'OK'
aaddb1a4a09a OK-is return in dialog
Claus Gittinger <cg@exept.de>
parents: 1969
diff changeset
   597
                    name: 'okButton'
aaddb1a4a09a OK-is return in dialog
Claus Gittinger <cg@exept.de>
parents: 1969
diff changeset
   598
                    activeHelpKey: commitOK
aaddb1a4a09a OK-is return in dialog
Claus Gittinger <cg@exept.de>
parents: 1969
diff changeset
   599
                    translateLabel: true
aaddb1a4a09a OK-is return in dialog
Claus Gittinger <cg@exept.de>
parents: 1969
diff changeset
   600
                    tabable: true
aaddb1a4a09a OK-is return in dialog
Claus Gittinger <cg@exept.de>
parents: 1969
diff changeset
   601
                    model: accept
aaddb1a4a09a OK-is return in dialog
Claus Gittinger <cg@exept.de>
parents: 1969
diff changeset
   602
                    isDefault: true
aaddb1a4a09a OK-is return in dialog
Claus Gittinger <cg@exept.de>
parents: 1969
diff changeset
   603
                    useDefaultExtent: true
1259
394ab30e07e0 OK/Cancel button spec (reverse if OK atLeft)
Claus Gittinger <cg@exept.de>
parents: 1200
diff changeset
   604
                  )
394ab30e07e0 OK/Cancel button spec (reverse if OK atLeft)
Claus Gittinger <cg@exept.de>
parents: 1200
diff changeset
   605
                 )
394ab30e07e0 OK/Cancel button spec (reverse if OK atLeft)
Claus Gittinger <cg@exept.de>
parents: 1200
diff changeset
   606
               
797
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   607
              )
1259
394ab30e07e0 OK/Cancel button spec (reverse if OK atLeft)
Claus Gittinger <cg@exept.de>
parents: 1200
diff changeset
   608
            )
394ab30e07e0 OK/Cancel button spec (reverse if OK atLeft)
Claus Gittinger <cg@exept.de>
parents: 1200
diff changeset
   609
           )
394ab30e07e0 OK/Cancel button spec (reverse if OK atLeft)
Claus Gittinger <cg@exept.de>
parents: 1200
diff changeset
   610
         
394ab30e07e0 OK/Cancel button spec (reverse if OK atLeft)
Claus Gittinger <cg@exept.de>
parents: 1200
diff changeset
   611
        )
797
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   612
      )
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   613
!
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   614
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   615
windowSpecForInfoBar
869
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   616
    "This resource specification was automatically generated
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   617
     by the UIPainter of ST/X."
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   618
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   619
    "Do not manually edit this!! If it is corrupted,
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   620
     the UIPainter may not be able to read the specification."
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   621
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   622
    "
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   623
     UIPainter new openOnClass:ToolApplicationModel andSelector:#windowSpecForInfoBar
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   624
     ToolApplicationModel new openInterface:#windowSpecForInfoBar
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   625
    "
797
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   626
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   627
    <resource: #canvas>
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   628
1530
8869f644158e info geometry
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
   629
    ^ 
8869f644158e info geometry
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
   630
     #(#FullSpec
8869f644158e info geometry
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
   631
        #name: #windowSpecForInfoBar
8869f644158e info geometry
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
   632
        #window: 
8869f644158e info geometry
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
   633
       #(#WindowSpec
8869f644158e info geometry
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
   634
          #label: 'Info Bar'
8869f644158e info geometry
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
   635
          #name: 'Info Bar'
8869f644158e info geometry
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
   636
          #min: #(#Point 400 320)
8869f644158e info geometry
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
   637
          #max: #(#Point 1152 900)
8869f644158e info geometry
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
   638
          #bounds: #(#Rectangle 13 23 513 369)
8869f644158e info geometry
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
   639
        )
8869f644158e info geometry
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
   640
        #component: 
8869f644158e info geometry
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
   641
       #(#SpecCollection
8869f644158e info geometry
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
   642
          #collection: #(
8869f644158e info geometry
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
   643
           #(#ViewSpec
2108
91ddaeea8b13 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2104
diff changeset
   644
              #name: 'infoView'
1545
baac1fe1489f infoBar layout
Claus Gittinger <cg@exept.de>
parents: 1544
diff changeset
   645
              #layout: #(#LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0)
1530
8869f644158e info geometry
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
   646
              #component: 
8869f644158e info geometry
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
   647
             #(#SpecCollection
8869f644158e info geometry
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
   648
                #collection: #(
8869f644158e info geometry
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
   649
                 #(#LabelSpec
8869f644158e info geometry
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
   650
                    #name: 'infoLabel'
1545
baac1fe1489f infoBar layout
Claus Gittinger <cg@exept.de>
parents: 1544
diff changeset
   651
                    #layout: #(#LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0)
1530
8869f644158e info geometry
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
   652
                    #level: -1
2104
ac3c0a89fd95 valueOf* methods renamed
Claus Gittinger <cg@exept.de>
parents: 2098
diff changeset
   653
                    #labelChannel: #infoLabelHolder
1530
8869f644158e info geometry
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
   654
                    #resizeForLabel: false
8869f644158e info geometry
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
   655
                    #adjust: #left
8869f644158e info geometry
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
   656
                  )
8869f644158e info geometry
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
   657
                 )
8869f644158e info geometry
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
   658
               
797
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   659
              )
1530
8869f644158e info geometry
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
   660
            )
8869f644158e info geometry
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
   661
           )
8869f644158e info geometry
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
   662
         
8869f644158e info geometry
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
   663
        )
797
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   664
      )
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   665
!
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   666
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   667
windowSpecForInfoBarWithClock
869
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   668
    "This resource specification was automatically generated
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   669
     by the UIPainter of ST/X."
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   670
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   671
    "Do not manually edit this!! If it is corrupted,
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   672
     the UIPainter may not be able to read the specification."
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   673
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   674
    "
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   675
     UIPainter new openOnClass:ToolApplicationModel andSelector:#windowSpecForInfoBarWithClock
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   676
     ToolApplicationModel new openInterface:#windowSpecForInfoBarWithClock
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   677
    "
797
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   678
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   679
    <resource: #canvas>
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   680
1331
7bb366803653 resizable info/clock bar
Claus Gittinger <cg@exept.de>
parents: 1323
diff changeset
   681
    ^ 
7bb366803653 resizable info/clock bar
Claus Gittinger <cg@exept.de>
parents: 1323
diff changeset
   682
     #(#FullSpec
7bb366803653 resizable info/clock bar
Claus Gittinger <cg@exept.de>
parents: 1323
diff changeset
   683
        #name: #windowSpecForInfoBarWithClock
7bb366803653 resizable info/clock bar
Claus Gittinger <cg@exept.de>
parents: 1323
diff changeset
   684
        #window: 
7bb366803653 resizable info/clock bar
Claus Gittinger <cg@exept.de>
parents: 1323
diff changeset
   685
       #(#WindowSpec
7bb366803653 resizable info/clock bar
Claus Gittinger <cg@exept.de>
parents: 1323
diff changeset
   686
          #label: 'Info Bar'
7bb366803653 resizable info/clock bar
Claus Gittinger <cg@exept.de>
parents: 1323
diff changeset
   687
          #name: 'Info Bar'
7bb366803653 resizable info/clock bar
Claus Gittinger <cg@exept.de>
parents: 1323
diff changeset
   688
          #min: #(#Point 400 320)
7bb366803653 resizable info/clock bar
Claus Gittinger <cg@exept.de>
parents: 1323
diff changeset
   689
          #max: #(#Point 1152 900)
1530
8869f644158e info geometry
Claus Gittinger <cg@exept.de>
parents: 1526
diff changeset
   690
          #bounds: #(#Rectangle 13 23 513 343)
1331
7bb366803653 resizable info/clock bar
Claus Gittinger <cg@exept.de>
parents: 1323
diff changeset
   691
        )
7bb366803653 resizable info/clock bar
Claus Gittinger <cg@exept.de>
parents: 1323
diff changeset
   692
        #component: 
7bb366803653 resizable info/clock bar
Claus Gittinger <cg@exept.de>
parents: 1323
diff changeset
   693
       #(#SpecCollection
7bb366803653 resizable info/clock bar
Claus Gittinger <cg@exept.de>
parents: 1323
diff changeset
   694
          #collection: #(
7bb366803653 resizable info/clock bar
Claus Gittinger <cg@exept.de>
parents: 1323
diff changeset
   695
           #(#VariableHorizontalPanelSpec
2108
91ddaeea8b13 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2104
diff changeset
   696
              #name: 'infoView'
1545
baac1fe1489f infoBar layout
Claus Gittinger <cg@exept.de>
parents: 1544
diff changeset
   697
              #layout: #(#LayoutFrame 0 0 0 0 0 1 0 1)
1331
7bb366803653 resizable info/clock bar
Claus Gittinger <cg@exept.de>
parents: 1323
diff changeset
   698
              #barWidth: 2
7bb366803653 resizable info/clock bar
Claus Gittinger <cg@exept.de>
parents: 1323
diff changeset
   699
              #showHandle: false
7bb366803653 resizable info/clock bar
Claus Gittinger <cg@exept.de>
parents: 1323
diff changeset
   700
              #component: 
7bb366803653 resizable info/clock bar
Claus Gittinger <cg@exept.de>
parents: 1323
diff changeset
   701
             #(#SpecCollection
7bb366803653 resizable info/clock bar
Claus Gittinger <cg@exept.de>
parents: 1323
diff changeset
   702
                #collection: #(
7bb366803653 resizable info/clock bar
Claus Gittinger <cg@exept.de>
parents: 1323
diff changeset
   703
                 #(#LabelSpec
7bb366803653 resizable info/clock bar
Claus Gittinger <cg@exept.de>
parents: 1323
diff changeset
   704
                    #name: 'infoLabel'
7bb366803653 resizable info/clock bar
Claus Gittinger <cg@exept.de>
parents: 1323
diff changeset
   705
                    #level: -1
2104
ac3c0a89fd95 valueOf* methods renamed
Claus Gittinger <cg@exept.de>
parents: 2098
diff changeset
   706
                    #labelChannel: #infoLabelHolder
1331
7bb366803653 resizable info/clock bar
Claus Gittinger <cg@exept.de>
parents: 1323
diff changeset
   707
                    #resizeForLabel: false
7bb366803653 resizable info/clock bar
Claus Gittinger <cg@exept.de>
parents: 1323
diff changeset
   708
                    #adjust: #left
7bb366803653 resizable info/clock bar
Claus Gittinger <cg@exept.de>
parents: 1323
diff changeset
   709
                  )
7bb366803653 resizable info/clock bar
Claus Gittinger <cg@exept.de>
parents: 1323
diff changeset
   710
                 #(#LabelSpec
7bb366803653 resizable info/clock bar
Claus Gittinger <cg@exept.de>
parents: 1323
diff changeset
   711
                    #name: 'timeLabel'
7bb366803653 resizable info/clock bar
Claus Gittinger <cg@exept.de>
parents: 1323
diff changeset
   712
                    #level: -1
2104
ac3c0a89fd95 valueOf* methods renamed
Claus Gittinger <cg@exept.de>
parents: 2098
diff changeset
   713
                    #labelChannel: #timeLabelHolder
1331
7bb366803653 resizable info/clock bar
Claus Gittinger <cg@exept.de>
parents: 1323
diff changeset
   714
                    #resizeForLabel: false
7bb366803653 resizable info/clock bar
Claus Gittinger <cg@exept.de>
parents: 1323
diff changeset
   715
                    #adjust: #rightLeft
7bb366803653 resizable info/clock bar
Claus Gittinger <cg@exept.de>
parents: 1323
diff changeset
   716
                  )
7bb366803653 resizable info/clock bar
Claus Gittinger <cg@exept.de>
parents: 1323
diff changeset
   717
                 )
7bb366803653 resizable info/clock bar
Claus Gittinger <cg@exept.de>
parents: 1323
diff changeset
   718
               
797
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   719
              )
1331
7bb366803653 resizable info/clock bar
Claus Gittinger <cg@exept.de>
parents: 1323
diff changeset
   720
              #handles: #(#Any 0.854 1.0)
7bb366803653 resizable info/clock bar
Claus Gittinger <cg@exept.de>
parents: 1323
diff changeset
   721
            )
7bb366803653 resizable info/clock bar
Claus Gittinger <cg@exept.de>
parents: 1323
diff changeset
   722
           )
7bb366803653 resizable info/clock bar
Claus Gittinger <cg@exept.de>
parents: 1323
diff changeset
   723
         
7bb366803653 resizable info/clock bar
Claus Gittinger <cg@exept.de>
parents: 1323
diff changeset
   724
        )
797
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   725
      )
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   726
! !
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   727
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   728
!ToolApplicationModel class methodsFor:'menu specs'!
bacf790c536d info bar subspec changed
tz
parents: 792
diff changeset
   729
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   730
menuAbout
869
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   731
    "This resource specification was automatically generated
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   732
     by the MenuEditor of ST/X."
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   733
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   734
    "Do not manually edit this!! If it is corrupted,
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   735
     the MenuEditor may not be able to read the specification."
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   736
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
     MenuEditor new openOnClass:ToolApplicationModel andSelector:#menuAbout
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   739
     (Menu new fromLiteralArrayEncoding:(ToolApplicationModel menuAbout)) startUp
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   740
    "
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   741
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   742
    <resource: #menu>
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   743
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   744
    ^
859
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   745
     
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   746
       #(#Menu
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   747
          
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   748
           #(
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   749
             #(#MenuItem
859
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   750
                #label: 'About Smalltalk/X...'
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   751
                #translateLabel: true
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   752
                #value: #openAbout
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   753
                #activeHelpKey: #aboutSTX
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   754
            )
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   755
             #(#MenuItem
859
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   756
                #label: '-'
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   757
            )
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   758
             #(#MenuItem
922
94a40763e3bf checkin from browser
Claus Gittinger <cg@exept.de>
parents: 920
diff changeset
   759
                #label: 'About this Application...'
859
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   760
                #translateLabel: true
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   761
                #value: #openAboutThisApplication
5d6a438f84d0 docu call changed
tz
parents: 858
diff changeset
   762
                #activeHelpKey: #aboutThisAppliaction
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   763
            )
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   764
          ) nil
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   765
          nil
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   766
      )
922
94a40763e3bf checkin from browser
Claus Gittinger <cg@exept.de>
parents: 920
diff changeset
   767
94a40763e3bf checkin from browser
Claus Gittinger <cg@exept.de>
parents: 920
diff changeset
   768
    "Modified: / 19.5.1998 / 21:44:09 / cg"
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   769
!
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   770
1104
a2f59712ce7b removed the (stupid) fontSettings menu support.
Claus Gittinger <cg@exept.de>
parents: 1091
diff changeset
   771
menuHelp
a2f59712ce7b removed the (stupid) fontSettings menu support.
Claus Gittinger <cg@exept.de>
parents: 1091
diff changeset
   772
    "This resource specification was automatically generated
a2f59712ce7b removed the (stupid) fontSettings menu support.
Claus Gittinger <cg@exept.de>
parents: 1091
diff changeset
   773
     by the MenuEditor of ST/X."
a2f59712ce7b removed the (stupid) fontSettings menu support.
Claus Gittinger <cg@exept.de>
parents: 1091
diff changeset
   774
a2f59712ce7b removed the (stupid) fontSettings menu support.
Claus Gittinger <cg@exept.de>
parents: 1091
diff changeset
   775
    "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
   776
     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
   777
a2f59712ce7b removed the (stupid) fontSettings menu support.
Claus Gittinger <cg@exept.de>
parents: 1091
diff changeset
   778
    "
a2f59712ce7b removed the (stupid) fontSettings menu support.
Claus Gittinger <cg@exept.de>
parents: 1091
diff changeset
   779
     MenuEditor new openOnClass:ToolApplicationModel andSelector:#menuHelp
a2f59712ce7b removed the (stupid) fontSettings menu support.
Claus Gittinger <cg@exept.de>
parents: 1091
diff changeset
   780
     (Menu new fromLiteralArrayEncoding:(ToolApplicationModel menuHelp)) startUp
a2f59712ce7b removed the (stupid) fontSettings menu support.
Claus Gittinger <cg@exept.de>
parents: 1091
diff changeset
   781
    "
a2f59712ce7b removed the (stupid) fontSettings menu support.
Claus Gittinger <cg@exept.de>
parents: 1091
diff changeset
   782
a2f59712ce7b removed the (stupid) fontSettings menu support.
Claus Gittinger <cg@exept.de>
parents: 1091
diff changeset
   783
    <resource: #menu>
a2f59712ce7b removed the (stupid) fontSettings menu support.
Claus Gittinger <cg@exept.de>
parents: 1091
diff changeset
   784
a2f59712ce7b removed the (stupid) fontSettings menu support.
Claus Gittinger <cg@exept.de>
parents: 1091
diff changeset
   785
    ^
a2f59712ce7b removed the (stupid) fontSettings menu support.
Claus Gittinger <cg@exept.de>
parents: 1091
diff changeset
   786
     
a2f59712ce7b removed the (stupid) fontSettings menu support.
Claus Gittinger <cg@exept.de>
parents: 1091
diff changeset
   787
       #(#Menu
a2f59712ce7b removed the (stupid) fontSettings menu support.
Claus Gittinger <cg@exept.de>
parents: 1091
diff changeset
   788
          
a2f59712ce7b removed the (stupid) fontSettings menu support.
Claus Gittinger <cg@exept.de>
parents: 1091
diff changeset
   789
           #(
a2f59712ce7b removed the (stupid) fontSettings menu support.
Claus Gittinger <cg@exept.de>
parents: 1091
diff changeset
   790
             #(#MenuItem
a2f59712ce7b removed the (stupid) fontSettings menu support.
Claus Gittinger <cg@exept.de>
parents: 1091
diff changeset
   791
                #label: 'Documentation'
a2f59712ce7b removed the (stupid) fontSettings menu support.
Claus Gittinger <cg@exept.de>
parents: 1091
diff changeset
   792
                #translateLabel: true
a2f59712ce7b removed the (stupid) fontSettings menu support.
Claus Gittinger <cg@exept.de>
parents: 1091
diff changeset
   793
                #value: #openDocumentation
a2f59712ce7b removed the (stupid) fontSettings menu support.
Claus Gittinger <cg@exept.de>
parents: 1091
diff changeset
   794
                #activeHelpKey: #helpTutorial
2104
ac3c0a89fd95 valueOf* methods renamed
Claus Gittinger <cg@exept.de>
parents: 2098
diff changeset
   795
                #enabled: #havingDocumentationHolder
1104
a2f59712ce7b removed the (stupid) fontSettings menu support.
Claus Gittinger <cg@exept.de>
parents: 1091
diff changeset
   796
            )
a2f59712ce7b removed the (stupid) fontSettings menu support.
Claus Gittinger <cg@exept.de>
parents: 1091
diff changeset
   797
             #(#MenuItem
a2f59712ce7b removed the (stupid) fontSettings menu support.
Claus Gittinger <cg@exept.de>
parents: 1091
diff changeset
   798
                #label: '-'
a2f59712ce7b removed the (stupid) fontSettings menu support.
Claus Gittinger <cg@exept.de>
parents: 1091
diff changeset
   799
            )
a2f59712ce7b removed the (stupid) fontSettings menu support.
Claus Gittinger <cg@exept.de>
parents: 1091
diff changeset
   800
             #(#MenuItem
a2f59712ce7b removed the (stupid) fontSettings menu support.
Claus Gittinger <cg@exept.de>
parents: 1091
diff changeset
   801
                #label: 'Show Help Texts'
a2f59712ce7b removed the (stupid) fontSettings menu support.
Claus Gittinger <cg@exept.de>
parents: 1091
diff changeset
   802
                #translateLabel: true
a2f59712ce7b removed the (stupid) fontSettings menu support.
Claus Gittinger <cg@exept.de>
parents: 1091
diff changeset
   803
                #activeHelpKey: #helpShowHelp
a2f59712ce7b removed the (stupid) fontSettings menu support.
Claus Gittinger <cg@exept.de>
parents: 1091
diff changeset
   804
                #indication: #showingHelp:
a2f59712ce7b removed the (stupid) fontSettings menu support.
Claus Gittinger <cg@exept.de>
parents: 1091
diff changeset
   805
            )
1516
51a2a79c6f98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1508
diff changeset
   806
                       #(#MenuItem
51a2a79c6f98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1508
diff changeset
   807
                          #label: '-'
51a2a79c6f98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1508
diff changeset
   808
                      )
51a2a79c6f98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1508
diff changeset
   809
                       #(#MenuItem
51a2a79c6f98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1508
diff changeset
   810
                          #label: 'About this Application...'
51a2a79c6f98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1508
diff changeset
   811
                          #translateLabel: true
51a2a79c6f98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1508
diff changeset
   812
                          #value: #openAboutThisApplication
51a2a79c6f98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1508
diff changeset
   813
                          #activeHelpKey: #aboutThisAppliaction
51a2a79c6f98 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1508
diff changeset
   814
                      )
1104
a2f59712ce7b removed the (stupid) fontSettings menu support.
Claus Gittinger <cg@exept.de>
parents: 1091
diff changeset
   815
          ) nil
a2f59712ce7b removed the (stupid) fontSettings menu support.
Claus Gittinger <cg@exept.de>
parents: 1091
diff changeset
   816
          nil
a2f59712ce7b removed the (stupid) fontSettings menu support.
Claus Gittinger <cg@exept.de>
parents: 1091
diff changeset
   817
      )
a2f59712ce7b removed the (stupid) fontSettings menu support.
Claus Gittinger <cg@exept.de>
parents: 1091
diff changeset
   818
a2f59712ce7b removed the (stupid) fontSettings menu support.
Claus Gittinger <cg@exept.de>
parents: 1091
diff changeset
   819
    "Modified: / 31.7.1998 / 18:19:42 / cg"
a2f59712ce7b removed the (stupid) fontSettings menu support.
Claus Gittinger <cg@exept.de>
parents: 1091
diff changeset
   820
!
a2f59712ce7b removed the (stupid) fontSettings menu support.
Claus Gittinger <cg@exept.de>
parents: 1091
diff changeset
   821
a2f59712ce7b removed the (stupid) fontSettings menu support.
Claus Gittinger <cg@exept.de>
parents: 1091
diff changeset
   822
xxxmenuFont
869
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   823
    "This resource specification was automatically generated
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   824
     by the MenuEditor of ST/X."
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   825
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   826
    "Do not manually edit this!! If it is corrupted,
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   827
     the MenuEditor may not be able to read the specification."
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   828
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   829
    "
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   830
     MenuEditor new openOnClass:ToolApplicationModel andSelector:#menuFont
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   831
     (Menu new fromLiteralArrayEncoding:(ToolApplicationModel menuFont)) startUp
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   832
    "
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   833
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   834
    <resource: #menu>
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   835
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   836
    ^
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   837
     
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   838
       #(#Menu
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   839
          
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   840
           #(
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   841
             #(#MenuItem
872
a1606dcbd38b better font setting routines
tz
parents: 871
diff changeset
   842
                #label: 'Label...'
1018
7222534cb3dc part of the activeHelp framework moved to ApplicationModel.
Claus Gittinger <cg@exept.de>
parents: 1016
diff changeset
   843
                #translateLabel: true
869
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   844
                #value: #chooseFont:
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   845
                #argument: 'Label Font'
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   846
            )
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   847
             #(#MenuItem
872
a1606dcbd38b better font setting routines
tz
parents: 871
diff changeset
   848
                #label: 'Button...'
1018
7222534cb3dc part of the activeHelp framework moved to ApplicationModel.
Claus Gittinger <cg@exept.de>
parents: 1016
diff changeset
   849
                #translateLabel: true
869
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   850
                #value: #chooseFont:
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   851
                #argument: 'Button Font'
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   852
            )
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   853
             #(#MenuItem
872
a1606dcbd38b better font setting routines
tz
parents: 871
diff changeset
   854
                #label: 'Edit...'
1018
7222534cb3dc part of the activeHelp framework moved to ApplicationModel.
Claus Gittinger <cg@exept.de>
parents: 1016
diff changeset
   855
                #translateLabel: true
869
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   856
                #value: #chooseFont:
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   857
                #argument: 'Edit Font'
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   858
            )
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   859
             #(#MenuItem
872
a1606dcbd38b better font setting routines
tz
parents: 871
diff changeset
   860
                #label: 'List...'
1018
7222534cb3dc part of the activeHelp framework moved to ApplicationModel.
Claus Gittinger <cg@exept.de>
parents: 1016
diff changeset
   861
                #translateLabel: true
869
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   862
                #value: #chooseFont:
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   863
                #argument: 'List Font'
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   864
            )
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   865
             #(#MenuItem
872
a1606dcbd38b better font setting routines
tz
parents: 871
diff changeset
   866
                #label: 'Tree List...'
1018
7222534cb3dc part of the activeHelp framework moved to ApplicationModel.
Claus Gittinger <cg@exept.de>
parents: 1016
diff changeset
   867
                #translateLabel: true
869
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   868
                #value: #chooseFont:
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   869
                #argument: 'Tree List Font'
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   870
            )
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   871
             #(#MenuItem
872
a1606dcbd38b better font setting routines
tz
parents: 871
diff changeset
   872
                #label: 'Note Book...'
1018
7222534cb3dc part of the activeHelp framework moved to ApplicationModel.
Claus Gittinger <cg@exept.de>
parents: 1016
diff changeset
   873
                #translateLabel: true
872
a1606dcbd38b better font setting routines
tz
parents: 871
diff changeset
   874
                #value: #chooseFont:
a1606dcbd38b better font setting routines
tz
parents: 871
diff changeset
   875
                #argument: 'Note Book Font'
a1606dcbd38b better font setting routines
tz
parents: 871
diff changeset
   876
            )
a1606dcbd38b better font setting routines
tz
parents: 871
diff changeset
   877
             #(#MenuItem
a1606dcbd38b better font setting routines
tz
parents: 871
diff changeset
   878
                #label: 'Framed Box...'
1018
7222534cb3dc part of the activeHelp framework moved to ApplicationModel.
Claus Gittinger <cg@exept.de>
parents: 1016
diff changeset
   879
                #translateLabel: true
872
a1606dcbd38b better font setting routines
tz
parents: 871
diff changeset
   880
                #value: #chooseFont:
a1606dcbd38b better font setting routines
tz
parents: 871
diff changeset
   881
                #argument: 'Framed Box Font'
a1606dcbd38b better font setting routines
tz
parents: 871
diff changeset
   882
            )
a1606dcbd38b better font setting routines
tz
parents: 871
diff changeset
   883
             #(#MenuItem
869
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   884
                #label: '-'
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   885
            )
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   886
             #(#MenuItem
872
a1606dcbd38b better font setting routines
tz
parents: 871
diff changeset
   887
                #label: 'Reset'
1018
7222534cb3dc part of the activeHelp framework moved to ApplicationModel.
Claus Gittinger <cg@exept.de>
parents: 1016
diff changeset
   888
                #translateLabel: true
869
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   889
                #value: #resetFonts
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   890
            )
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   891
          ) nil
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   892
          nil
b1815e3116c6 font can be chosen for the views
tz
parents: 859
diff changeset
   893
      )
1018
7222534cb3dc part of the activeHelp framework moved to ApplicationModel.
Claus Gittinger <cg@exept.de>
parents: 1016
diff changeset
   894
7222534cb3dc part of the activeHelp framework moved to ApplicationModel.
Claus Gittinger <cg@exept.de>
parents: 1016
diff changeset
   895
    "Modified: / 31.7.1998 / 18:55:34 / cg"
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   896
! !
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   897
907
f4087882555a method comments added
tz
parents: 893
diff changeset
   898
!ToolApplicationModel class methodsFor:'queries'!
f4087882555a method comments added
tz
parents: 893
diff changeset
   899
f4087882555a method comments added
tz
parents: 893
diff changeset
   900
isVisualStartable
1427
b3e355574ccf comment only
Claus Gittinger <cg@exept.de>
parents: 1391
diff changeset
   901
    "return true, if this application can be started via #open.
b3e355574ccf comment only
Claus Gittinger <cg@exept.de>
parents: 1391
diff changeset
   902
     (to allow start of a change browser via double-click in the browser)"
907
f4087882555a method comments added
tz
parents: 893
diff changeset
   903
f4087882555a method comments added
tz
parents: 893
diff changeset
   904
    self == ToolApplicationModel ifTrue:[^false].
f4087882555a method comments added
tz
parents: 893
diff changeset
   905
    ^super isVisualStartable
f4087882555a method comments added
tz
parents: 893
diff changeset
   906
! !
f4087882555a method comments added
tz
parents: 893
diff changeset
   907
2537
03d2731b4ca9 category change
Claus Gittinger <cg@exept.de>
parents: 2480
diff changeset
   908
!ToolApplicationModel class methodsFor:'startup & release'!
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   909
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   910
preSnapshot
907
f4087882555a method comments added
tz
parents: 893
diff changeset
   911
    "removes the clipboard before snap shoting"
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   912
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   913
    clipboard := nil
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   914
!
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   915
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   916
uninitialize
907
f4087882555a method comments added
tz
parents: 893
diff changeset
   917
    "resets the class instance variables"
760
26cf45040420 #preferredExtent cleaned
tz
parents: 758
diff changeset
   918
1969
8e8f5998d053 separate fileHistory
Claus Gittinger <cg@exept.de>
parents: 1809
diff changeset
   919
    settings := instances := showingHelp := history := fileHistory := clipboard := nil
1018
7222534cb3dc part of the activeHelp framework moved to ApplicationModel.
Claus Gittinger <cg@exept.de>
parents: 1016
diff changeset
   920
1089
49b05d386ccc removed Thomas's memory leak
Claus Gittinger <cg@exept.de>
parents: 1084
diff changeset
   921
    "
49b05d386ccc removed Thomas's memory leak
Claus Gittinger <cg@exept.de>
parents: 1084
diff changeset
   922
     self withAllSubclasses do:[:c | c uninitialize]
49b05d386ccc removed Thomas's memory leak
Claus Gittinger <cg@exept.de>
parents: 1084
diff changeset
   923
    "
49b05d386ccc removed Thomas's memory leak
Claus Gittinger <cg@exept.de>
parents: 1084
diff changeset
   924
49b05d386ccc removed Thomas's memory leak
Claus Gittinger <cg@exept.de>
parents: 1084
diff changeset
   925
    "Modified: / 4.2.1999 / 15:37:43 / cg"
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   926
! !
9c837d99f109 intitial checkin
tz
parents:
diff changeset
   927
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   928
!ToolApplicationModel methodsFor:'aspects'!
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
   929
1147
bbaa243ddd1c accept & modifiedChannels
Claus Gittinger <cg@exept.de>
parents: 1138
diff changeset
   930
acceptChannel
bbaa243ddd1c accept & modifiedChannels
Claus Gittinger <cg@exept.de>
parents: 1138
diff changeset
   931
    "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
   932
     to accept their value."
bbaa243ddd1c accept & modifiedChannels
Claus Gittinger <cg@exept.de>
parents: 1138
diff changeset
   933
bbaa243ddd1c accept & modifiedChannels
Claus Gittinger <cg@exept.de>
parents: 1138
diff changeset
   934
    |holder|
bbaa243ddd1c accept & modifiedChannels
Claus Gittinger <cg@exept.de>
parents: 1138
diff changeset
   935
bbaa243ddd1c accept & modifiedChannels
Claus Gittinger <cg@exept.de>
parents: 1138
diff changeset
   936
    (holder := builder bindingAt:#acceptChannel) isNil ifTrue:[
1157
feeae3138d3d checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1150
diff changeset
   937
        builder aspectAt:#acceptChannel put:(holder :=  ValueHolder with:false).
1147
bbaa243ddd1c accept & modifiedChannels
Claus Gittinger <cg@exept.de>
parents: 1138
diff changeset
   938
    ].
bbaa243ddd1c accept & modifiedChannels
Claus Gittinger <cg@exept.de>
parents: 1138
diff changeset
   939
    ^ holder
bbaa243ddd1c accept & modifiedChannels
Claus Gittinger <cg@exept.de>
parents: 1138
diff changeset
   940
bbaa243ddd1c accept & modifiedChannels
Claus Gittinger <cg@exept.de>
parents: 1138
diff changeset
   941
    "Modified: / 21.5.1998 / 03:39:49 / cg"
bbaa243ddd1c accept & modifiedChannels
Claus Gittinger <cg@exept.de>
parents: 1138
diff changeset
   942
!
bbaa243ddd1c accept & modifiedChannels
Claus Gittinger <cg@exept.de>
parents: 1138
diff changeset
   943
2104
ac3c0a89fd95 valueOf* methods renamed
Claus Gittinger <cg@exept.de>
parents: 2098
diff changeset
   944
canCopyHolder
ac3c0a89fd95 valueOf* methods renamed
Claus Gittinger <cg@exept.de>
parents: 2098
diff changeset
   945
    "returns whether can copy as value holder"
ac3c0a89fd95 valueOf* methods renamed
Claus Gittinger <cg@exept.de>
parents: 2098
diff changeset
   946
ac3c0a89fd95 valueOf* methods renamed
Claus Gittinger <cg@exept.de>
parents: 2098
diff changeset
   947
    ^ self builder booleanValueAspectFor:#valueOfCanCopy
ac3c0a89fd95 valueOf* methods renamed
Claus Gittinger <cg@exept.de>
parents: 2098
diff changeset
   948
!
ac3c0a89fd95 valueOf* methods renamed
Claus Gittinger <cg@exept.de>
parents: 2098
diff changeset
   949
ac3c0a89fd95 valueOf* methods renamed
Claus Gittinger <cg@exept.de>
parents: 2098
diff changeset
   950
canCutHolder
ac3c0a89fd95 valueOf* methods renamed
Claus Gittinger <cg@exept.de>
parents: 2098
diff changeset
   951
    "returns whether can cut as value holder"
ac3c0a89fd95 valueOf* methods renamed
Claus Gittinger <cg@exept.de>
parents: 2098
diff changeset
   952
ac3c0a89fd95 valueOf* methods renamed
Claus Gittinger <cg@exept.de>
parents: 2098
diff changeset
   953
    ^ builder booleanValueAspectFor:#valueOfCanCut
ac3c0a89fd95 valueOf* methods renamed
Claus Gittinger <cg@exept.de>
parents: 2098
diff changeset
   954
!
ac3c0a89fd95 valueOf* methods renamed
Claus Gittinger <cg@exept.de>
parents: 2098
diff changeset
   955
ac3c0a89fd95 valueOf* methods renamed
Claus Gittinger <cg@exept.de>
parents: 2098
diff changeset
   956
canPasteHolder
ac3c0a89fd95 valueOf* methods renamed
Claus Gittinger <cg@exept.de>
parents: 2098
diff changeset
   957
    "returns whether can paste as value holder"
ac3c0a89fd95 valueOf* methods renamed
Claus Gittinger <cg@exept.de>
parents: 2098
diff changeset
   958
ac3c0a89fd95 valueOf* methods renamed
Claus Gittinger <cg@exept.de>
parents: 2098
diff changeset
   959
    ^ builder booleanValueAspectFor:#valueOfCanPaste
ac3c0a89fd95 valueOf* methods renamed
Claus Gittinger <cg@exept.de>
parents: 2098
diff changeset
   960
!
ac3c0a89fd95 valueOf* methods renamed
Claus Gittinger <cg@exept.de>
parents: 2098
diff changeset
   961
ac3c0a89fd95 valueOf* methods renamed
Claus Gittinger <cg@exept.de>
parents: 2098
diff changeset
   962
canUndoHolder
ac3c0a89fd95 valueOf* methods renamed
Claus Gittinger <cg@exept.de>
parents: 2098
diff changeset
   963
    "returns whether can undo as value holder"
ac3c0a89fd95 valueOf* methods renamed
Claus Gittinger <cg@exept.de>
parents: 2098
diff changeset
   964
ac3c0a89fd95 valueOf* methods renamed
Claus Gittinger <cg@exept.de>
parents: 2098
diff changeset
   965
    ^ builder booleanValueAspectFor:#valueOfCanUndo
ac3c0a89fd95 valueOf* methods renamed
Claus Gittinger <cg@exept.de>
parents: 2098
diff changeset
   966
!
ac3c0a89fd95 valueOf* methods renamed
Claus Gittinger <cg@exept.de>
parents: 2098
diff changeset
   967
ac3c0a89fd95 valueOf* methods renamed
Claus Gittinger <cg@exept.de>
parents: 2098
diff changeset
   968
enablingCommitButtonsHolder
ac3c0a89fd95 valueOf* methods renamed
Claus Gittinger <cg@exept.de>
parents: 2098
diff changeset
   969
    "returns the enabling of the commit of this tool as value holder"
ac3c0a89fd95 valueOf* methods renamed
Claus Gittinger <cg@exept.de>
parents: 2098
diff changeset
   970
ac3c0a89fd95 valueOf* methods renamed
Claus Gittinger <cg@exept.de>
parents: 2098
diff changeset
   971
    ^ builder booleanValueAspectFor:#valueOfEnablingCommitButtons
ac3c0a89fd95 valueOf* methods renamed
Claus Gittinger <cg@exept.de>
parents: 2098
diff changeset
   972
!
ac3c0a89fd95 valueOf* methods renamed
Claus Gittinger <cg@exept.de>
parents: 2098
diff changeset
   973
ac3c0a89fd95 valueOf* methods renamed
Claus Gittinger <cg@exept.de>
parents: 2098
diff changeset
   974
havingDocumentationHolder
ac3c0a89fd95 valueOf* methods renamed
Claus Gittinger <cg@exept.de>
parents: 2098
diff changeset
   975
    "returns the enabling of having documentation for this tool as value holder"
ac3c0a89fd95 valueOf* methods renamed
Claus Gittinger <cg@exept.de>
parents: 2098
diff changeset
   976
ac3c0a89fd95 valueOf* methods renamed
Claus Gittinger <cg@exept.de>
parents: 2098
diff changeset
   977
    ^ (builder booleanValueAspectFor:#valueOfHavingDocumentation) value: (self class includesSelector: #openDocumentation)
ac3c0a89fd95 valueOf* methods renamed
Claus Gittinger <cg@exept.de>
parents: 2098
diff changeset
   978
!
ac3c0a89fd95 valueOf* methods renamed
Claus Gittinger <cg@exept.de>
parents: 2098
diff changeset
   979
ac3c0a89fd95 valueOf* methods renamed
Claus Gittinger <cg@exept.de>
parents: 2098
diff changeset
   980
infoLabelHolder
ac3c0a89fd95 valueOf* methods renamed
Claus Gittinger <cg@exept.de>
parents: 2098
diff changeset
   981
    "returns the info label as value holder"
ac3c0a89fd95 valueOf* methods renamed
Claus Gittinger <cg@exept.de>
parents: 2098
diff changeset
   982
ac3c0a89fd95 valueOf* methods renamed
Claus Gittinger <cg@exept.de>
parents: 2098
diff changeset
   983
    ^ builder nilValueAspectFor:#valueOfInfoLabel
ac3c0a89fd95 valueOf* methods renamed
Claus Gittinger <cg@exept.de>
parents: 2098
diff changeset
   984
!
ac3c0a89fd95 valueOf* methods renamed
Claus Gittinger <cg@exept.de>
parents: 2098
diff changeset
   985
2108
91ddaeea8b13 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2104
diff changeset
   986
infoLabelHolder:aValueHolder
91ddaeea8b13 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2104
diff changeset
   987
    builder aspectAt:#useAlienInfoLabelHolder put:true.
91ddaeea8b13 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2104
diff changeset
   988
    builder aspectAt:#valueOfInfoLabel put:aValueHolder.
91ddaeea8b13 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2104
diff changeset
   989
!
91ddaeea8b13 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2104
diff changeset
   990
1147
bbaa243ddd1c accept & modifiedChannels
Claus Gittinger <cg@exept.de>
parents: 1138
diff changeset
   991
modifiedChannel
bbaa243ddd1c accept & modifiedChannels
Claus Gittinger <cg@exept.de>
parents: 1138
diff changeset
   992
    "returns a valueHolder which is set to true, whenever any of
bbaa243ddd1c accept & modifiedChannels
Claus Gittinger <cg@exept.de>
parents: 1138
diff changeset
   993
     my editfields is modified - this is hooked to
2104
ac3c0a89fd95 valueOf* methods renamed
Claus Gittinger <cg@exept.de>
parents: 2098
diff changeset
   994
     the enablingCommitButtonsHolder channel"
1147
bbaa243ddd1c accept & modifiedChannels
Claus Gittinger <cg@exept.de>
parents: 1138
diff changeset
   995
bbaa243ddd1c accept & modifiedChannels
Claus Gittinger <cg@exept.de>
parents: 1138
diff changeset
   996
    |holder|
bbaa243ddd1c accept & modifiedChannels
Claus Gittinger <cg@exept.de>
parents: 1138
diff changeset
   997
bbaa243ddd1c accept & modifiedChannels
Claus Gittinger <cg@exept.de>
parents: 1138
diff changeset
   998
    (holder := builder bindingAt:#modifiedChannel) isNil ifTrue:[
1157
feeae3138d3d checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1150
diff changeset
   999
        builder aspectAt:#modifiedChannel put:(holder :=  ValueHolder with:false).
1147
bbaa243ddd1c accept & modifiedChannels
Claus Gittinger <cg@exept.de>
parents: 1138
diff changeset
  1000
        holder 
1331
7bb366803653 resizable info/clock bar
Claus Gittinger <cg@exept.de>
parents: 1323
diff changeset
  1001
            onChangeEvaluate:[
1148
b0c0506d044b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1147
diff changeset
  1002
                holder value ifTrue:[
2104
ac3c0a89fd95 valueOf* methods renamed
Claus Gittinger <cg@exept.de>
parents: 2098
diff changeset
  1003
                    self enablingCommitButtonsHolder value:true.
1147
bbaa243ddd1c accept & modifiedChannels
Claus Gittinger <cg@exept.de>
parents: 1138
diff changeset
  1004
                ]
bbaa243ddd1c accept & modifiedChannels
Claus Gittinger <cg@exept.de>
parents: 1138
diff changeset
  1005
               ]
bbaa243ddd1c accept & modifiedChannels
Claus Gittinger <cg@exept.de>
parents: 1138
diff changeset
  1006
    ].
bbaa243ddd1c accept & modifiedChannels
Claus Gittinger <cg@exept.de>
parents: 1138
diff changeset
  1007
    ^ holder
bbaa243ddd1c accept & modifiedChannels
Claus Gittinger <cg@exept.de>
parents: 1138
diff changeset
  1008
bbaa243ddd1c accept & modifiedChannels
Claus Gittinger <cg@exept.de>
parents: 1138
diff changeset
  1009
    "Modified: / 21.5.1998 / 03:39:49 / cg"
bbaa243ddd1c accept & modifiedChannels
Claus Gittinger <cg@exept.de>
parents: 1138
diff changeset
  1010
!
bbaa243ddd1c accept & modifiedChannels
Claus Gittinger <cg@exept.de>
parents: 1138
diff changeset
  1011
2104
ac3c0a89fd95 valueOf* methods renamed
Claus Gittinger <cg@exept.de>
parents: 2098
diff changeset
  1012
timeLabelHolder
ac3c0a89fd95 valueOf* methods renamed
Claus Gittinger <cg@exept.de>
parents: 2098
diff changeset
  1013
    "returns the time label as value holder"
ac3c0a89fd95 valueOf* methods renamed
Claus Gittinger <cg@exept.de>
parents: 2098
diff changeset
  1014
ac3c0a89fd95 valueOf* methods renamed
Claus Gittinger <cg@exept.de>
parents: 2098
diff changeset
  1015
    ^ builder nilValueAspectFor:#valueOfTimeLabel
ac3c0a89fd95 valueOf* methods renamed
Claus Gittinger <cg@exept.de>
parents: 2098
diff changeset
  1016
!
ac3c0a89fd95 valueOf* methods renamed
Claus Gittinger <cg@exept.de>
parents: 2098
diff changeset
  1017
822
374400d57e0b some useful aspects added
tz
parents: 821
diff changeset
  1018
valueOfCanCopy
2388
b0fc901b0cbe Mark obsolte methods as obsolete
Stefan Vogel <sv@exept.de>
parents: 2271
diff changeset
  1019
    <resource: #obsolete>
907
f4087882555a method comments added
tz
parents: 893
diff changeset
  1020
    "returns whether can copy as value holder"
822
374400d57e0b some useful aspects added
tz
parents: 821
diff changeset
  1021
2104
ac3c0a89fd95 valueOf* methods renamed
Claus Gittinger <cg@exept.de>
parents: 2098
diff changeset
  1022
    self obsoleteMethodWarning:'stupid name - use #canCopyHolder'.
ac3c0a89fd95 valueOf* methods renamed
Claus Gittinger <cg@exept.de>
parents: 2098
diff changeset
  1023
    ^ self canCopyHolder
822
374400d57e0b some useful aspects added
tz
parents: 821
diff changeset
  1024
!
374400d57e0b some useful aspects added
tz
parents: 821
diff changeset
  1025
374400d57e0b some useful aspects added
tz
parents: 821
diff changeset
  1026
valueOfCanCut
2388
b0fc901b0cbe Mark obsolte methods as obsolete
Stefan Vogel <sv@exept.de>
parents: 2271
diff changeset
  1027
    <resource: #obsolete>
907
f4087882555a method comments added
tz
parents: 893
diff changeset
  1028
    "returns whether can paste as value holder"
822
374400d57e0b some useful aspects added
tz
parents: 821
diff changeset
  1029
2104
ac3c0a89fd95 valueOf* methods renamed
Claus Gittinger <cg@exept.de>
parents: 2098
diff changeset
  1030
    self obsoleteMethodWarning:'stupid name - use #canCutHolder'.
ac3c0a89fd95 valueOf* methods renamed
Claus Gittinger <cg@exept.de>
parents: 2098
diff changeset
  1031
    ^ self canCutHolder
822
374400d57e0b some useful aspects added
tz
parents: 821
diff changeset
  1032
936
d3d50ac7cdd0 code compression
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1033
    "Modified: / 21.5.1998 / 03:39:13 / cg"
822
374400d57e0b some useful aspects added
tz
parents: 821
diff changeset
  1034
!
374400d57e0b some useful aspects added
tz
parents: 821
diff changeset
  1035
374400d57e0b some useful aspects added
tz
parents: 821
diff changeset
  1036
valueOfCanPaste
2388
b0fc901b0cbe Mark obsolte methods as obsolete
Stefan Vogel <sv@exept.de>
parents: 2271
diff changeset
  1037
    <resource: #obsolete>
907
f4087882555a method comments added
tz
parents: 893
diff changeset
  1038
    "returns whether can paste as value holder"
822
374400d57e0b some useful aspects added
tz
parents: 821
diff changeset
  1039
2104
ac3c0a89fd95 valueOf* methods renamed
Claus Gittinger <cg@exept.de>
parents: 2098
diff changeset
  1040
    self obsoleteMethodWarning:'stupid name - use #canPasteHolder'.
ac3c0a89fd95 valueOf* methods renamed
Claus Gittinger <cg@exept.de>
parents: 2098
diff changeset
  1041
    ^ self canPasteHolder
822
374400d57e0b some useful aspects added
tz
parents: 821
diff changeset
  1042
!
374400d57e0b some useful aspects added
tz
parents: 821
diff changeset
  1043
374400d57e0b some useful aspects added
tz
parents: 821
diff changeset
  1044
valueOfCanUndo
2388
b0fc901b0cbe Mark obsolte methods as obsolete
Stefan Vogel <sv@exept.de>
parents: 2271
diff changeset
  1045
    <resource: #obsolete>
907
f4087882555a method comments added
tz
parents: 893
diff changeset
  1046
    "returns whether can undo as value holder"
822
374400d57e0b some useful aspects added
tz
parents: 821
diff changeset
  1047
2104
ac3c0a89fd95 valueOf* methods renamed
Claus Gittinger <cg@exept.de>
parents: 2098
diff changeset
  1048
    self obsoleteMethodWarning:'stupid name - use #canUndoHolder'.
ac3c0a89fd95 valueOf* methods renamed
Claus Gittinger <cg@exept.de>
parents: 2098
diff changeset
  1049
    ^ self canUndoHolder
822
374400d57e0b some useful aspects added
tz
parents: 821
diff changeset
  1050
936
d3d50ac7cdd0 code compression
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1051
    "Modified: / 21.5.1998 / 03:39:31 / cg"
822
374400d57e0b some useful aspects added
tz
parents: 821
diff changeset
  1052
!
374400d57e0b some useful aspects added
tz
parents: 821
diff changeset
  1053
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
  1054
valueOfEnablingCommitButtons
2388
b0fc901b0cbe Mark obsolte methods as obsolete
Stefan Vogel <sv@exept.de>
parents: 2271
diff changeset
  1055
    <resource: #obsolete>
907
f4087882555a method comments added
tz
parents: 893
diff changeset
  1056
    "returns the enabling of the commit of this tool as value holder"
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1057
2104
ac3c0a89fd95 valueOf* methods renamed
Claus Gittinger <cg@exept.de>
parents: 2098
diff changeset
  1058
    self obsoleteMethodWarning:'stupid name - use #enablingCommitButtonsHolder'.
ac3c0a89fd95 valueOf* methods renamed
Claus Gittinger <cg@exept.de>
parents: 2098
diff changeset
  1059
    ^ self enablingCommitButtonsHolder
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1060
936
d3d50ac7cdd0 code compression
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1061
    "Modified: / 21.5.1998 / 03:39:49 / cg"
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
  1062
!
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
  1063
858
a36ca9158a69 show help bug fixed
tz
parents: 853
diff changeset
  1064
valueOfHavingDocumentation
2388
b0fc901b0cbe Mark obsolte methods as obsolete
Stefan Vogel <sv@exept.de>
parents: 2271
diff changeset
  1065
    <resource: #obsolete>
1004
6dc621535e26 valueOfHavingDocumentation must be set
tz
parents: 990
diff changeset
  1066
    "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
  1067
2104
ac3c0a89fd95 valueOf* methods renamed
Claus Gittinger <cg@exept.de>
parents: 2098
diff changeset
  1068
    self obsoleteMethodWarning:'stupid name - use havingDocumentationHolder'.
ac3c0a89fd95 valueOf* methods renamed
Claus Gittinger <cg@exept.de>
parents: 2098
diff changeset
  1069
    ^ self havingDocumentationHolder
803
f6ca4eb5da39 help texts for the history added
tz
parents: 802
diff changeset
  1070
!
f6ca4eb5da39 help texts for the history added
tz
parents: 802
diff changeset
  1071
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
  1072
valueOfInfoLabel
2388
b0fc901b0cbe Mark obsolte methods as obsolete
Stefan Vogel <sv@exept.de>
parents: 2271
diff changeset
  1073
    <resource: #obsolete>
907
f4087882555a method comments added
tz
parents: 893
diff changeset
  1074
    "returns the info label as value holder"
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
  1075
2104
ac3c0a89fd95 valueOf* methods renamed
Claus Gittinger <cg@exept.de>
parents: 2098
diff changeset
  1076
    self obsoleteMethodWarning:'stupid name - use infoLabelHolder'.
ac3c0a89fd95 valueOf* methods renamed
Claus Gittinger <cg@exept.de>
parents: 2098
diff changeset
  1077
    ^ self infoLabelHolder
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1078
936
d3d50ac7cdd0 code compression
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1079
    "Modified: / 21.5.1998 / 03:40:34 / cg"
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
  1080
!
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
  1081
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
  1082
valueOfTimeLabel
2388
b0fc901b0cbe Mark obsolte methods as obsolete
Stefan Vogel <sv@exept.de>
parents: 2271
diff changeset
  1083
    <resource: #obsolete>
907
f4087882555a method comments added
tz
parents: 893
diff changeset
  1084
    "returns the time label as value holder"
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1085
2104
ac3c0a89fd95 valueOf* methods renamed
Claus Gittinger <cg@exept.de>
parents: 2098
diff changeset
  1086
    self obsoleteMethodWarning:'stupid name - use timeLabelHolder'.
ac3c0a89fd95 valueOf* methods renamed
Claus Gittinger <cg@exept.de>
parents: 2098
diff changeset
  1087
    ^ self timeLabelHolder
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1088
936
d3d50ac7cdd0 code compression
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1089
    "Modified: / 21.5.1998 / 03:40:42 / cg"
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1090
! !
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1091
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
  1092
!ToolApplicationModel methodsFor:'clipboard'!
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1093
838
d2588cca5a15 some obselete texts removed
tz
parents: 834
diff changeset
  1094
clipboard
907
f4087882555a method comments added
tz
parents: 893
diff changeset
  1095
    "returns the clipboard"
838
d2588cca5a15 some obselete texts removed
tz
parents: 834
diff changeset
  1096
d2588cca5a15 some obselete texts removed
tz
parents: 834
diff changeset
  1097
    ^self class clipboard
d2588cca5a15 some obselete texts removed
tz
parents: 834
diff changeset
  1098
!
d2588cca5a15 some obselete texts removed
tz
parents: 834
diff changeset
  1099
2104
ac3c0a89fd95 valueOf* methods renamed
Claus Gittinger <cg@exept.de>
parents: 2098
diff changeset
  1100
clipboard:anEditObject
907
f4087882555a method comments added
tz
parents: 893
diff changeset
  1101
    "sets the clipboard and the value holder for can pasting"
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1102
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
  1103
    self class clipboard: anEditObject.
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1104
2104
ac3c0a89fd95 valueOf* methods renamed
Claus Gittinger <cg@exept.de>
parents: 2098
diff changeset
  1105
    self canPasteHolder value: anEditObject notNil
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
  1106
! !
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
  1107
1195
3e136baa74f9 moved all clock-handling code to one place
Claus Gittinger <cg@exept.de>
parents: 1165
diff changeset
  1108
!ToolApplicationModel methodsFor:'clock handling'!
3e136baa74f9 moved all clock-handling code to one place
Claus Gittinger <cg@exept.de>
parents: 1165
diff changeset
  1109
3e136baa74f9 moved all clock-handling code to one place
Claus Gittinger <cg@exept.de>
parents: 1165
diff changeset
  1110
startClock
3e136baa74f9 moved all clock-handling code to one place
Claus Gittinger <cg@exept.de>
parents: 1165
diff changeset
  1111
    "/ start the time-block
3e136baa74f9 moved all clock-handling code to one place
Claus Gittinger <cg@exept.de>
parents: 1165
diff changeset
  1112
    self startClockOnTimedBlock:[self updateTime]. 
3e136baa74f9 moved all clock-handling code to one place
Claus Gittinger <cg@exept.de>
parents: 1165
diff changeset
  1113
!
3e136baa74f9 moved all clock-handling code to one place
Claus Gittinger <cg@exept.de>
parents: 1165
diff changeset
  1114
3e136baa74f9 moved all clock-handling code to one place
Claus Gittinger <cg@exept.de>
parents: 1165
diff changeset
  1115
startClockOnTimedBlock: aBlock
3e136baa74f9 moved all clock-handling code to one place
Claus Gittinger <cg@exept.de>
parents: 1165
diff changeset
  1116
    "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
  1117
3e136baa74f9 moved all clock-handling code to one place
Claus Gittinger <cg@exept.de>
parents: 1165
diff changeset
  1118
    timeBlock := aBlock.
3e136baa74f9 moved all clock-handling code to one place
Claus Gittinger <cg@exept.de>
parents: 1165
diff changeset
  1119
    aBlock value.
3e136baa74f9 moved all clock-handling code to one place
Claus Gittinger <cg@exept.de>
parents: 1165
diff changeset
  1120
3e136baa74f9 moved all clock-handling code to one place
Claus Gittinger <cg@exept.de>
parents: 1165
diff changeset
  1121
    "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
  1122
!
3e136baa74f9 moved all clock-handling code to one place
Claus Gittinger <cg@exept.de>
parents: 1165
diff changeset
  1123
3e136baa74f9 moved all clock-handling code to one place
Claus Gittinger <cg@exept.de>
parents: 1165
diff changeset
  1124
stopClock
3e136baa74f9 moved all clock-handling code to one place
Claus Gittinger <cg@exept.de>
parents: 1165
diff changeset
  1125
    "/ stop the time-block
3e136baa74f9 moved all clock-handling code to one place
Claus Gittinger <cg@exept.de>
parents: 1165
diff changeset
  1126
3e136baa74f9 moved all clock-handling code to one place
Claus Gittinger <cg@exept.de>
parents: 1165
diff changeset
  1127
    timeBlock notNil ifTrue:[
3e136baa74f9 moved all clock-handling code to one place
Claus Gittinger <cg@exept.de>
parents: 1165
diff changeset
  1128
        Processor removeTimedBlock:timeBlock.
3e136baa74f9 moved all clock-handling code to one place
Claus Gittinger <cg@exept.de>
parents: 1165
diff changeset
  1129
        timeBlock := nil.
3e136baa74f9 moved all clock-handling code to one place
Claus Gittinger <cg@exept.de>
parents: 1165
diff changeset
  1130
    ].
2104
ac3c0a89fd95 valueOf* methods renamed
Claus Gittinger <cg@exept.de>
parents: 2098
diff changeset
  1131
    self timeLabelHolder value:''
1195
3e136baa74f9 moved all clock-handling code to one place
Claus Gittinger <cg@exept.de>
parents: 1165
diff changeset
  1132
!
3e136baa74f9 moved all clock-handling code to one place
Claus Gittinger <cg@exept.de>
parents: 1165
diff changeset
  1133
3e136baa74f9 moved all clock-handling code to one place
Claus Gittinger <cg@exept.de>
parents: 1165
diff changeset
  1134
updateTime
3e136baa74f9 moved all clock-handling code to one place
Claus Gittinger <cg@exept.de>
parents: 1165
diff changeset
  1135
    "update my time-field"
3e136baa74f9 moved all clock-handling code to one place
Claus Gittinger <cg@exept.de>
parents: 1165
diff changeset
  1136
3e136baa74f9 moved all clock-handling code to one place
Claus Gittinger <cg@exept.de>
parents: 1165
diff changeset
  1137
    |now hours minutes suffix|
3e136baa74f9 moved all clock-handling code to one place
Claus Gittinger <cg@exept.de>
parents: 1165
diff changeset
  1138
3e136baa74f9 moved all clock-handling code to one place
Claus Gittinger <cg@exept.de>
parents: 1165
diff changeset
  1139
    now := Time now.
3e136baa74f9 moved all clock-handling code to one place
Claus Gittinger <cg@exept.de>
parents: 1165
diff changeset
  1140
3e136baa74f9 moved all clock-handling code to one place
Claus Gittinger <cg@exept.de>
parents: 1165
diff changeset
  1141
    hours := now hours.
3e136baa74f9 moved all clock-handling code to one place
Claus Gittinger <cg@exept.de>
parents: 1165
diff changeset
  1142
    minutes := now minutes printString.
3e136baa74f9 moved all clock-handling code to one place
Claus Gittinger <cg@exept.de>
parents: 1165
diff changeset
  1143
    suffix := ' '.
3e136baa74f9 moved all clock-handling code to one place
Claus Gittinger <cg@exept.de>
parents: 1165
diff changeset
  1144
2121
aaa63f6a0025 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2108
diff changeset
  1145
    (resources string:'TIME_FORMAT' default:12) == 12 ifTrue:[
1195
3e136baa74f9 moved all clock-handling code to one place
Claus Gittinger <cg@exept.de>
parents: 1165
diff changeset
  1146
        suffix := ' am '.  
3e136baa74f9 moved all clock-handling code to one place
Claus Gittinger <cg@exept.de>
parents: 1165
diff changeset
  1147
        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
  1148
    ].
3e136baa74f9 moved all clock-handling code to one place
Claus Gittinger <cg@exept.de>
parents: 1165
diff changeset
  1149
3e136baa74f9 moved all clock-handling code to one place
Claus Gittinger <cg@exept.de>
parents: 1165
diff changeset
  1150
    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
  1151
2104
ac3c0a89fd95 valueOf* methods renamed
Claus Gittinger <cg@exept.de>
parents: 2098
diff changeset
  1152
    self timeLabelHolder value:(hours printString, ':', minutes, suffix).
1195
3e136baa74f9 moved all clock-handling code to one place
Claus Gittinger <cg@exept.de>
parents: 1165
diff changeset
  1153
3e136baa74f9 moved all clock-handling code to one place
Claus Gittinger <cg@exept.de>
parents: 1165
diff changeset
  1154
    timeBlock notNil ifTrue:[
3e136baa74f9 moved all clock-handling code to one place
Claus Gittinger <cg@exept.de>
parents: 1165
diff changeset
  1155
        Processor removeTimedBlock:timeBlock.
3e136baa74f9 moved all clock-handling code to one place
Claus Gittinger <cg@exept.de>
parents: 1165
diff changeset
  1156
        Processor addTimedBlock:timeBlock afterSeconds:5
3e136baa74f9 moved all clock-handling code to one place
Claus Gittinger <cg@exept.de>
parents: 1165
diff changeset
  1157
    ]
3e136baa74f9 moved all clock-handling code to one place
Claus Gittinger <cg@exept.de>
parents: 1165
diff changeset
  1158
! !
3e136baa74f9 moved all clock-handling code to one place
Claus Gittinger <cg@exept.de>
parents: 1165
diff changeset
  1159
1006
786de97d72f9 allow redefinition of the about-boxes image.
Claus Gittinger <cg@exept.de>
parents: 1004
diff changeset
  1160
!ToolApplicationModel methodsFor:'defaults'!
786de97d72f9 allow redefinition of the about-boxes image.
Claus Gittinger <cg@exept.de>
parents: 1004
diff changeset
  1161
786de97d72f9 allow redefinition of the about-boxes image.
Claus Gittinger <cg@exept.de>
parents: 1004
diff changeset
  1162
aboutImage
786de97d72f9 allow redefinition of the about-boxes image.
Claus Gittinger <cg@exept.de>
parents: 1004
diff changeset
  1163
    "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
  1164
     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
  1165
2771
9c8ce6487992 changed: #aboutImage
Claus Gittinger <cg@exept.de>
parents: 2587
diff changeset
  1166
    ^ self class defaultIcon
1006
786de97d72f9 allow redefinition of the about-boxes image.
Claus Gittinger <cg@exept.de>
parents: 1004
diff changeset
  1167
786de97d72f9 allow redefinition of the about-boxes image.
Claus Gittinger <cg@exept.de>
parents: 1004
diff changeset
  1168
    "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
  1169
! !
786de97d72f9 allow redefinition of the about-boxes image.
Claus Gittinger <cg@exept.de>
parents: 1004
diff changeset
  1170
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
  1171
!ToolApplicationModel methodsFor:'help'!
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1172
1526
02941e80a146 refactored aboutBox setup for easier subclassing
Claus Gittinger <cg@exept.de>
parents: 1516
diff changeset
  1173
aboutThisApplicationText
02941e80a146 refactored aboutBox setup for easier subclassing
Claus Gittinger <cg@exept.de>
parents: 1516
diff changeset
  1174
    "text for an about box for this application.
02941e80a146 refactored aboutBox setup for easier subclassing
Claus Gittinger <cg@exept.de>
parents: 1516
diff changeset
  1175
     Extracts some common info (i.e. class revision, author etc.) from
02941e80a146 refactored aboutBox setup for easier subclassing
Claus Gittinger <cg@exept.de>
parents: 1516
diff changeset
  1176
     the classes documentation."
02941e80a146 refactored aboutBox setup for easier subclassing
Claus Gittinger <cg@exept.de>
parents: 1516
diff changeset
  1177
02941e80a146 refactored aboutBox setup for easier subclassing
Claus Gittinger <cg@exept.de>
parents: 1516
diff changeset
  1178
    |rev myClass clsRev msg|
02941e80a146 refactored aboutBox setup for easier subclassing
Claus Gittinger <cg@exept.de>
parents: 1516
diff changeset
  1179
02941e80a146 refactored aboutBox setup for easier subclassing
Claus Gittinger <cg@exept.de>
parents: 1516
diff changeset
  1180
    rev := ''.
2480
e42b4f10bb5c fixed aboutThisApplicationText
Claus Gittinger <cg@exept.de>
parents: 2451
diff changeset
  1181
    myClass := (self class topOwningClass) ? self class.
1526
02941e80a146 refactored aboutBox setup for easier subclassing
Claus Gittinger <cg@exept.de>
parents: 1516
diff changeset
  1182
2271
8ad7158a757a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2266
diff changeset
  1183
    (clsRev := myClass revision) notNil ifTrue: [
8ad7158a757a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2266
diff changeset
  1184
        rev := '  (rev: ', clsRev printString, ')'
8ad7158a757a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2266
diff changeset
  1185
    ].
1526
02941e80a146 refactored aboutBox setup for easier subclassing
Claus Gittinger <cg@exept.de>
parents: 1516
diff changeset
  1186
02941e80a146 refactored aboutBox setup for easier subclassing
Claus Gittinger <cg@exept.de>
parents: 1516
diff changeset
  1187
    msg := '\The application\\' withCRs
02941e80a146 refactored aboutBox setup for easier subclassing
Claus Gittinger <cg@exept.de>
parents: 1516
diff changeset
  1188
        , myClass name asBoldText, rev
02941e80a146 refactored aboutBox setup for easier subclassing
Claus Gittinger <cg@exept.de>
parents: 1516
diff changeset
  1189
        , '\\has been designed and implemented by: \' withCRs
2451
a51ca6c7576c about text generation
Claus Gittinger <cg@exept.de>
parents: 2388
diff changeset
  1190
        , ((self class authorLinesForAboutBox collect:[:l | '    ' , l]) asStringWith:$\) withCRs
1526
02941e80a146 refactored aboutBox setup for easier subclassing
Claus Gittinger <cg@exept.de>
parents: 1516
diff changeset
  1191
        , '\\' withCRs.
02941e80a146 refactored aboutBox setup for easier subclassing
Claus Gittinger <cg@exept.de>
parents: 1516
diff changeset
  1192
    msg := msg withTabsExpanded.
02941e80a146 refactored aboutBox setup for easier subclassing
Claus Gittinger <cg@exept.de>
parents: 1516
diff changeset
  1193
    ^msg
02941e80a146 refactored aboutBox setup for easier subclassing
Claus Gittinger <cg@exept.de>
parents: 1516
diff changeset
  1194
2271
8ad7158a757a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2266
diff changeset
  1195
    "Created: / 13-11-2001 / 12:34:19 / cg"
8ad7158a757a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2266
diff changeset
  1196
    "Modified: / 27-10-2006 / 16:13:35 / cg"
1526
02941e80a146 refactored aboutBox setup for easier subclassing
Claus Gittinger <cg@exept.de>
parents: 1516
diff changeset
  1197
!
02941e80a146 refactored aboutBox setup for easier subclassing
Claus Gittinger <cg@exept.de>
parents: 1516
diff changeset
  1198
762
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
  1199
defaultInfoLabel
907
f4087882555a method comments added
tz
parents: 893
diff changeset
  1200
    "returns the default info label; here an empty string"
762
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
  1201
1018
7222534cb3dc part of the activeHelp framework moved to ApplicationModel.
Claus Gittinger <cg@exept.de>
parents: 1016
diff changeset
  1202
    ^ ''
984
a0a868c45691 show help synchronously
Claus Gittinger <cg@exept.de>
parents: 982
diff changeset
  1203
1018
7222534cb3dc part of the activeHelp framework moved to ApplicationModel.
Claus Gittinger <cg@exept.de>
parents: 1016
diff changeset
  1204
    "Modified: / 31.7.1998 / 18:44:55 / cg"
984
a0a868c45691 show help synchronously
Claus Gittinger <cg@exept.de>
parents: 982
diff changeset
  1205
!
a0a868c45691 show help synchronously
Claus Gittinger <cg@exept.de>
parents: 982
diff changeset
  1206
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1207
openAbout
1018
7222534cb3dc part of the activeHelp framework moved to ApplicationModel.
Claus Gittinger <cg@exept.de>
parents: 1016
diff changeset
  1208
    "opens an about box (on ST/X)"
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1209
1043
32cd5ccbd94f made openAboutSTX a class method for sharability.
Claus Gittinger <cg@exept.de>
parents: 1040
diff changeset
  1210
    self class openAboutSTX
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1211
1043
32cd5ccbd94f made openAboutSTX a class method for sharability.
Claus Gittinger <cg@exept.de>
parents: 1040
diff changeset
  1212
    "Modified: / 14.8.1998 / 13:17:57 / cg"
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1213
!
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1214
858
a36ca9158a69 show help bug fixed
tz
parents: 853
diff changeset
  1215
openHTMLDocument: aHTMLFilename
907
f4087882555a method comments added
tz
parents: 893
diff changeset
  1216
    "opens a HTML browser on aHTMLFilename"
858
a36ca9158a69 show help bug fixed
tz
parents: 853
diff changeset
  1217
a36ca9158a69 show help bug fixed
tz
parents: 853
diff changeset
  1218
    HTMLDocumentView openFullOnDocumentationFile: aHTMLFilename
a36ca9158a69 show help bug fixed
tz
parents: 853
diff changeset
  1219
!
a36ca9158a69 show help bug fixed
tz
parents: 853
diff changeset
  1220
1018
7222534cb3dc part of the activeHelp framework moved to ApplicationModel.
Claus Gittinger <cg@exept.de>
parents: 1016
diff changeset
  1221
showHelp:aHelpText for:view
1631
14d4694d9a5a Comments
Stefan Vogel <sv@exept.de>
parents: 1624
diff changeset
  1222
    "displays aHelpText in the info label.
14d4694d9a5a Comments
Stefan Vogel <sv@exept.de>
parents: 1624
diff changeset
  1223
     Only text up to '.' is shown"
1018
7222534cb3dc part of the activeHelp framework moved to ApplicationModel.
Claus Gittinger <cg@exept.de>
parents: 1016
diff changeset
  1224
1343
3ee2bcb3527d undo last change
ca
parents: 1341
diff changeset
  1225
"/    masterApplication notNil ifTrue:[
3ee2bcb3527d undo last change
ca
parents: 1341
diff changeset
  1226
"/        ^ masterApplication showHelp:aHelpText for:view
3ee2bcb3527d undo last change
ca
parents: 1341
diff changeset
  1227
"/    ].
3ee2bcb3527d undo last change
ca
parents: 1341
diff changeset
  1228
"/
1018
7222534cb3dc part of the activeHelp framework moved to ApplicationModel.
Claus Gittinger <cg@exept.de>
parents: 1016
diff changeset
  1229
    aHelpText isNil 
7222534cb3dc part of the activeHelp framework moved to ApplicationModel.
Claus Gittinger <cg@exept.de>
parents: 1016
diff changeset
  1230
        ifTrue:  [self updateInfoLabel] 
2104
ac3c0a89fd95 valueOf* methods renamed
Claus Gittinger <cg@exept.de>
parents: 2098
diff changeset
  1231
        ifFalse: [self infoLabelHolder value:aHelpText asString].
1018
7222534cb3dc part of the activeHelp framework moved to ApplicationModel.
Claus Gittinger <cg@exept.de>
parents: 1016
diff changeset
  1232
!
7222534cb3dc part of the activeHelp framework moved to ApplicationModel.
Claus Gittinger <cg@exept.de>
parents: 1016
diff changeset
  1233
7222534cb3dc part of the activeHelp framework moved to ApplicationModel.
Claus Gittinger <cg@exept.de>
parents: 1016
diff changeset
  1234
showingHelp
7222534cb3dc part of the activeHelp framework moved to ApplicationModel.
Claus Gittinger <cg@exept.de>
parents: 1016
diff changeset
  1235
    "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
  1236
     application; false otherwise"
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
  1237
783
4e1545900244 show help corrections
tz
parents: 782
diff changeset
  1238
    |currentActiveHelp|
858
a36ca9158a69 show help bug fixed
tz
parents: 853
diff changeset
  1239
783
4e1545900244 show help corrections
tz
parents: 782
diff changeset
  1240
    currentActiveHelp := ActiveHelp currentHelpListener.
4e1545900244 show help corrections
tz
parents: 782
diff changeset
  1241
1018
7222534cb3dc part of the activeHelp framework moved to ApplicationModel.
Claus Gittinger <cg@exept.de>
parents: 1016
diff changeset
  1242
    ^ self class showingHelp 
1051
65dfbf6481b5 showingHelp fixed (tree-item editor)
Claus Gittinger <cg@exept.de>
parents: 1043
diff changeset
  1243
      and: [currentActiveHelp notNil and: [
65dfbf6481b5 showingHelp fixed (tree-item editor)
Claus Gittinger <cg@exept.de>
parents: 1043
diff changeset
  1244
                currentActiveHelp interestedIn: self window]]
65dfbf6481b5 showingHelp fixed (tree-item editor)
Claus Gittinger <cg@exept.de>
parents: 1043
diff changeset
  1245
65dfbf6481b5 showingHelp fixed (tree-item editor)
Claus Gittinger <cg@exept.de>
parents: 1043
diff changeset
  1246
"/    ^ self class showingHelp 
65dfbf6481b5 showingHelp fixed (tree-item editor)
Claus Gittinger <cg@exept.de>
parents: 1043
diff changeset
  1247
"/      and: [currentActiveHelp notNil and: [masterApplication notNil 
65dfbf6481b5 showingHelp fixed (tree-item editor)
Claus Gittinger <cg@exept.de>
parents: 1043
diff changeset
  1248
"/                ifFalse: [currentActiveHelp interestedIn: self window]
65dfbf6481b5 showingHelp fixed (tree-item editor)
Claus Gittinger <cg@exept.de>
parents: 1043
diff changeset
  1249
"/                ifTrue:  [currentActiveHelp interestedIn: masterApplication window]]]
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
  1250
1018
7222534cb3dc part of the activeHelp framework moved to ApplicationModel.
Claus Gittinger <cg@exept.de>
parents: 1016
diff changeset
  1251
    "Created: / 31.7.1998 / 17:57:03 / cg"
1051
65dfbf6481b5 showingHelp fixed (tree-item editor)
Claus Gittinger <cg@exept.de>
parents: 1043
diff changeset
  1252
    "Modified: / 22.8.1998 / 00:06:38 / cg"
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
  1253
!
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
  1254
1018
7222534cb3dc part of the activeHelp framework moved to ApplicationModel.
Claus Gittinger <cg@exept.de>
parents: 1016
diff changeset
  1255
showingHelp: aValue
7222534cb3dc part of the activeHelp framework moved to ApplicationModel.
Claus Gittinger <cg@exept.de>
parents: 1016
diff changeset
  1256
    "toggles showing help for this application"
984
a0a868c45691 show help synchronously
Claus Gittinger <cg@exept.de>
parents: 982
diff changeset
  1257
1018
7222534cb3dc part of the activeHelp framework moved to ApplicationModel.
Claus Gittinger <cg@exept.de>
parents: 1016
diff changeset
  1258
    (self class showingHelp: aValue)
7222534cb3dc part of the activeHelp framework moved to ApplicationModel.
Claus Gittinger <cg@exept.de>
parents: 1016
diff changeset
  1259
        ifTrue:  [ActiveHelp startFor:self]
7222534cb3dc part of the activeHelp framework moved to ApplicationModel.
Claus Gittinger <cg@exept.de>
parents: 1016
diff changeset
  1260
        ifFalse: [ActiveHelp stopFor:self. self updateInfoLabel]
984
a0a868c45691 show help synchronously
Claus Gittinger <cg@exept.de>
parents: 982
diff changeset
  1261
1018
7222534cb3dc part of the activeHelp framework moved to ApplicationModel.
Claus Gittinger <cg@exept.de>
parents: 1016
diff changeset
  1262
    "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
  1263
    "Modified: / 31.7.1998 / 18:44:39 / cg"
822
374400d57e0b some useful aspects added
tz
parents: 821
diff changeset
  1264
!
374400d57e0b some useful aspects added
tz
parents: 821
diff changeset
  1265
374400d57e0b some useful aspects added
tz
parents: 821
diff changeset
  1266
updateInfoLabel
1018
7222534cb3dc part of the activeHelp framework moved to ApplicationModel.
Claus Gittinger <cg@exept.de>
parents: 1016
diff changeset
  1267
    "updates the info label at the bottom of this application"
822
374400d57e0b some useful aspects added
tz
parents: 821
diff changeset
  1268
2104
ac3c0a89fd95 valueOf* methods renamed
Claus Gittinger <cg@exept.de>
parents: 2098
diff changeset
  1269
    self infoLabelHolder value: self defaultInfoLabel
1018
7222534cb3dc part of the activeHelp framework moved to ApplicationModel.
Claus Gittinger <cg@exept.de>
parents: 1016
diff changeset
  1270
7222534cb3dc part of the activeHelp framework moved to ApplicationModel.
Claus Gittinger <cg@exept.de>
parents: 1016
diff changeset
  1271
    "Modified: / 31.7.1998 / 18:44:46 / cg"
1526
02941e80a146 refactored aboutBox setup for easier subclassing
Claus Gittinger <cg@exept.de>
parents: 1516
diff changeset
  1272
!
02941e80a146 refactored aboutBox setup for easier subclassing
Claus Gittinger <cg@exept.de>
parents: 1516
diff changeset
  1273
02941e80a146 refactored aboutBox setup for easier subclassing
Claus Gittinger <cg@exept.de>
parents: 1516
diff changeset
  1274
xxopenAboutThisApplication
02941e80a146 refactored aboutBox setup for easier subclassing
Claus Gittinger <cg@exept.de>
parents: 1516
diff changeset
  1275
    "opens an about box for this application.
02941e80a146 refactored aboutBox setup for easier subclassing
Claus Gittinger <cg@exept.de>
parents: 1516
diff changeset
  1276
     Extracts some common info (i.e. class revision, author etc. from
02941e80a146 refactored aboutBox setup for easier subclassing
Claus Gittinger <cg@exept.de>
parents: 1516
diff changeset
  1277
     the classes documentation."
02941e80a146 refactored aboutBox setup for easier subclassing
Claus Gittinger <cg@exept.de>
parents: 1516
diff changeset
  1278
02941e80a146 refactored aboutBox setup for easier subclassing
Claus Gittinger <cg@exept.de>
parents: 1516
diff changeset
  1279
    |rev box myClass clsRev image msg|
02941e80a146 refactored aboutBox setup for easier subclassing
Claus Gittinger <cg@exept.de>
parents: 1516
diff changeset
  1280
02941e80a146 refactored aboutBox setup for easier subclassing
Claus Gittinger <cg@exept.de>
parents: 1516
diff changeset
  1281
    rev := ''.
02941e80a146 refactored aboutBox setup for easier subclassing
Claus Gittinger <cg@exept.de>
parents: 1516
diff changeset
  1282
    myClass := self class.
02941e80a146 refactored aboutBox setup for easier subclassing
Claus Gittinger <cg@exept.de>
parents: 1516
diff changeset
  1283
02941e80a146 refactored aboutBox setup for easier subclassing
Claus Gittinger <cg@exept.de>
parents: 1516
diff changeset
  1284
    (clsRev := myClass revision) notNil ifTrue: [rev := '  (rev: ', clsRev printString, ')'].
02941e80a146 refactored aboutBox setup for easier subclassing
Claus Gittinger <cg@exept.de>
parents: 1516
diff changeset
  1285
02941e80a146 refactored aboutBox setup for easier subclassing
Claus Gittinger <cg@exept.de>
parents: 1516
diff changeset
  1286
    msg := '\The application\\' withCRs
02941e80a146 refactored aboutBox setup for easier subclassing
Claus Gittinger <cg@exept.de>
parents: 1516
diff changeset
  1287
        , myClass name asBoldText, rev
02941e80a146 refactored aboutBox setup for easier subclassing
Claus Gittinger <cg@exept.de>
parents: 1516
diff changeset
  1288
        , '\\has been designed and implemented by: \' withCRs
02941e80a146 refactored aboutBox setup for easier subclassing
Claus Gittinger <cg@exept.de>
parents: 1516
diff changeset
  1289
        , ((self class authorLinesForAboutBox collect:[:l | '- ' , l]) asStringWith:$\) withCRs
02941e80a146 refactored aboutBox setup for easier subclassing
Claus Gittinger <cg@exept.de>
parents: 1516
diff changeset
  1290
        , '\\' withCRs.
02941e80a146 refactored aboutBox setup for easier subclassing
Claus Gittinger <cg@exept.de>
parents: 1516
diff changeset
  1291
    msg := msg withTabsExpanded.
02941e80a146 refactored aboutBox setup for easier subclassing
Claus Gittinger <cg@exept.de>
parents: 1516
diff changeset
  1292
02941e80a146 refactored aboutBox setup for easier subclassing
Claus Gittinger <cg@exept.de>
parents: 1516
diff changeset
  1293
    AboutBox isNil ifTrue:[
02941e80a146 refactored aboutBox setup for easier subclassing
Claus Gittinger <cg@exept.de>
parents: 1516
diff changeset
  1294
        "/ this handles bad installations of ST/X,
02941e80a146 refactored aboutBox setup for easier subclassing
Claus Gittinger <cg@exept.de>
parents: 1516
diff changeset
  1295
        "/ where the AboutBox is missing.
02941e80a146 refactored aboutBox setup for easier subclassing
Claus Gittinger <cg@exept.de>
parents: 1516
diff changeset
  1296
        "/ (May vanish in the future)
02941e80a146 refactored aboutBox setup for easier subclassing
Claus Gittinger <cg@exept.de>
parents: 1516
diff changeset
  1297
        ^ self information:msg
02941e80a146 refactored aboutBox setup for easier subclassing
Claus Gittinger <cg@exept.de>
parents: 1516
diff changeset
  1298
    ].
02941e80a146 refactored aboutBox setup for easier subclassing
Claus Gittinger <cg@exept.de>
parents: 1516
diff changeset
  1299
02941e80a146 refactored aboutBox setup for easier subclassing
Claus Gittinger <cg@exept.de>
parents: 1516
diff changeset
  1300
    box := AboutBox title:msg.
02941e80a146 refactored aboutBox setup for easier subclassing
Claus Gittinger <cg@exept.de>
parents: 1516
diff changeset
  1301
02941e80a146 refactored aboutBox setup for easier subclassing
Claus Gittinger <cg@exept.de>
parents: 1516
diff changeset
  1302
    image := self aboutImage.
02941e80a146 refactored aboutBox setup for easier subclassing
Claus Gittinger <cg@exept.de>
parents: 1516
diff changeset
  1303
    image notNil ifTrue:[
02941e80a146 refactored aboutBox setup for easier subclassing
Claus Gittinger <cg@exept.de>
parents: 1516
diff changeset
  1304
        box image:image
02941e80a146 refactored aboutBox setup for easier subclassing
Claus Gittinger <cg@exept.de>
parents: 1516
diff changeset
  1305
    ].
02941e80a146 refactored aboutBox setup for easier subclassing
Claus Gittinger <cg@exept.de>
parents: 1516
diff changeset
  1306
    box   label:(resources string:self aboutThisApplicationLabel).
02941e80a146 refactored aboutBox setup for easier subclassing
Claus Gittinger <cg@exept.de>
parents: 1516
diff changeset
  1307
    box   autoHideAfter:10 with:[].
02941e80a146 refactored aboutBox setup for easier subclassing
Claus Gittinger <cg@exept.de>
parents: 1516
diff changeset
  1308
    box   showAtPointer.
02941e80a146 refactored aboutBox setup for easier subclassing
Claus Gittinger <cg@exept.de>
parents: 1516
diff changeset
  1309
02941e80a146 refactored aboutBox setup for easier subclassing
Claus Gittinger <cg@exept.de>
parents: 1516
diff changeset
  1310
    "Modified: / 13.11.2001 / 12:31:28 / cg"
02941e80a146 refactored aboutBox setup for easier subclassing
Claus Gittinger <cg@exept.de>
parents: 1516
diff changeset
  1311
    "Created: / 13.11.2001 / 12:34:27 / cg"
762
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
  1312
! !
2c25cc1b363e detour help texts into bottomed info label
tz
parents: 761
diff changeset
  1313
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1314
!ToolApplicationModel methodsFor:'history'!
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1315
2098
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
  1316
add:aHistoryEntry toHistory:aHistory
1969
8e8f5998d053 separate fileHistory
Claus Gittinger <cg@exept.de>
parents: 1809
diff changeset
  1317
    "adds aHistoryEntry (format: loadMessage -> evalString) at the top of aHistory,
8e8f5998d053 separate fileHistory
Claus Gittinger <cg@exept.de>
parents: 1809
diff changeset
  1318
     and checks for maximum size of the history"
8e8f5998d053 separate fileHistory
Claus Gittinger <cg@exept.de>
parents: 1809
diff changeset
  1319
2098
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
  1320
    aHistory remove:aHistoryEntry ifAbsent:nil.
1969
8e8f5998d053 separate fileHistory
Claus Gittinger <cg@exept.de>
parents: 1809
diff changeset
  1321
    aHistory addFirst: aHistoryEntry.
8e8f5998d053 separate fileHistory
Claus Gittinger <cg@exept.de>
parents: 1809
diff changeset
  1322
    [aHistory size > self class historyMaxSize] whileTrue: [aHistory removeLast]
8e8f5998d053 separate fileHistory
Claus Gittinger <cg@exept.de>
parents: 1809
diff changeset
  1323
!
8e8f5998d053 separate fileHistory
Claus Gittinger <cg@exept.de>
parents: 1809
diff changeset
  1324
2098
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
  1325
addHistoryEntryForClass:classToAdd selector:selectorToAdd
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
  1326
    "adds aHistoryEntry (format: loadMessage -> evalString) at the top of the history,
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
  1327
     and checks for maximum size of the history"
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
  1328
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
  1329
    |entry|
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
  1330
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
  1331
    self assert:(classToAdd isBehavior).
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
  1332
    entry := HistoryEntryForMethod class:classToAdd selector:selectorToAdd.
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
  1333
    self addToHistory:entry
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
  1334
!
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
  1335
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
  1336
addHistoryEntryForFile:fileName
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
  1337
    |entry|
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
  1338
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
  1339
    entry := HistoryEntryForFile filename:fileName.
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
  1340
    self addToHistory:entry
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
  1341
!
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
  1342
1969
8e8f5998d053 separate fileHistory
Claus Gittinger <cg@exept.de>
parents: 1809
diff changeset
  1343
addToFileHistory: aHistoryEntry
8e8f5998d053 separate fileHistory
Claus Gittinger <cg@exept.de>
parents: 1809
diff changeset
  1344
    "adds aHistoryEntry (format: loadMessage -> evalString) at the top of the file-history,
8e8f5998d053 separate fileHistory
Claus Gittinger <cg@exept.de>
parents: 1809
diff changeset
  1345
     and checks for maximum size of the history"
8e8f5998d053 separate fileHistory
Claus Gittinger <cg@exept.de>
parents: 1809
diff changeset
  1346
2098
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
  1347
    self add:aHistoryEntry toHistory:self fileHistory
1969
8e8f5998d053 separate fileHistory
Claus Gittinger <cg@exept.de>
parents: 1809
diff changeset
  1348
!
8e8f5998d053 separate fileHistory
Claus Gittinger <cg@exept.de>
parents: 1809
diff changeset
  1349
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1350
addToHistory: aHistoryEntry
907
f4087882555a method comments added
tz
parents: 893
diff changeset
  1351
    "adds aHistoryEntry (format: loadMessage -> evalString) at the top of the history,
f4087882555a method comments added
tz
parents: 893
diff changeset
  1352
     and checks for maximum size of the history"
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1353
2098
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
  1354
    self add:aHistoryEntry toHistory:self history
1969
8e8f5998d053 separate fileHistory
Claus Gittinger <cg@exept.de>
parents: 1809
diff changeset
  1355
!
8e8f5998d053 separate fileHistory
Claus Gittinger <cg@exept.de>
parents: 1809
diff changeset
  1356
8e8f5998d053 separate fileHistory
Claus Gittinger <cg@exept.de>
parents: 1809
diff changeset
  1357
emptyFileHistory
8e8f5998d053 separate fileHistory
Claus Gittinger <cg@exept.de>
parents: 1809
diff changeset
  1358
    "removes all history entries"
8e8f5998d053 separate fileHistory
Claus Gittinger <cg@exept.de>
parents: 1809
diff changeset
  1359
8e8f5998d053 separate fileHistory
Claus Gittinger <cg@exept.de>
parents: 1809
diff changeset
  1360
    ^ self fileHistory removeAll
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1361
!
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1362
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1363
emptyHistory
907
f4087882555a method comments added
tz
parents: 893
diff changeset
  1364
    "removes all history entries"
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1365
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1366
    ^self history removeAll
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1367
!
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1368
1969
8e8f5998d053 separate fileHistory
Claus Gittinger <cg@exept.de>
parents: 1809
diff changeset
  1369
fileHistory
8e8f5998d053 separate fileHistory
Claus Gittinger <cg@exept.de>
parents: 1809
diff changeset
  1370
    "returns the file-history from tool class"
8e8f5998d053 separate fileHistory
Claus Gittinger <cg@exept.de>
parents: 1809
diff changeset
  1371
8e8f5998d053 separate fileHistory
Claus Gittinger <cg@exept.de>
parents: 1809
diff changeset
  1372
    ^ self class getFileHistory
8e8f5998d053 separate fileHistory
Claus Gittinger <cg@exept.de>
parents: 1809
diff changeset
  1373
!
8e8f5998d053 separate fileHistory
Claus Gittinger <cg@exept.de>
parents: 1809
diff changeset
  1374
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1375
history
907
f4087882555a method comments added
tz
parents: 893
diff changeset
  1376
    "returns the history from tool class"
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1377
1969
8e8f5998d053 separate fileHistory
Claus Gittinger <cg@exept.de>
parents: 1809
diff changeset
  1378
    ^ self class getHistory
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1379
!
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1380
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1381
menuHistory
1809
cfcbb13afdb5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1767
diff changeset
  1382
    "returns a dynamic history submenu"
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1383
1660
a6e519a4b41f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1644
diff changeset
  1384
    <resource: #programMenu >
a6e519a4b41f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1644
diff changeset
  1385
1809
cfcbb13afdb5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1767
diff changeset
  1386
    |menu anyItem clearItem|
920
6b72e4ce4406 must find gui resources (xlations in in history menu)
Claus Gittinger <cg@exept.de>
parents: 910
diff changeset
  1387
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1388
    menu := Menu new receiver: self.
1809
cfcbb13afdb5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1767
diff changeset
  1389
    anyItem := false.
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1390
2098
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
  1391
    ((self history 
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
  1392
        collect: [:histEntry| histEntry class]) 
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
  1393
            asSet asSortedCollection:[:a :b | a name < b name]) 
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
  1394
                do:
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
  1395
                    [:historyEntryType|    
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
  1396
                        menu addItemGroup:
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
  1397
                                (self history 
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
  1398
                                    select: [:histEntry| 
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
  1399
                                        histEntry class = historyEntryType] 
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
  1400
                                    thenCollect: [:histEntry|
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
  1401
                                        anyItem := true.
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
  1402
                                        MenuItem new 
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
  1403
                                            label: histEntry printStringInMenu; 
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
  1404
                                            value: #loadFromHistoryEntry: ; 
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
  1405
                                            argument: histEntry; 
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
  1406
                                            activeHelpKey: #historyMenuItem]).
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
  1407
                    ]. 
1809
cfcbb13afdb5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1767
diff changeset
  1408
cfcbb13afdb5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1767
diff changeset
  1409
    clearItem := MenuItem new 
1624
98b212d1e4e4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1555
diff changeset
  1410
                        label: 'Clear History'; 
920
6b72e4ce4406 must find gui resources (xlations in in history menu)
Claus Gittinger <cg@exept.de>
parents: 910
diff changeset
  1411
                        value: #emptyHistory; 
6b72e4ce4406 must find gui resources (xlations in in history menu)
Claus Gittinger <cg@exept.de>
parents: 910
diff changeset
  1412
                        activeHelpKey: #historyEmptyMenu;
1809
cfcbb13afdb5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1767
diff changeset
  1413
                        translateLabel:true.
cfcbb13afdb5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1767
diff changeset
  1414
    clearItem enabled:anyItem.
cfcbb13afdb5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1767
diff changeset
  1415
    menu addItem: clearItem.
920
6b72e4ce4406 must find gui resources (xlations in in history menu)
Claus Gittinger <cg@exept.de>
parents: 910
diff changeset
  1416
6b72e4ce4406 must find gui resources (xlations in in history menu)
Claus Gittinger <cg@exept.de>
parents: 910
diff changeset
  1417
    menu findGuiResourcesIn:self.
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1418
    ^menu
920
6b72e4ce4406 must find gui resources (xlations in in history menu)
Claus Gittinger <cg@exept.de>
parents: 910
diff changeset
  1419
1013
64f464903584 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1006
diff changeset
  1420
    "Modified: / 29.7.1998 / 11:40:11 / cg"
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1421
!
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1422
1969
8e8f5998d053 separate fileHistory
Claus Gittinger <cg@exept.de>
parents: 1809
diff changeset
  1423
remove:aHistoryEntry fromHistory: aHistory
8e8f5998d053 separate fileHistory
Claus Gittinger <cg@exept.de>
parents: 1809
diff changeset
  1424
    "removes aHistoryEntry from the history"
8e8f5998d053 separate fileHistory
Claus Gittinger <cg@exept.de>
parents: 1809
diff changeset
  1425
8e8f5998d053 separate fileHistory
Claus Gittinger <cg@exept.de>
parents: 1809
diff changeset
  1426
    aHistory remove: (aHistory detect: [:histEntry| histEntry key = aHistoryEntry key] ifNone: nil) ifAbsent: nil.
8e8f5998d053 separate fileHistory
Claus Gittinger <cg@exept.de>
parents: 1809
diff changeset
  1427
    [aHistory size > self class historyMaxSize] whileTrue: [aHistory removeLast]
8e8f5998d053 separate fileHistory
Claus Gittinger <cg@exept.de>
parents: 1809
diff changeset
  1428
!
8e8f5998d053 separate fileHistory
Claus Gittinger <cg@exept.de>
parents: 1809
diff changeset
  1429
2098
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
  1430
removeFromHistory:aHistoryEntry
907
f4087882555a method comments added
tz
parents: 893
diff changeset
  1431
    "removes aHistoryEntry from the history"
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1432
1969
8e8f5998d053 separate fileHistory
Claus Gittinger <cg@exept.de>
parents: 1809
diff changeset
  1433
    self remove:aHistoryEntry fromHistory: self history.
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1434
! !
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1435
982
807f440e0df7 bw. compatibility - needs builder early.
Claus Gittinger <cg@exept.de>
parents: 971
diff changeset
  1436
!ToolApplicationModel methodsFor:'initialization'!
807f440e0df7 bw. compatibility - needs builder early.
Claus Gittinger <cg@exept.de>
parents: 971
diff changeset
  1437
807f440e0df7 bw. compatibility - needs builder early.
Claus Gittinger <cg@exept.de>
parents: 971
diff changeset
  1438
initialize
807f440e0df7 bw. compatibility - needs builder early.
Claus Gittinger <cg@exept.de>
parents: 971
diff changeset
  1439
    super initialize.
807f440e0df7 bw. compatibility - needs builder early.
Claus Gittinger <cg@exept.de>
parents: 971
diff changeset
  1440
    self createBuilder
807f440e0df7 bw. compatibility - needs builder early.
Claus Gittinger <cg@exept.de>
parents: 971
diff changeset
  1441
807f440e0df7 bw. compatibility - needs builder early.
Claus Gittinger <cg@exept.de>
parents: 971
diff changeset
  1442
    "Created: / 20.6.1998 / 14:51:29 / cg"
807f440e0df7 bw. compatibility - needs builder early.
Claus Gittinger <cg@exept.de>
parents: 971
diff changeset
  1443
! !
807f440e0df7 bw. compatibility - needs builder early.
Claus Gittinger <cg@exept.de>
parents: 971
diff changeset
  1444
1200
a86be4f3fd69 added clearModifiedFlag
Claus Gittinger <cg@exept.de>
parents: 1195
diff changeset
  1445
!ToolApplicationModel methodsFor:'misc'!
a86be4f3fd69 added clearModifiedFlag
Claus Gittinger <cg@exept.de>
parents: 1195
diff changeset
  1446
a86be4f3fd69 added clearModifiedFlag
Claus Gittinger <cg@exept.de>
parents: 1195
diff changeset
  1447
clearModifiedFlag
a86be4f3fd69 added clearModifiedFlag
Claus Gittinger <cg@exept.de>
parents: 1195
diff changeset
  1448
    "clear the modifiedChannel.
a86be4f3fd69 added clearModifiedFlag
Claus Gittinger <cg@exept.de>
parents: 1195
diff changeset
  1449
     That one is hooked to components in the right noteBook,
a86be4f3fd69 added clearModifiedFlag
Claus Gittinger <cg@exept.de>
parents: 1195
diff changeset
  1450
     and will be set, when any value is modified.
a86be4f3fd69 added clearModifiedFlag
Claus Gittinger <cg@exept.de>
parents: 1195
diff changeset
  1451
     (to enable OK and cancel buttons)"
a86be4f3fd69 added clearModifiedFlag
Claus Gittinger <cg@exept.de>
parents: 1195
diff changeset
  1452
a86be4f3fd69 added clearModifiedFlag
Claus Gittinger <cg@exept.de>
parents: 1195
diff changeset
  1453
    self modifiedChannel value:false
a86be4f3fd69 added clearModifiedFlag
Claus Gittinger <cg@exept.de>
parents: 1195
diff changeset
  1454
! !
a86be4f3fd69 added clearModifiedFlag
Claus Gittinger <cg@exept.de>
parents: 1195
diff changeset
  1455
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
  1456
!ToolApplicationModel methodsFor:'queries'!
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
  1457
876
585929b1fec2 some cleans
tz
parents: 872
diff changeset
  1458
allToolInstances
907
f4087882555a method comments added
tz
parents: 893
diff changeset
  1459
    "returns all instances of this tool class"
876
585929b1fec2 some cleans
tz
parents: 872
diff changeset
  1460
1150
5211197a2671 NEVER - redefine allInstances
Claus Gittinger <cg@exept.de>
parents: 1148
diff changeset
  1461
    ^ self class allToolInstances
1089
49b05d386ccc removed Thomas's memory leak
Claus Gittinger <cg@exept.de>
parents: 1084
diff changeset
  1462
49b05d386ccc removed Thomas's memory leak
Claus Gittinger <cg@exept.de>
parents: 1084
diff changeset
  1463
    "Modified: / 4.2.1999 / 15:34:58 / cg"
876
585929b1fec2 some cleans
tz
parents: 872
diff changeset
  1464
!
585929b1fec2 some cleans
tz
parents: 872
diff changeset
  1465
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
  1466
preferredExtent
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
  1467
    "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
  1468
     will be considered"
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
  1469
1998
f1ebf439582d Do not set maxExtent (to the Screen size) in StandartSystemView.
Stefan Vogel <sv@exept.de>
parents: 1989
diff changeset
  1470
    |window menu menuToolbarView preferredExtentOfWindow maxExtent|
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
  1471
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
  1472
    window          := self builder window. 
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
  1473
    menu            := window subViews first.
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
  1474
    menuToolbarView := builder componentAt: #menuToolbarView.
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
  1475
1998
f1ebf439582d Do not set maxExtent (to the Screen size) in StandartSystemView.
Stefan Vogel <sv@exept.de>
parents: 1989
diff changeset
  1476
    preferredExtentOfWindow := window extent max:window minExtent.
f1ebf439582d Do not set maxExtent (to the Screen size) in StandartSystemView.
Stefan Vogel <sv@exept.de>
parents: 1989
diff changeset
  1477
    menu class == MenuPanel ifTrue:[
f1ebf439582d Do not set maxExtent (to the Screen size) in StandartSystemView.
Stefan Vogel <sv@exept.de>
parents: 1989
diff changeset
  1478
        preferredExtentOfWindow := preferredExtentOfWindow max:menu preferredExtent
f1ebf439582d Do not set maxExtent (to the Screen size) in StandartSystemView.
Stefan Vogel <sv@exept.de>
parents: 1989
diff changeset
  1479
    ].
f1ebf439582d Do not set maxExtent (to the Screen size) in StandartSystemView.
Stefan Vogel <sv@exept.de>
parents: 1989
diff changeset
  1480
    menuToolbarView notNil ifTrue:[
f1ebf439582d Do not set maxExtent (to the Screen size) in StandartSystemView.
Stefan Vogel <sv@exept.de>
parents: 1989
diff changeset
  1481
        preferredExtentOfWindow := preferredExtentOfWindow max:menuToolbarView preferredExtent
f1ebf439582d Do not set maxExtent (to the Screen size) in StandartSystemView.
Stefan Vogel <sv@exept.de>
parents: 1989
diff changeset
  1482
    ].
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
  1483
1998
f1ebf439582d Do not set maxExtent (to the Screen size) in StandartSystemView.
Stefan Vogel <sv@exept.de>
parents: 1989
diff changeset
  1484
    maxExtent := window maxExtent.
f1ebf439582d Do not set maxExtent (to the Screen size) in StandartSystemView.
Stefan Vogel <sv@exept.de>
parents: 1989
diff changeset
  1485
    maxExtent notNil ifTrue:[
f1ebf439582d Do not set maxExtent (to the Screen size) in StandartSystemView.
Stefan Vogel <sv@exept.de>
parents: 1989
diff changeset
  1486
        preferredExtentOfWindow := preferredExtentOfWindow min:maxExtent.
f1ebf439582d Do not set maxExtent (to the Screen size) in StandartSystemView.
Stefan Vogel <sv@exept.de>
parents: 1989
diff changeset
  1487
    ].
f1ebf439582d Do not set maxExtent (to the Screen size) in StandartSystemView.
Stefan Vogel <sv@exept.de>
parents: 1989
diff changeset
  1488
f1ebf439582d Do not set maxExtent (to the Screen size) in StandartSystemView.
Stefan Vogel <sv@exept.de>
parents: 1989
diff changeset
  1489
    ^ preferredExtentOfWindow.
782
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
  1490
! !
5b8c4cf62cb5 activeHelp changed as instClassVar + some other cleans
tz
parents: 779
diff changeset
  1491
1767
f94850ee9885 method category rename
Claus Gittinger <cg@exept.de>
parents: 1752
diff changeset
  1492
!ToolApplicationModel methodsFor:'startup & release'!
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1493
1107
f900f5d8993c more code cleanup
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1494
closeDownViews
907
f4087882555a method comments added
tz
parents: 893
diff changeset
  1495
    "uninitializes and closes this tool"
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1496
756
4dba5a8797ec *** empty log message ***
tz
parents: 753
diff changeset
  1497
    self uninitialize.
1107
f900f5d8993c more code cleanup
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1498
    super closeDownViews
1108
2d57365bc340 fixed a copy-paste bug
Claus Gittinger <cg@exept.de>
parents: 1107
diff changeset
  1499
!
936
d3d50ac7cdd0 code compression
Claus Gittinger <cg@exept.de>
parents: 927
diff changeset
  1500
2098
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
  1501
loadFromHistoryEntry:aHistoryEntry
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
  1502
    aHistoryEntry forceLoadIn:self
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
  1503
!
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
  1504
790
648fac120039 time clock runs now correctly
tz
parents: 784
diff changeset
  1505
postOpenWith:aBuilder
907
f4087882555a method comments added
tz
parents: 893
diff changeset
  1506
    "starts the active help for this tool (if turned on in the settings)
f4087882555a method comments added
tz
parents: 893
diff changeset
  1507
     and updates the info label and the fonts (from the settings)"
790
648fac120039 time clock runs now correctly
tz
parents: 784
diff changeset
  1508
648fac120039 time clock runs now correctly
tz
parents: 784
diff changeset
  1509
    super postOpenWith:aBuilder.
648fac120039 time clock runs now correctly
tz
parents: 784
diff changeset
  1510
822
374400d57e0b some useful aspects added
tz
parents: 821
diff changeset
  1511
    self updateInfoLabel.
1104
a2f59712ce7b removed the (stupid) fontSettings menu support.
Claus Gittinger <cg@exept.de>
parents: 1091
diff changeset
  1512
"/    self updateFonts.
2827
d36efbd422cf *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2771
diff changeset
  1513
    self showingHelp:true.
876
585929b1fec2 some cleans
tz
parents: 872
diff changeset
  1514
1018
7222534cb3dc part of the activeHelp framework moved to ApplicationModel.
Claus Gittinger <cg@exept.de>
parents: 1016
diff changeset
  1515
    "Modified: / 31.7.1998 / 18:17:34 / cg"
790
648fac120039 time clock runs now correctly
tz
parents: 784
diff changeset
  1516
!
648fac120039 time clock runs now correctly
tz
parents: 784
diff changeset
  1517
1323
045c3a6e4a88 after restart from image, restart also the timed block if defined
ca
parents: 1284
diff changeset
  1518
restarted
045c3a6e4a88 after restart from image, restart also the timed block if defined
ca
parents: 1284
diff changeset
  1519
    "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
  1520
     restart timed block if defined.
045c3a6e4a88 after restart from image, restart also the timed block if defined
ca
parents: 1284
diff changeset
  1521
    "
045c3a6e4a88 after restart from image, restart also the timed block if defined
ca
parents: 1284
diff changeset
  1522
    timeBlock notNil ifTrue:[
045c3a6e4a88 after restart from image, restart also the timed block if defined
ca
parents: 1284
diff changeset
  1523
        Processor removeTimedBlock:timeBlock.
045c3a6e4a88 after restart from image, restart also the timed block if defined
ca
parents: 1284
diff changeset
  1524
        self startClockOnTimedBlock:timeBlock.
045c3a6e4a88 after restart from image, restart also the timed block if defined
ca
parents: 1284
diff changeset
  1525
    ].
045c3a6e4a88 after restart from image, restart also the timed block if defined
ca
parents: 1284
diff changeset
  1526
    super restarted.
045c3a6e4a88 after restart from image, restart also the timed block if defined
ca
parents: 1284
diff changeset
  1527
!
045c3a6e4a88 after restart from image, restart also the timed block if defined
ca
parents: 1284
diff changeset
  1528
756
4dba5a8797ec *** empty log message ***
tz
parents: 753
diff changeset
  1529
uninitialize
1018
7222534cb3dc part of the activeHelp framework moved to ApplicationModel.
Claus Gittinger <cg@exept.de>
parents: 1016
diff changeset
  1530
    "stops active help for this tool and (if defined) removes the time block"
756
4dba5a8797ec *** empty log message ***
tz
parents: 753
diff changeset
  1531
1018
7222534cb3dc part of the activeHelp framework moved to ApplicationModel.
Claus Gittinger <cg@exept.de>
parents: 1016
diff changeset
  1532
    self showingHelp ifTrue: [ActiveHelp stopFor: self].
876
585929b1fec2 some cleans
tz
parents: 872
diff changeset
  1533
    timeBlock notNil ifTrue: [Processor removeTimedBlock:timeBlock. timeBlock := nil].
585929b1fec2 some cleans
tz
parents: 872
diff changeset
  1534
1018
7222534cb3dc part of the activeHelp framework moved to ApplicationModel.
Claus Gittinger <cg@exept.de>
parents: 1016
diff changeset
  1535
    "Modified: / 31.7.1998 / 18:46:21 / cg"
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1536
! !
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1537
2098
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
  1538
!ToolApplicationModel::HistoryEntry methodsFor:'comparing'!
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
  1539
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
  1540
sameAsHistoryEntryForFile:aHistoryEntryForFile
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
  1541
    ^ false
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
  1542
!
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
  1543
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
  1544
sameAsHistoryEntryForMethod:aHistoryEntryForMethod
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
  1545
    ^ false
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
  1546
! !
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
  1547
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
  1548
!ToolApplicationModel::HistoryEntryForFile class methodsFor:'instance creation'!
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
  1549
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
  1550
filename:arg
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
  1551
    ^ self new filename:arg
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
  1552
! !
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
  1553
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
  1554
!ToolApplicationModel::HistoryEntryForFile methodsFor:'accessing'!
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
  1555
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
  1556
filename
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
  1557
    ^ filename
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
  1558
!
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
  1559
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
  1560
filename:something
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
  1561
    filename := something.
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
  1562
! !
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
  1563
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
  1564
!ToolApplicationModel::HistoryEntryForFile methodsFor:'comparing'!
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
  1565
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
  1566
= aHistoryEntry
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
  1567
    ^ aHistoryEntry sameAsHistoryEntryForFile:self
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
  1568
!
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
  1569
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
  1570
sameAsHistoryEntryForFile:aHistoryEntryForFile
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
  1571
    ^ aHistoryEntryForFile filename = filename
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
  1572
! !
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
  1573
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
  1574
!ToolApplicationModel::HistoryEntryForFile methodsFor:'loading'!
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
  1575
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
  1576
forceLoadIn:anEditor
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
  1577
    anEditor loadFromFile:filename
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
  1578
! !
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
  1579
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
  1580
!ToolApplicationModel::HistoryEntryForFile methodsFor:'printing'!
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
  1581
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
  1582
printStringInMenu
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
  1583
    ^ filename
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
  1584
! !
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
  1585
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
  1586
!ToolApplicationModel::HistoryEntryForMethod class methodsFor:'instance creation'!
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
  1587
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
  1588
class:classToAdd selector:selectorToAdd
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
  1589
    ^ self new class:classToAdd selector:selectorToAdd
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
  1590
! !
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
  1591
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
  1592
!ToolApplicationModel::HistoryEntryForMethod methodsFor:'accessing'!
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
  1593
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
  1594
class:aClass selector:aSelector
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
  1595
    methodClass := aClass.
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
  1596
    methodSelector := aSelector
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
  1597
!
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
  1598
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
  1599
methodClass
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
  1600
    ^ methodClass
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
  1601
!
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
  1602
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
  1603
methodSelector
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
  1604
    ^ methodSelector
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
  1605
! !
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
  1606
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
  1607
!ToolApplicationModel::HistoryEntryForMethod methodsFor:'comparing'!
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
  1608
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
  1609
= aHistoryEntry
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
  1610
    ^ aHistoryEntry sameAsHistoryEntryForMethod:self
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
  1611
!
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
  1612
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
  1613
sameAsHistoryEntryForMethod:aHistoryEntryForMethod
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
  1614
    ^ aHistoryEntryForMethod methodClass = methodClass
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
  1615
    and:[ aHistoryEntryForMethod methodSelector = methodSelector ]
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
  1616
! !
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
  1617
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
  1618
!ToolApplicationModel::HistoryEntryForMethod methodsFor:'loading'!
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
  1619
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
  1620
forceLoadIn:anEditor
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
  1621
    anEditor loadFromClass:methodClass andSelector:methodSelector
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
  1622
! !
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
  1623
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
  1624
!ToolApplicationModel::HistoryEntryForMethod methodsFor:'printing'!
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
  1625
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
  1626
printStringInMenu
2140
f6da72fe0e4b *** empty log message ***
fm
parents: 2121
diff changeset
  1627
    ^ methodClass name , ' >> ' , (methodSelector?'?')
f6da72fe0e4b *** empty log message ***
fm
parents: 2121
diff changeset
  1628
f6da72fe0e4b *** empty log message ***
fm
parents: 2121
diff changeset
  1629
    "Modified: / 11-07-2006 / 13:53:40 / fm"
2098
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
  1630
! !
37ea7570cd6b code cleanup & refactoring
Claus Gittinger <cg@exept.de>
parents: 2084
diff changeset
  1631
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1632
!ToolApplicationModel class methodsFor:'documentation'!
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1633
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1634
version
2907
d5ebe876eeaa comment/format in: #fileHistoryEntries
Stefan Vogel <sv@exept.de>
parents: 2880
diff changeset
  1635
    ^ '$Header: /cvs/stx/stx/libview2/ToolApplicationModel.st,v 1.139 2011-04-16 20:32:59 stefan Exp $'
2771
9c8ce6487992 changed: #aboutImage
Claus Gittinger <cg@exept.de>
parents: 2587
diff changeset
  1636
!
9c8ce6487992 changed: #aboutImage
Claus Gittinger <cg@exept.de>
parents: 2587
diff changeset
  1637
9c8ce6487992 changed: #aboutImage
Claus Gittinger <cg@exept.de>
parents: 2587
diff changeset
  1638
version_CVS
2907
d5ebe876eeaa comment/format in: #fileHistoryEntries
Stefan Vogel <sv@exept.de>
parents: 2880
diff changeset
  1639
    ^ '$Header: /cvs/stx/stx/libview2/ToolApplicationModel.st,v 1.139 2011-04-16 20:32:59 stefan Exp $'
753
9c837d99f109 intitial checkin
tz
parents:
diff changeset
  1640
! !