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