author | Claus Gittinger <cg@exept.de> |
Fri, 09 Jul 1999 21:26:59 +0200 | |
changeset 1184 | c67bdfe67afd |
parent 963 | 62cdb7923a3b |
child 1198 | 6b7cfe55105b |
permissions | -rw-r--r-- |
156 | 1 |
" |
2 |
COPYRIGHT (c) 1995 by eXept Software AG |
|
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 |
" |
|
12 |
||
13 |
||
14 |
||
750 | 15 |
ToolApplicationModel subclass:#UIHelpTool |
16 |
instanceVariableNames:'specClass specSelector dictionary dictionaries listSelection |
|
779 | 17 |
maxCharsPerLine modifiedHolder modified' |
148 | 18 |
classVariableNames:'' |
19 |
poolDictionaries:'' |
|
20 |
category:'Interface-UIPainter' |
|
21 |
! |
|
22 |
||
23 |
!UIHelpTool class methodsFor:'documentation'! |
|
24 |
||
156 | 25 |
copyright |
26 |
" |
|
27 |
COPYRIGHT (c) 1995 by eXept Software AG |
|
28 |
All Rights Reserved |
|
29 |
||
30 |
This software is furnished under a license and may be used |
|
31 |
only in accordance with the terms of that license and with the |
|
32 |
inclusion of the above copyright notice. This software may not |
|
33 |
be provided or otherwise made available to, or used by, any |
|
34 |
other person. No title to or ownership of the software is |
|
35 |
hereby transferred. |
|
36 |
" |
|
37 |
||
38 |
||
39 |
! |
|
40 |
||
148 | 41 |
documentation |
42 |
" |
|
779 | 43 |
The Help Tool allows you to define help dictionaries for the widgets in |
761
91e524583390
do not save, if help texts have not changed (unformatting)
tz
parents:
750
diff
changeset
|
44 |
window applications. The tool are able to run stand alone or in other master |
740 | 45 |
applications like the GUI Painter and the Menu Editor. |
46 |
If the application responds to the selector #showHelp:aHelpText for:aView, |
|
47 |
this selector is called by the widget's view when the mouse cursor moves over. |
|
48 |
If the application does not responds to that selector, and the activeHelp mode |
|
49 |
is enabled, an active help bubble is shown at the widget's view. |
|
156 | 50 |
|
779 | 51 |
[instance variables:] |
52 |
specClass <Symbol> class implementing the help spec |
|
53 |
specSelector <Symbol> selector returning the help spec |
|
54 |
dictionary <Dictionary> dictionary containing pairs of help keys/texts |
|
55 |
dictionaries <Dictionary> dictionary containing pairs of help spec classes/help dictionaries |
|
56 |
listSelection <String> current selected help key |
|
57 |
maxCharsPerLine <Integer> maximum number of allowed characters per text line |
|
58 |
modifiedHolder <ValueHolder> value holder for setting as modified |
|
59 |
modified <Boolean> flag whether the help spec was modified |
|
60 |
||
156 | 61 |
[author:] |
750 | 62 |
Claus Atzkern, eXept Software AG |
63 |
Thomas Zwick, eXept Software AG |
|
148 | 64 |
" |
65 |
! ! |
|
66 |
||
286 | 67 |
!UIHelpTool class methodsFor:'instance creation'! |
68 |
||
832
2c5b61b168e8
allow #open (its in the docu !)
Claus Gittinger <cg@exept.de>
parents:
779
diff
changeset
|
69 |
open |
833 | 70 |
^ self openOnClass:nil. |
832
2c5b61b168e8
allow #open (its in the docu !)
Claus Gittinger <cg@exept.de>
parents:
779
diff
changeset
|
71 |
|
833 | 72 |
"/ |className cls| |
73 |
"/ |
|
74 |
"/ className := Dialog request:(ClassResources string:'Open on which class ?'). |
|
75 |
"/ className size > 0 ifTrue:[ |
|
76 |
"/ cls := Smalltalk at:className asSymbol. |
|
77 |
"/ cls notNil ifTrue:[ |
|
78 |
"/ ^ self openOnClass:cls. |
|
79 |
"/ ]. |
|
80 |
"/ self warn:(ClassResources string:'No such class'). |
|
81 |
"/ ]. |
|
82 |
"/ |
|
83 |
"/ "Created: / 20.5.1998 / 00:55:05 / cg" |
|
84 |
"/ |
|
832
2c5b61b168e8
allow #open (its in the docu !)
Claus Gittinger <cg@exept.de>
parents:
779
diff
changeset
|
85 |
|
833 | 86 |
"Modified: / 20.5.1998 / 01:06:07 / cg" |
832
2c5b61b168e8
allow #open (its in the docu !)
Claus Gittinger <cg@exept.de>
parents:
779
diff
changeset
|
87 |
! |
2c5b61b168e8
allow #open (its in the docu !)
Claus Gittinger <cg@exept.de>
parents:
779
diff
changeset
|
88 |
|
286 | 89 |
openOnClass:aClass |
779 | 90 |
"opens a Help Tool on aClass" |
91 |
||
833 | 92 |
self new openOnClass:aClass |
93 |
||
286 | 94 |
" |
750 | 95 |
UIHelpTool openOnClass:self |
286 | 96 |
" |
97 |
||
833 | 98 |
"Modified: / 20.5.1998 / 01:06:14 / cg" |
940 | 99 |
! |
100 |
||
101 |
openOnClass:aClass andSelector: aSelector |
|
102 |
"opens a Help Tool on aClass and aSelector" |
|
103 |
||
946 | 104 |
^self new openOnClass:aClass andSelector: aSelector |
940 | 105 |
|
750 | 106 |
! ! |
107 |
||
286 | 108 |
!UIHelpTool class methodsFor:'constants'! |
109 |
||
110 |
label |
|
779 | 111 |
"returns the label; used if embedded as sub canvas in the GUI Painter or Menu Editor" |
696
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
112 |
|
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
113 |
^'Help' |
286 | 114 |
! ! |
115 |
||
151 | 116 |
!UIHelpTool class methodsFor:'help specs'! |
117 |
||
118 |
helpSpec |
|
740 | 119 |
"This resource specification was automatically generated |
120 |
by the UIHelpTool of ST/X." |
|
121 |
||
122 |
"Do not manually edit this!! If it is corrupted, |
|
123 |
the UIHelpTool may not be able to read the specification." |
|
292 | 124 |
|
172 | 125 |
" |
740 | 126 |
UIHelpTool openOnClass:UIHelpTool |
292 | 127 |
" |
128 |
||
740 | 129 |
<resource: #help> |
130 |
||
131 |
^super helpSpec addPairsFrom:#( |
|
151 | 132 |
|
696
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
133 |
#addHelpTextKey |
750 | 134 |
'Adds the help text key to the help spec.' |
696
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
135 |
|
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
136 |
#currentHelpTexts |
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
137 |
'Selected help text key.' |
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
138 |
|
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
139 |
#deleteHelpTextKey |
750 | 140 |
'Deletes the help text key from the help spec.' |
141 |
||
142 |
#fileLoad |
|
143 |
'Opens a dialog for selecting and loading a help spec from a class.' |
|
144 |
||
145 |
#fileSave |
|
146 |
'Saves current help spec.' |
|
696
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
147 |
|
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
148 |
#helpTextView |
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
149 |
'Shows the help text.' |
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
150 |
|
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
151 |
#listOfHelpSpecClasses |
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
152 |
'List of the classes where help specs can be/are implemented.' |
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
153 |
|
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
154 |
#listOfHelpTexts |
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
155 |
'List of the help text keys.' |
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
156 |
|
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
157 |
#removeHelpTextKey |
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
158 |
'Removes the help text key from the widget.' |
172 | 159 |
|
160 |
) |
|
151 | 161 |
! ! |
162 |
||
148 | 163 |
!UIHelpTool class methodsFor:'interface specs'! |
164 |
||
165 |
windowSpec |
|
740 | 166 |
"This resource specification was automatically generated |
167 |
by the UIPainter of ST/X." |
|
148 | 168 |
|
740 | 169 |
"Do not manually edit this!! If it is corrupted, |
170 |
the UIPainter may not be able to read the specification." |
|
148 | 171 |
|
172 |
" |
|
151 | 173 |
UIPainter new openOnClass:UIHelpTool andSelector:#windowSpec |
174 |
UIHelpTool new openInterface:#windowSpec |
|
740 | 175 |
UIHelpTool open |
148 | 176 |
" |
177 |
||
178 |
<resource: #canvas> |
|
179 |
||
180 |
^ |
|
181 |
||
182 |
#(#FullSpec |
|
696
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
183 |
#window: |
148 | 184 |
#(#WindowSpec |
740 | 185 |
#name: 'Help Tool' |
835 | 186 |
#layout: #(#LayoutFrame 29 0 447 0 314 0 717 0) |
740 | 187 |
#label: 'Help Tool' |
696
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
188 |
#min: #(#Point 10 10) |
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
189 |
#max: #(#Point 1160 870) |
835 | 190 |
#bounds: #(#Rectangle 29 447 315 718) |
696
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
191 |
#usePreferredExtent: false |
148 | 192 |
) |
696
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
193 |
#component: |
148 | 194 |
#(#SpecCollection |
696
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
195 |
#collection: |
148 | 196 |
#( |
750 | 197 |
#(#VariableVerticalPanelSpec |
198 |
#name: 'VariableVerticalPanel' |
|
199 |
#layout: #(#LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0) |
|
200 |
#component: |
|
201 |
#(#SpecCollection |
|
202 |
#collection: |
|
203 |
#( |
|
204 |
#(#VariableHorizontalPanelSpec |
|
205 |
#name: 'VariableHorizontalPanel' |
|
206 |
#component: |
|
207 |
#(#SpecCollection |
|
208 |
#collection: |
|
209 |
#( |
|
210 |
#(#SequenceViewSpec |
|
211 |
#name: 'listOfHelpKeysView' |
|
212 |
#activeHelpKey: #listOfHelpTexts |
|
213 |
#tabable: true |
|
214 |
#model: #listModel |
|
215 |
#hasHorizontalScrollBar: true |
|
216 |
#hasVerticalScrollBar: true |
|
217 |
#miniScrollerHorizontal: true |
|
218 |
#useIndex: false |
|
219 |
#sequenceList: #listChannel |
|
220 |
) |
|
221 |
#(#ViewSpec |
|
222 |
#name: 'Box' |
|
223 |
#component: |
|
224 |
#(#SpecCollection |
|
225 |
#collection: |
|
226 |
#( |
|
227 |
#(#InputFieldSpec |
|
228 |
#name: 'helpKeyInputField' |
|
229 |
#layout: #(#LayoutFrame 0 0.0 29 0 0 1.0 51 0) |
|
230 |
#activeHelpKey: #currentHelpTexts |
|
231 |
#tabable: true |
|
232 |
#model: #listModel |
|
233 |
#immediateAccept: false |
|
234 |
) |
|
235 |
#(#SequenceViewSpec |
|
236 |
#name: 'listOfHelpSpecClassesView' |
|
237 |
#layout: #(#LayoutFrame 0 0.0 54 0 0 1.0 0 1.0) |
|
238 |
#activeHelpKey: #listOfHelpSpecClasses |
|
239 |
#tabable: true |
|
240 |
#model: #selectionOfHelpSpecClass |
|
241 |
#hasHorizontalScrollBar: true |
|
242 |
#hasVerticalScrollBar: true |
|
243 |
#miniScrollerHorizontal: true |
|
244 |
#miniScrollerVertical: true |
|
245 |
#valueChangeSelector: #helpSpecClassSelected |
|
246 |
#useIndex: false |
|
247 |
#sequenceList: #listOfHelpSpecClasses |
|
248 |
) |
|
249 |
#(#HorizontalPanelViewSpec |
|
250 |
#name: 'HorizontalPanel1' |
|
251 |
#layout: #(#LayoutFrame 0 0.0 2 0 0 1.0 26 0) |
|
252 |
#component: |
|
253 |
#(#SpecCollection |
|
254 |
#collection: |
|
255 |
#( |
|
256 |
#(#ActionButtonSpec |
|
257 |
#name: 'AddButton' |
|
258 |
#activeHelpKey: #addHelpTextKey |
|
259 |
#label: 'Add' |
|
835 | 260 |
#translateLabel: true |
750 | 261 |
#tabable: true |
262 |
#model: #doAdd |
|
263 |
#extent: #(#Point 44 24) |
|
264 |
) |
|
265 |
#(#ActionButtonSpec |
|
266 |
#name: 'RemoveButton' |
|
267 |
#activeHelpKey: #removeHelpTextKey |
|
268 |
#label: 'Remove' |
|
835 | 269 |
#translateLabel: true |
750 | 270 |
#tabable: true |
271 |
#model: #doRemove |
|
835 | 272 |
#extent: #(#Point 44 24) |
750 | 273 |
) |
274 |
#(#ActionButtonSpec |
|
275 |
#name: 'DeleteButton' |
|
276 |
#activeHelpKey: #deleteHelpTextKey |
|
277 |
#label: 'Delete' |
|
835 | 278 |
#translateLabel: true |
750 | 279 |
#tabable: true |
280 |
#model: #doDelete |
|
281 |
#extent: #(#Point 45 24) |
|
282 |
) |
|
283 |
) |
|
284 |
) |
|
285 |
#horizontalLayout: #fit |
|
286 |
#verticalLayout: #fit |
|
287 |
#horizontalSpace: 3 |
|
288 |
#verticalSpace: 3 |
|
289 |
) |
|
290 |
) |
|
291 |
) |
|
292 |
) |
|
293 |
) |
|
294 |
) |
|
295 |
#handles: #(#Any 0.5 1.0) |
|
296 |
) |
|
297 |
#(#TextEditorSpec |
|
298 |
#name: 'helpTextView' |
|
299 |
#activeHelpKey: #helpTextView |
|
300 |
#tabable: true |
|
301 |
#hasHorizontalScrollBar: true |
|
302 |
#hasVerticalScrollBar: true |
|
303 |
#miniScrollerHorizontal: true |
|
304 |
#miniScrollerVertical: true |
|
305 |
) |
|
306 |
) |
|
307 |
) |
|
308 |
#handles: #(#Any 0.5 1.0) |
|
148 | 309 |
) |
310 |
) |
|
311 |
) |
|
312 |
) |
|
835 | 313 |
|
314 |
"Modified: / 20.5.1998 / 01:08:59 / cg" |
|
696
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
315 |
! |
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
316 |
|
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
317 |
windowSpecForStandAlone |
740 | 318 |
"This resource specification was automatically generated |
319 |
by the UIPainter of ST/X." |
|
696
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
320 |
|
740 | 321 |
"Do not manually edit this!! If it is corrupted, |
322 |
the UIPainter may not be able to read the specification." |
|
696
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
323 |
|
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
324 |
" |
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
325 |
UIPainter new openOnClass:UIHelpTool andSelector:#windowSpecForStandAlone |
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
326 |
UIHelpTool new openInterface:#windowSpecForStandAlone |
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
327 |
" |
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
328 |
|
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
329 |
<resource: #canvas> |
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
330 |
|
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
331 |
^ |
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
332 |
|
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
333 |
#(#FullSpec |
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
334 |
#window: |
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
335 |
#(#WindowSpec |
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
336 |
#name: 'Help Tool' |
750 | 337 |
#layout: #(#LayoutFrame 191 0 334 0 660 0 663 0) |
696
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
338 |
#label: 'Help Tool' |
750 | 339 |
#min: #(#Point 300 300) |
340 |
#max: #(#Point 1152 900) |
|
341 |
#bounds: #(#Rectangle 191 334 661 664) |
|
696
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
342 |
#menu: #menu |
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
343 |
#usePreferredExtent: false |
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
344 |
) |
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
345 |
#component: |
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
346 |
#(#SpecCollection |
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
347 |
#collection: |
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
348 |
#( |
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
349 |
#(#UISubSpecification |
750 | 350 |
#name: 'windowSpec' |
351 |
#layout: #(#LayoutFrame 0 0.0 0 0.0 0 1.0 -26 1.0) |
|
696
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
352 |
#minorKey: #windowSpec |
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
353 |
) |
750 | 354 |
#(#UISubSpecification |
355 |
#name: 'windowSpecForInfoBar' |
|
356 |
#layout: #(#LayoutFrame 0 0 -24 1 0 1 0 1) |
|
357 |
#majorKey: #ToolApplicationModel |
|
358 |
#minorKey: #windowSpecForInfoBar |
|
359 |
) |
|
696
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
360 |
) |
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
361 |
) |
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
362 |
) |
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
363 |
! ! |
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
364 |
|
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
365 |
!UIHelpTool class methodsFor:'menu specs'! |
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
366 |
|
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
367 |
menu |
740 | 368 |
"This resource specification was automatically generated |
369 |
by the MenuEditor of ST/X." |
|
696
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
370 |
|
740 | 371 |
"Do not manually edit this!! If it is corrupted, |
372 |
the MenuEditor may not be able to read the specification." |
|
696
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
373 |
|
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
374 |
" |
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
375 |
MenuEditor new openOnClass:UIHelpTool andSelector:#menu |
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
376 |
(Menu new fromLiteralArrayEncoding:(UIHelpTool menu)) startUp |
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
377 |
" |
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
378 |
|
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
379 |
<resource: #menu> |
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
380 |
|
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
381 |
^ |
904 | 382 |
|
696
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
383 |
#(#Menu |
904 | 384 |
|
696
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
385 |
#( |
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
386 |
#(#MenuItem |
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
387 |
#label: 'File' |
835 | 388 |
#translateLabel: true |
696
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
389 |
#submenu: |
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
390 |
#(#Menu |
904 | 391 |
|
696
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
392 |
#( |
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
393 |
#(#MenuItem |
835 | 394 |
#label: 'Load...' |
395 |
#translateLabel: true |
|
750 | 396 |
#value: #doLoad |
397 |
#activeHelpKey: #fileLoad |
|
696
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
398 |
) |
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
399 |
#(#MenuItem |
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
400 |
#label: '-' |
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
401 |
) |
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
402 |
#(#MenuItem |
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
403 |
#label: 'Save' |
835 | 404 |
#translateLabel: true |
722 | 405 |
#value: #doSave |
750 | 406 |
#activeHelpKey: #fileSave |
696
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
407 |
) |
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
408 |
#(#MenuItem |
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
409 |
#label: '-' |
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
410 |
) |
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
411 |
#(#MenuItem |
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
412 |
#label: 'Exit' |
835 | 413 |
#translateLabel: true |
696
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
414 |
#value: #closeRequest |
750 | 415 |
#activeHelpKey: #fileExit |
416 |
) |
|
417 |
) nil |
|
418 |
nil |
|
419 |
) |
|
420 |
) |
|
421 |
#(#MenuItem |
|
422 |
#label: 'Edit' |
|
835 | 423 |
#translateLabel: true |
750 | 424 |
#submenu: |
425 |
#(#Menu |
|
904 | 426 |
|
750 | 427 |
#( |
428 |
#(#MenuItem |
|
429 |
#label: 'Add' |
|
835 | 430 |
#translateLabel: true |
750 | 431 |
#value: #doAdd |
432 |
#activeHelpKey: #addHelpTextKey |
|
433 |
) |
|
434 |
#(#MenuItem |
|
435 |
#label: '-' |
|
436 |
) |
|
437 |
#(#MenuItem |
|
438 |
#label: 'Delete' |
|
835 | 439 |
#translateLabel: true |
750 | 440 |
#value: #doDelete |
441 |
#activeHelpKey: #deleteHelpTextKey |
|
442 |
) |
|
443 |
) nil |
|
444 |
nil |
|
445 |
) |
|
446 |
) |
|
447 |
#(#MenuItem |
|
448 |
#label: 'Help' |
|
904 | 449 |
#translateLabel: true |
750 | 450 |
#startGroup: #right |
904 | 451 |
#activeHelpKey: #help |
452 |
#submenuChannel: #menuHelp |
|
696
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
453 |
) |
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
454 |
) nil |
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
455 |
nil |
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
456 |
) |
835 | 457 |
|
148 | 458 |
! ! |
459 |
||
460 |
!UIHelpTool methodsFor:'accessing'! |
|
461 |
||
710 | 462 |
dictionaries |
779 | 463 |
"returns the dictionary of the help dictionaries of the classes having help specs" |
464 |
||
710 | 465 |
^dictionaries |
466 |
! |
|
467 |
||
468 |
dictionaries:aDictionaryOfDictionaries |
|
779 | 469 |
"sets a dictionary of the help dictionaries of the classes having help specs" |
470 |
||
710 | 471 |
(dictionaries := aDictionaryOfDictionaries) isNil ifTrue:[ |
472 |
dictionaries := Dictionary new. |
|
473 |
]. |
|
715 | 474 |
self updateList. |
710 | 475 |
! |
476 |
||
151 | 477 |
dictionary |
779 | 478 |
"returns the dictionary of the selected class" |
479 |
||
722 | 480 |
^dictionary |
710 | 481 |
! |
151 | 482 |
|
483 |
dictionary:aDictionary |
|
779 | 484 |
"sets dictionary of the selected class" |
485 |
||
286 | 486 |
(dictionary := aDictionary) isNil ifTrue:[ |
700 | 487 |
dictionary := Dictionary new. |
286 | 488 |
]. |
489 |
self updateList |
|
490 |
! |
|
491 |
||
492 |
helpKey |
|
779 | 493 |
"returns the help key of selected help text" |
494 |
||
286 | 495 |
listSelection size ~~ 0 ifTrue:[ |
496 |
^ listSelection asSymbol |
|
151 | 497 |
]. |
286 | 498 |
^ nil |
499 |
! |
|
500 |
||
501 |
helpKey:aKey |
|
779 | 502 |
"sets the help key into the selection channel in order to show the help text" |
503 |
||
286 | 504 |
|key| |
505 |
aKey size ~~ 0 ifTrue:[ |
|
506 |
key := aKey asString |
|
507 |
]. |
|
508 |
self listModel value:key |
|
459 | 509 |
|
151 | 510 |
! |
511 |
||
740 | 512 |
modified |
779 | 513 |
"returns whether the help tool was modified" |
514 |
||
740 | 515 |
^modified |
700 | 516 |
! |
517 |
||
740 | 518 |
modified: aBoolean |
779 | 519 |
"sets the help tool as modified" |
520 |
||
740 | 521 |
modified := aBoolean |
700 | 522 |
! |
523 |
||
286 | 524 |
modifiedHolder:aValueHolder |
779 | 525 |
"sets the value holder to true in case of modifying attributes" |
526 |
||
891
bafed0c2436d
avoid repeated send-sequences
Claus Gittinger <cg@exept.de>
parents:
876
diff
changeset
|
527 |
|eTxtView modChannel| |
bafed0c2436d
avoid repeated send-sequences
Claus Gittinger <cg@exept.de>
parents:
876
diff
changeset
|
528 |
|
286 | 529 |
modifiedHolder notNil ifTrue:[ |
530 |
modifiedHolder removeDependent:self. |
|
531 |
]. |
|
148 | 532 |
|
286 | 533 |
(modifiedHolder := aValueHolder) notNil ifTrue:[ |
534 |
modifiedHolder addDependent:self. |
|
459 | 535 |
|
891
bafed0c2436d
avoid repeated send-sequences
Claus Gittinger <cg@exept.de>
parents:
876
diff
changeset
|
536 |
(eTxtView := self editTextView) notNil ifTrue: [ |
bafed0c2436d
avoid repeated send-sequences
Claus Gittinger <cg@exept.de>
parents:
876
diff
changeset
|
537 |
modChannel := eTxtView modifiedChannel. |
bafed0c2436d
avoid repeated send-sequences
Claus Gittinger <cg@exept.de>
parents:
876
diff
changeset
|
538 |
modChannel onChangeSend:#value to:[ |
459 | 539 |
modifiedHolder notNil ifTrue:[ |
891
bafed0c2436d
avoid repeated send-sequences
Claus Gittinger <cg@exept.de>
parents:
876
diff
changeset
|
540 |
modChannel value ifTrue:[ |
459 | 541 |
modifiedHolder value:true |
542 |
] |
|
543 |
] |
|
544 |
] |
|
545 |
] |
|
546 |
] |
|
286 | 547 |
|
891
bafed0c2436d
avoid repeated send-sequences
Claus Gittinger <cg@exept.de>
parents:
876
diff
changeset
|
548 |
"Modified: / 16.7.1998 / 18:12:09 / cg" |
715 | 549 |
! |
550 |
||
551 |
specClass |
|
779 | 552 |
"returns the class on which the help tool works" |
553 |
||
715 | 554 |
^specClass |
354 | 555 |
! ! |
556 |
||
148 | 557 |
!UIHelpTool methodsFor:'aspects'! |
558 |
||
559 |
listChannel |
|
779 | 560 |
"returns the value holder of the help texts" |
561 |
||
148 | 562 |
|holder| |
563 |
(holder := builder bindingAt:#listChannel) isNil ifTrue:[ |
|
354 | 564 |
builder aspectAt:#listChannel put:(holder := OrderedCollection new asValue). |
148 | 565 |
]. |
566 |
^ holder |
|
567 |
! |
|
568 |
||
286 | 569 |
listModel |
779 | 570 |
"returns the value holder of the help key" |
571 |
||
148 | 572 |
|holder| |
286 | 573 |
(holder := builder bindingAt:#listModel) isNil ifTrue:[ |
574 |
holder := AspectAdaptor new subject:self; forAspect:#listSelection. |
|
575 |
builder aspectAt:#listModel put:holder. |
|
148 | 576 |
]. |
577 |
^ holder |
|
696
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
578 |
! |
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
579 |
|
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
580 |
listOfHelpSpecClasses |
779 | 581 |
"returns the value holder of the specClass and its superclasses |
582 |
which are subclasses of ApplicationModel" |
|
583 |
||
1184 | 584 |
^ builder listAspectFor:#listOfHelpSpecClasses |
696
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
585 |
|
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
586 |
! |
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
587 |
|
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
588 |
selectionOfHelpSpecClass |
779 | 589 |
"returns the value holder of the selected help spec class" |
590 |
||
696
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
591 |
|holder| |
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
592 |
(holder := builder bindingAt:#selectionOfHelpSpecClass) isNil ifTrue:[ |
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
593 |
builder aspectAt:#selectionOfHelpSpecClass put: (holder := ValueHolder new) |
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
594 |
]. |
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
595 |
^ holder |
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
596 |
|
148 | 597 |
! ! |
598 |
||
750 | 599 |
!UIHelpTool methodsFor:'building'! |
600 |
||
601 |
buildFromClass:aClass |
|
779 | 602 |
"reads the help dictionary from aClass and find remaining classes |
603 |
'between' aClass and ApplicationModel" |
|
604 |
||
963
62cdb7923a3b
care for setup, before view components are built
Claus Gittinger <cg@exept.de>
parents:
946
diff
changeset
|
605 |
|list listOfHelpSpecClassesView| |
62cdb7923a3b
care for setup, before view components are built
Claus Gittinger <cg@exept.de>
parents:
946
diff
changeset
|
606 |
|
750 | 607 |
modified := false. |
608 |
specClass notNil |
|
609 |
ifTrue: |
|
610 |
[ |
|
611 |
dictionary := Dictionary new. |
|
612 |
dictionaries := Dictionary new. |
|
613 |
]. |
|
614 |
specClass := self getHelpSpecClassFromClass:aClass. |
|
615 |
(specClass isClass and: [specClass isLoaded]) |
|
616 |
ifTrue: |
|
617 |
[ |
|
618 |
(specClass class implements:specSelector) ifFalse:[ |
|
619 |
dictionaries at: specClass name put: dictionary |
|
620 |
]. |
|
963
62cdb7923a3b
care for setup, before view components are built
Claus Gittinger <cg@exept.de>
parents:
946
diff
changeset
|
621 |
list := self listOfHelpSpecClasses. |
62cdb7923a3b
care for setup, before view components are built
Claus Gittinger <cg@exept.de>
parents:
946
diff
changeset
|
622 |
|
62cdb7923a3b
care for setup, before view components are built
Claus Gittinger <cg@exept.de>
parents:
946
diff
changeset
|
623 |
list contents: (specClass withAllSuperclasses reverse collect: [:cls| cls name]). |
62cdb7923a3b
care for setup, before view components are built
Claus Gittinger <cg@exept.de>
parents:
946
diff
changeset
|
624 |
(list includes: #ApplicationModel) |
62cdb7923a3b
care for setup, before view components are built
Claus Gittinger <cg@exept.de>
parents:
946
diff
changeset
|
625 |
ifTrue: [list removeAll: (ApplicationModel withAllSuperclasses collect: [:cls| cls name])]. |
750 | 626 |
self selectionOfHelpSpecClass value: specClass name. |
963
62cdb7923a3b
care for setup, before view components are built
Claus Gittinger <cg@exept.de>
parents:
946
diff
changeset
|
627 |
|
62cdb7923a3b
care for setup, before view components are built
Claus Gittinger <cg@exept.de>
parents:
946
diff
changeset
|
628 |
listOfHelpSpecClassesView := builder componentAt: #listOfHelpSpecClassesView. |
62cdb7923a3b
care for setup, before view components are built
Claus Gittinger <cg@exept.de>
parents:
946
diff
changeset
|
629 |
listOfHelpSpecClassesView notNil ifTrue:[ |
62cdb7923a3b
care for setup, before view components are built
Claus Gittinger <cg@exept.de>
parents:
946
diff
changeset
|
630 |
listOfHelpSpecClassesView selection: |
62cdb7923a3b
care for setup, before view components are built
Claus Gittinger <cg@exept.de>
parents:
946
diff
changeset
|
631 |
(list value indexOf: specClass name). |
62cdb7923a3b
care for setup, before view components are built
Claus Gittinger <cg@exept.de>
parents:
946
diff
changeset
|
632 |
]. |
750 | 633 |
self helpSpecClassSelected. |
634 |
]. |
|
635 |
||
636 |
self updateList |
|
868
dfa9d6df10d8
need a builder to be present in #buildFromClass:
Claus Gittinger <cg@exept.de>
parents:
835
diff
changeset
|
637 |
|
963
62cdb7923a3b
care for setup, before view components are built
Claus Gittinger <cg@exept.de>
parents:
946
diff
changeset
|
638 |
"Modified: / 21.8.1998 / 15:48:00 / cg" |
750 | 639 |
! |
640 |
||
641 |
buildFromClass: aClass andSelector: aSelector |
|
779 | 642 |
"sets aSelector and reads the help dictionary from aClass" |
750 | 643 |
|
644 |
specSelector := aSelector. |
|
645 |
self buildFromClass:aClass |
|
646 |
||
647 |
! ! |
|
648 |
||
740 | 649 |
!UIHelpTool methodsFor:'callbacks'! |
148 | 650 |
|
740 | 651 |
helpSpecClassSelected |
779 | 652 |
"extracts the help dictionary from the selected class and make it current" |
653 |
||
740 | 654 |
|clsName| |
655 |
||
656 |
clsName := self selectionOfHelpSpecClass value. |
|
657 |
||
658 |
(dictionary := dictionaries at: clsName ifAbsent: nil) isNil |
|
659 |
ifTrue: |
|
660 |
[ |
|
661 |
dictionary := dictionaries at: clsName put: (self extractHelpSpecForClass: (Smalltalk at: clsName)) |
|
662 |
]. |
|
663 |
||
664 |
self updateList. |
|
722 | 665 |
|
740 | 666 |
listSelection notNil |
667 |
ifTrue: |
|
668 |
[ |
|
669 |
(dictionary keys includes: listSelection asSymbol) |
|
670 |
ifTrue: [(builder componentAt: #listOfHelpKeysView) selection: |
|
671 |
(self listChannel value indexOf: (builder componentAt: #helpKeyInputField) contents)] |
|
672 |
ifFalse: [(builder componentAt: #listOfHelpKeysView) selection: nil]. |
|
673 |
]. |
|
674 |
listSelection notNil |
|
675 |
ifTrue: |
|
676 |
[ |
|
677 |
self editTextView contents: (dictionary at: listSelection asSymbol ifAbsent: '') |
|
678 |
] |
|
679 |
||
369 | 680 |
|
286 | 681 |
! ! |
682 |
||
750 | 683 |
!UIHelpTool methodsFor:'help'! |
684 |
||
685 |
defaultInfoLabel |
|
779 | 686 |
"returns the default label for the info bar" |
750 | 687 |
|
688 |
specClass isClass |
|
689 |
ifTrue: |
|
690 |
[ |
|
691 |
(specClass class implements: specSelector) |
|
692 |
ifFalse: |
|
693 |
[ |
|
694 |
^specSelector isNil |
|
695 |
ifTrue: [specClass name, ' >> ? (no selector defined)'] |
|
696 |
ifFalse: [specClass name, ' >> ', specSelector, ' (not implemented)'] |
|
697 |
]. |
|
698 |
^specClass name, ' >> ', specSelector |
|
699 |
]. |
|
700 |
^'No class and selector defined.' |
|
701 |
||
702 |
||
703 |
||
904 | 704 |
! |
705 |
||
706 |
openDocumentation |
|
707 |
"opens the documentation file of the Help Tool" |
|
708 |
||
709 |
self openHTMLDocument: 'tools/uipainter/HelpTool.html' |
|
750 | 710 |
! ! |
711 |
||
286 | 712 |
!UIHelpTool methodsFor:'private'! |
713 |
||
750 | 714 |
askForModification |
779 | 715 |
"asks for modification" |
740 | 716 |
|
750 | 717 |
modified |
718 |
ifTrue: |
|
719 |
[ |
|
720 |
((YesNoBox title: 'List was modified!!') |
|
721 |
noText:'Cancel'; |
|
722 |
yesText:'Waste it and proceed'; |
|
723 |
showAtPointer; |
|
724 |
accepted) ifFalse: [^false]. |
|
725 |
modified := false |
|
740 | 726 |
]. |
750 | 727 |
^true |
728 |
||
740 | 729 |
|
730 |
||
731 |
! |
|
732 |
||
286 | 733 |
editTextView |
779 | 734 |
"returns the editTextView or nil" |
735 |
||
286 | 736 |
|view| |
737 |
||
696
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
738 |
(view := builder componentAt:#helpTextView) notNil ifTrue:[ |
286 | 739 |
view := view scrolledView. |
740 |
||
741 |
view acceptAction isNil ifTrue:[ |
|
742 |
view acceptAction:[:aList| self accept ]. |
|
743 |
]. |
|
744 |
||
745 |
view left ~~ 0 ifTrue:[ |
|
746 |
(maxCharsPerLine := view extent x // view font width) < 10 ifTrue:[ |
|
747 |
maxCharsPerLine := nil |
|
748 |
] |
|
749 |
]. |
|
454 | 750 |
]. |
286 | 751 |
^ view |
696
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
752 |
! |
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
753 |
|
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
754 |
extractHelpSpecForClass: aClass |
779 | 755 |
"extracts the help dictionary of aClass, it current and return it" |
756 |
||
696
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
757 |
|helpSpecSuperClass superHelpSpecKeys helpSpec| |
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
758 |
|
750 | 759 |
((aClass class implements: specSelector) |
760 |
and: [(helpSpecSuperClass := aClass allSuperclasses detect: [:cls| cls class implements: specSelector] ifNone: nil) notNil]) |
|
696
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
761 |
ifTrue: |
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
762 |
[ |
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
763 |
superHelpSpecKeys := helpSpecSuperClass helpSpec keys. |
700 | 764 |
helpSpec := Dictionary new. |
696
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
765 |
aClass helpSpec associationsDo: |
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
766 |
[:asso| |
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
767 |
(superHelpSpecKeys includes: asso key) ifFalse: [helpSpec at: asso key put: asso value] |
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
768 |
]. |
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
769 |
^dictionary := helpSpec |
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
770 |
]. |
700 | 771 |
^dictionary := Dictionary new |
696
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
772 |
! |
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
773 |
|
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
774 |
findHelpSpecForKey: aHelpKey |
779 | 775 |
"finds the help spec class including aHelpKey in its help dictionary and make it current" |
776 |
||
761
91e524583390
do not save, if help texts have not changed (unformatting)
tz
parents:
750
diff
changeset
|
777 |
|dictTemp| |
696
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
778 |
|
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
779 |
aHelpKey isNil ifTrue: [^nil]. |
700 | 780 |
dictTemp := dictionary. |
696
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
781 |
self listOfHelpSpecClasses value do: |
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
782 |
[:clsName| |
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
783 |
(dictionary := dictionaries at: clsName ifAbsent: nil) isNil |
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
784 |
ifTrue: |
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
785 |
[ |
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
786 |
dictionary := dictionaries at: clsName put: (self extractHelpSpecForClass: (Smalltalk at: clsName)) |
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
787 |
]. |
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
788 |
(dictionary includesKey: aHelpKey asSymbol) |
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
789 |
ifTrue: |
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
790 |
[ |
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
791 |
self updateList. |
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
792 |
^(builder componentAt: #listOfHelpSpecClassesView) selection: |
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
793 |
(self listOfHelpSpecClasses value indexOf: clsName). |
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
794 |
] |
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
795 |
]. |
700 | 796 |
dictionary := dictTemp |
696
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
797 |
|
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
798 |
|
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
799 |
! |
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
800 |
|
750 | 801 |
getHelpSpecClassFromClass:aClass |
779 | 802 |
"returns application class keeping the associated help text or nil" |
803 |
||
750 | 804 |
|cls| |
805 |
||
806 |
((cls := self resolveName:aClass) notNil and:[cls respondsTo: #helpSpecClass]) ifTrue:[ |
|
807 |
^cls helpSpecClass |
|
808 |
]. |
|
809 |
^cls |
|
810 |
||
811 |
||
812 |
! |
|
813 |
||
761
91e524583390
do not save, if help texts have not changed (unformatting)
tz
parents:
750
diff
changeset
|
814 |
getUnformattedHelpText: aHelpText |
91e524583390
do not save, if help texts have not changed (unformatting)
tz
parents:
750
diff
changeset
|
815 |
"unformats aHelpText and returns it" |
91e524583390
do not save, if help texts have not changed (unformatting)
tz
parents:
750
diff
changeset
|
816 |
|
91e524583390
do not save, if help texts have not changed (unformatting)
tz
parents:
750
diff
changeset
|
817 |
|helpText| |
896 | 818 |
|
819 |
helpText := aHelpText asString copyReplaceAll:(Character cr) with:(Character space). |
|
820 |
(helpText endsWith:(Character space)) ifTrue:[ |
|
761
91e524583390
do not save, if help texts have not changed (unformatting)
tz
parents:
750
diff
changeset
|
821 |
helpText := helpText copyWithoutLast:1 |
91e524583390
do not save, if help texts have not changed (unformatting)
tz
parents:
750
diff
changeset
|
822 |
]. |
896 | 823 |
^ helpText |
824 |
||
825 |
"Modified: / 20.7.1998 / 13:17:52 / cg" |
|
761
91e524583390
do not save, if help texts have not changed (unformatting)
tz
parents:
750
diff
changeset
|
826 |
! |
91e524583390
do not save, if help texts have not changed (unformatting)
tz
parents:
750
diff
changeset
|
827 |
|
740 | 828 |
installHelpSpecOnClass:aClass |
779 | 829 |
"saves the help dicts in aClass which is subclass of ApplicationModel" |
740 | 830 |
|
831 |
|cls src helpSpec| |
|
832 |
||
750 | 833 |
cls := self getHelpSpecClassFromClass: aClass. |
740 | 834 |
|
835 |
cls isNil ifTrue:[ |
|
836 |
self information:'No application class defined!!'. |
|
837 |
^nil |
|
838 |
]. |
|
839 |
||
840 |
(cls isSubclassOf: ApplicationModel) ifFalse:[ |
|
841 |
self information: 'Cannot save help spec into class ', cls name asBoldText, ',\because it is not a subclass of ApplicationModel!!' withCRs. |
|
842 |
^nil |
|
843 |
]. |
|
844 |
||
845 |
helpSpec := dictionaries |
|
846 |
at: cls name |
|
847 |
ifAbsent: [specClass notNil |
|
848 |
ifTrue: [dictionaries at: aClass put: (self extractHelpSpecForClass: (Smalltalk at: aClass))] |
|
849 |
ifFalse: [dictionary size > 0 ifTrue: [dictionary] ifFalse: [Dictionary new]]]. |
|
850 |
||
761
91e524583390
do not save, if help texts have not changed (unformatting)
tz
parents:
750
diff
changeset
|
851 |
helpSpec associationsDo: |
91e524583390
do not save, if help texts have not changed (unformatting)
tz
parents:
750
diff
changeset
|
852 |
[:h| |
91e524583390
do not save, if help texts have not changed (unformatting)
tz
parents:
750
diff
changeset
|
853 |
helpSpec at: h key put: (self getUnformattedHelpText: h value) |
91e524583390
do not save, if help texts have not changed (unformatting)
tz
parents:
750
diff
changeset
|
854 |
]. |
91e524583390
do not save, if help texts have not changed (unformatting)
tz
parents:
750
diff
changeset
|
855 |
|
750 | 856 |
(cls class implements: specSelector) |
740 | 857 |
ifTrue: |
858 |
[ |
|
859 |
|superclassHelpKeys implementedHelpSpec hasChanged| |
|
860 |
implementedHelpSpec := Dictionary new. |
|
750 | 861 |
superclassHelpKeys := (cls superclass respondsTo: specSelector) |
740 | 862 |
ifTrue: [cls superclass helpSpec keys] |
863 |
ifFalse: [Array new]. |
|
864 |
||
865 |
cls helpSpec associationsDo: [:h| (superclassHelpKeys includes: h key) |
|
866 |
ifFalse: [implementedHelpSpec at: h key put: h value]]. |
|
867 |
||
868 |
hasChanged := false. |
|
869 |
implementedHelpSpec associationsDo: [:h| (helpSpec includesAssociation: h) ifFalse: [hasChanged := true]]. |
|
870 |
helpSpec associationsDo: [:h| (implementedHelpSpec includesAssociation: h) ifFalse: [hasChanged := true]]. |
|
871 |
||
872 |
(implementedHelpSpec notEmpty and: [hasChanged and: |
|
873 |
[DialogBox confirm: 'Class ', cls name asBoldText, ' already implements\a help spec!!\\Do only replace, if you have removed\help keys in an existing help spec.\' withCRs yesLabel: ' Merge ' noLabel: ' Replace ']]) |
|
874 |
ifTrue: |
|
875 |
[ |
|
876 |
implementedHelpSpec associationsDo: [:h| (helpSpec includesKey: h key) |
|
877 |
ifFalse: [helpSpec at: h key put: h value]]. |
|
878 |
] |
|
879 |
]. |
|
880 |
||
881 |
helpSpec isEmpty ifTrue:[ |
|
750 | 882 |
^(cls superclass respondsTo: specSelector) ifTrue: [cls class removeSelector: specSelector]. |
740 | 883 |
]. |
884 |
||
885 |
src := '' writeStream. |
|
886 |
||
887 |
src nextPutAll: |
|
750 | 888 |
specSelector, '\' withCRs, |
740 | 889 |
(ResourceSpecEditor codeGenerationCommentForClass: UIHelpTool) withCRs, |
890 |
'\\' withCRs, |
|
891 |
' "\' withCRs, |
|
892 |
' UIHelpTool openOnClass:', cls name asString ,' |
|
893 |
" |
|
894 |
||
895 |
<resource: #help> |
|
896 |
||
750 | 897 |
^super ', specSelector, ' addPairsFrom:#( |
740 | 898 |
|
899 |
'. |
|
900 |
||
761
91e524583390
do not save, if help texts have not changed (unformatting)
tz
parents:
750
diff
changeset
|
901 |
helpSpec keys asSortedCollection do: |
91e524583390
do not save, if help texts have not changed (unformatting)
tz
parents:
750
diff
changeset
|
902 |
[:key| |
91e524583390
do not save, if help texts have not changed (unformatting)
tz
parents:
750
diff
changeset
|
903 |
src nextPutLine: key storeString. |
91e524583390
do not save, if help texts have not changed (unformatting)
tz
parents:
750
diff
changeset
|
904 |
src nextPutLine: (helpSpec at: key) storeString; cr. |
740 | 905 |
]. |
906 |
src nextPutLine:')'. |
|
907 |
||
908 |
Compiler |
|
909 |
compile:(src contents) |
|
910 |
forClass:cls class |
|
911 |
inCategory:'help specs'. |
|
912 |
! |
|
913 |
||
914 |
installHelpSpecsOnClass:aClass |
|
779 | 915 |
"saves the help dicts on aClass and its superclasses which are subclasses of ApplicationModel" |
916 |
||
740 | 917 |
|cls helpSpecClasses| |
918 |
||
750 | 919 |
cls := self getHelpSpecClassFromClass:aClass. |
920 |
cls isNil ifTrue: [^self information:'No application class defined!!']. |
|
921 |
||
740 | 922 |
modified ifFalse:[ |
750 | 923 |
masterApplication isNil ifTrue: [self information:'Nothing was modified!!']. |
740 | 924 |
^nil |
925 |
]. |
|
926 |
||
927 |
(helpSpecClasses := self listOfHelpSpecClasses value) notNil |
|
928 |
ifTrue: |
|
750 | 929 |
[ |
930 |
(helpSpecClasses includes: cls name) ifFalse: [helpSpecClasses add: cls name]. |
|
740 | 931 |
helpSpecClasses do: [:clsName| (self installHelpSpecOnClass: clsName) isNil ifTrue: [^modified := false]]. |
932 |
] |
|
933 |
ifFalse: |
|
750 | 934 |
[ |
740 | 935 |
self installHelpSpecOnClass: cls |
936 |
]. |
|
937 |
||
938 |
modified := false. |
|
939 |
||
940 |
! |
|
941 |
||
750 | 942 |
resourceMessage: aString |
779 | 943 |
"extracts from aString the specClass and the specSelector" |
750 | 944 |
|
945 |
(aString notNil and: [self askForModification]) |
|
946 |
ifTrue: |
|
947 |
[ |
|
948 |
|msg cls sel| |
|
949 |
msg := aString asCollectionOfWords. |
|
950 |
(msg size == 2 and: |
|
951 |
[(cls := self resolveName:(msg at:1)) notNil]) |
|
952 |
ifTrue: |
|
953 |
[ |
|
954 |
specClass := cls name. |
|
955 |
specSelector := (msg at: 2) asSymbol. |
|
956 |
^true |
|
957 |
] |
|
958 |
]. |
|
959 |
^false |
|
960 |
||
961 |
! |
|
962 |
||
696
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
963 |
updateList |
779 | 964 |
"updates the list channel from dictionary" |
965 |
||
696
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
966 |
self listChannel value: dictionary keys asSortedCollection |
286 | 967 |
! ! |
968 |
||
969 |
!UIHelpTool methodsFor:'selection'! |
|
970 |
||
971 |
listSelection |
|
779 | 972 |
"returns current selection" |
973 |
||
286 | 974 |
^ listSelection |
975 |
! |
|
976 |
||
977 |
listSelection:aSelection |
|
779 | 978 |
"sets current selection" |
979 |
||
299 | 980 |
|txt view sel| |
286 | 981 |
|
722 | 982 |
aSelection isNil |
983 |
ifTrue: [(builder componentAt: #listOfHelpKeysView) selection: nil] |
|
984 |
ifFalse: [(dictionary includesKey: aSelection asSymbol) ifFalse: [self findHelpSpecForKey: aSelection]]. |
|
696
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
985 |
|
286 | 986 |
aSelection isNumber ifTrue:[ |
987 |
aSelection ~~ 0 ifTrue:[ |
|
988 |
sel := self listChannel value at:aSelection |
|
989 |
] |
|
990 |
] ifFalse:[ |
|
991 |
aSelection size ~~ 0 ifTrue:[ |
|
992 |
sel := aSelection withoutSeparators. |
|
993 |
sel size == 0 ifTrue:[ |
|
994 |
sel := nil |
|
995 |
] |
|
996 |
] |
|
997 |
]. |
|
998 |
||
299 | 999 |
listSelection = sel ifFalse:[ |
1000 |
listSelection := sel. |
|
286 | 1001 |
|
299 | 1002 |
modifiedHolder notNil ifTrue:[ |
1003 |
modifiedHolder value:true. |
|
1004 |
]. |
|
286 | 1005 |
|
299 | 1006 |
(view := self editTextView) notNil ifTrue:[ |
1007 |
listSelection notNil ifTrue:[ |
|
1008 |
txt := dictionary at:(listSelection asSymbol) ifAbsent:nil. |
|
286 | 1009 |
|
299 | 1010 |
(txt isNil or:[maxCharsPerLine isNil]) ifFalse:[ |
369 | 1011 |
txt := UIPainter convertString:(txt asString) maxLineSize:maxCharsPerLine skipLineFeed:false. |
286 | 1012 |
] |
696
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
1013 |
]. |
459 | 1014 |
view contents:txt. |
1015 |
view modified:false. |
|
299 | 1016 |
] |
1017 |
] |
|
286 | 1018 |
|
1019 |
! ! |
|
1020 |
||
369 | 1021 |
!UIHelpTool methodsFor:'startup / release'! |
1022 |
||
1023 |
closeRequest |
|
779 | 1024 |
"asks for permission before closing" |
1025 |
||
750 | 1026 |
(self masterApplication isNil and:[self askForModification]) ifTrue:[super closeRequest] |
740 | 1027 |
! |
1028 |
||
1029 |
initialize |
|
779 | 1030 |
"initializes instance variables" |
1031 |
||
740 | 1032 |
super initialize. |
1033 |
||
750 | 1034 |
specSelector := #helpSpec. |
740 | 1035 |
dictionary := Dictionary new. |
1036 |
dictionaries := Dictionary new. |
|
1037 |
modified := false. |
|
1038 |
||
696
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
1039 |
! |
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
1040 |
|
750 | 1041 |
loadFromMessage:aString |
779 | 1042 |
"loads a help spec by evaluating aString" |
750 | 1043 |
|
1044 |
(aString notNil and: [self askForModification]) |
|
1045 |
ifTrue: |
|
1046 |
[ |
|
1047 |
|msg cls sel| |
|
1048 |
msg := aString asCollectionOfWords. |
|
1049 |
(msg size == 2 and: |
|
1050 |
[(cls := self resolveName:(msg at:1)) notNil and: |
|
1051 |
[cls class implements: (sel := (msg at: 2) asSymbol)]]) |
|
1052 |
ifTrue: |
|
1053 |
[ |
|
1054 |
self buildFromClass: (specClass := cls name) andSelector: (specSelector := sel). |
|
1055 |
^true |
|
1056 |
] |
|
1057 |
]. |
|
1058 |
^false |
|
1059 |
||
1060 |
! |
|
1061 |
||
696
e91402372900
popup menu replaced by a list + supporting of help specs from different classes
tz
parents:
479
diff
changeset
|
1062 |
openInterface:aSymbol |
779 | 1063 |
"do not open as stand alone" |
1064 |
||
750 | 1065 |
|
1066 |
||
1067 |
! |
|
1068 |
||
1069 |
openOnClass:aClass |
|
779 | 1070 |
"opens the UIHelpTool on aClass" |
750 | 1071 |
|
1072 |
super openInterface: #windowSpecForStandAlone. |
|
1073 |
self masterApplication isNil ifTrue: [(builder componentAt: #RemoveButton) beInvisible]. |
|
1074 |
builder window label: 'Help Tool'. |
|
1075 |
self buildFromClass: aClass |
|
940 | 1076 |
! |
1077 |
||
1078 |
openOnClass:aClass andSelector: aSelector |
|
1079 |
"opens the UIHelpTool on aClass and aSelector" |
|
1080 |
||
1081 |
super openInterface: #windowSpecForStandAlone. |
|
1082 |
self masterApplication isNil ifTrue: [(builder componentAt: #RemoveButton) beInvisible]. |
|
1083 |
builder window label: 'Help Tool'. |
|
1084 |
self buildFromClass: aClass andSelector: aSelector |
|
369 | 1085 |
! ! |
1086 |
||
740 | 1087 |
!UIHelpTool methodsFor:'user actions'! |
286 | 1088 |
|
722 | 1089 |
accept |
779 | 1090 |
"accepts the help text" |
1091 |
||
722 | 1092 |
|view key txt list listChgd| |
1093 |
||
1094 |
(listSelection size == 0 or:[(view := self editTextView) isNil]) ifFalse:[ |
|
1095 |
txt := view contents asString. |
|
1096 |
key := listSelection asSymbol. |
|
1097 |
list := self listChannel value. |
|
1098 |
||
1099 |
(listChgd := (dictionary at:key ifAbsent:nil) isNil) ifTrue:[ |
|
1100 |
list add:key. |
|
1101 |
]. |
|
1102 |
dictionary at:key put:txt. |
|
1103 |
||
1104 |
listChgd ifTrue:[ |
|
1105 |
self updateList. |
|
1106 |
(builder componentAt: #listOfHelpKeysView) selection: (list indexOf: key). |
|
1107 |
]. |
|
1108 |
||
740 | 1109 |
modified := true. |
722 | 1110 |
modifiedHolder notNil ifTrue: [modifiedHolder value:true] |
1111 |
] |
|
1112 |
! |
|
1113 |
||
750 | 1114 |
doAdd |
779 | 1115 |
"adds a help key" |
1116 |
||
750 | 1117 |
|helpKey| |
1118 |
(helpKey := (builder componentAt: #helpKeyInputField asSymbol) contents) size > 0 |
|
1119 |
ifTrue: |
|
1120 |
[ |
|
1121 |
self listModel value: helpKey. |
|
1122 |
self accept |
|
1123 |
] |
|
1124 |
ifFalse: |
|
1125 |
[ |
|
835 | 1126 |
self warn:'No key was entered !!' |
750 | 1127 |
] |
835 | 1128 |
|
1129 |
"Modified: / 20.5.1998 / 01:15:06 / cg" |
|
722 | 1130 |
! |
1131 |
||
750 | 1132 |
doDelete |
779 | 1133 |
"deletes the selected help key" |
1134 |
||
722 | 1135 |
listSelection notNil |
1136 |
ifTrue: |
|
1137 |
[ |
|
1138 |
dictionary removeKey: listSelection asSymbol ifAbsent: nil. |
|
750 | 1139 |
self doRemove. |
722 | 1140 |
self updateList. |
740 | 1141 |
modified := true. |
722 | 1142 |
modifiedHolder notNil ifTrue: [modifiedHolder value:true] |
1143 |
] |
|
750 | 1144 |
ifFalse: |
1145 |
[ |
|
835 | 1146 |
self warn:'No key selected !!' |
750 | 1147 |
] |
835 | 1148 |
|
1149 |
"Modified: / 20.5.1998 / 01:15:00 / cg" |
|
722 | 1150 |
! |
1151 |
||
750 | 1152 |
doLoad |
779 | 1153 |
"opens a Resource Selection Browser in order to get a resource message" |
286 | 1154 |
|
750 | 1155 |
self loadFromMessage: |
1156 |
(ResourceSelectionBrowser |
|
779 | 1157 |
request: 'Load Help Spec From Class' |
750 | 1158 |
onSuperclass: nil |
1159 |
andClass: specClass |
|
779 | 1160 |
andSelector: specSelector ? #help |
1161 |
withResourceTypes: (Array with: #help)). |
|
1162 |
||
1163 |
self updateInfoLabel |
|
286 | 1164 |
|
750 | 1165 |
! |
286 | 1166 |
|
750 | 1167 |
doNew |
779 | 1168 |
"resets the help tool" |
1169 |
||
750 | 1170 |
specClass := listSelection := nil. |
1171 |
self dictionary: nil. |
|
1172 |
self dictionaries: nil. |
|
1173 |
self listOfHelpSpecClasses removeAll. |
|
1174 |
modified := false. |
|
286 | 1175 |
! |
1176 |
||
1177 |
doReload |
|
779 | 1178 |
"reloads the help dictionaries" |
1179 |
||
286 | 1180 |
|oldSel model| |
1181 |
||
1182 |
model := self listModel. |
|
1183 |
oldSel := model value. |
|
1184 |
model value:nil. |
|
1185 |
self helpSpecFrom:specClass. |
|
1186 |
model value:oldSel. |
|
740 | 1187 |
modified := false. |
369 | 1188 |
|
722 | 1189 |
! |
1190 |
||
750 | 1191 |
doRemove |
779 | 1192 |
"removes the selected help key" |
1193 |
||
750 | 1194 |
listSelection notNil |
1195 |
ifTrue: |
|
1196 |
[ |
|
1197 |
self listModel value: nil. |
|
1198 |
self updateList. |
|
1199 |
modifiedHolder notNil ifTrue: [modifiedHolder value:true] |
|
1200 |
] |
|
1201 |
ifFalse: |
|
1202 |
[ |
|
835 | 1203 |
self warn:'No key selected !!' |
750 | 1204 |
] |
835 | 1205 |
|
1206 |
"Modified: / 20.5.1998 / 01:15:11 / cg" |
|
750 | 1207 |
! |
1208 |
||
722 | 1209 |
doSave |
779 | 1210 |
"saves the help dictionaries on specClass" |
1211 |
||
722 | 1212 |
self installHelpSpecsOnClass:specClass |
148 | 1213 |
! ! |
1214 |
||
1215 |
!UIHelpTool class methodsFor:'documentation'! |
|
1216 |
||
1217 |
version |
|
1218 |
^ '$Header$' |
|
1219 |
! ! |