author | Claus Gittinger <cg@exept.de> |
Tue, 01 Apr 2014 14:44:58 +0200 | |
changeset 3323 | a251378c32d8 |
parent 3320 | 602bf71b5fdc |
child 3333 | 66ff26772ee3 |
permissions | -rw-r--r-- |
59 | 1 |
" |
2 |
COPYRIGHT (c) 1995 by Claus Gittinger |
|
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 |
" |
|
1502 | 12 |
"{ Package: 'stx:libview2' }" |
13 |
||
59 | 14 |
EventListener subclass:#ActiveHelp |
3227 | 15 |
instanceVariableNames:'lastHelpText listeningForAll applicationsOrTopViewsWithHelp |
16 |
lastHelpWidget' |
|
2975 | 17 |
classVariableNames:'Debugging' |
216 | 18 |
poolDictionaries:'' |
19 |
category:'Interface-Help' |
|
59 | 20 |
! |
21 |
||
1892 | 22 |
ActiveHelp class instanceVariableNames:'DelayTime ShowTime TheOneAndOnlyHelpListener' |
23 |
||
24 |
" |
|
25 |
No other class instance variables are inherited by this class. |
|
26 |
" |
|
27 |
! |
|
28 |
||
338
071f92621e3b
oops - catching the terminateSignal is no good idea
Claus Gittinger <cg@exept.de>
parents:
330
diff
changeset
|
29 |
!ActiveHelp class methodsFor:'documentation'! |
59 | 30 |
|
138 | 31 |
copyright |
32 |
" |
|
33 |
COPYRIGHT (c) 1995 by Claus Gittinger |
|
34 |
All Rights Reserved |
|
35 |
||
36 |
This software is furnished under a license and may be used |
|
37 |
only in accordance with the terms of that license and with the |
|
38 |
inclusion of the above copyright notice. This software may not |
|
39 |
be provided or otherwise made available to, or used by, any |
|
40 |
other person. No title to or ownership of the software is |
|
41 |
hereby transferred. |
|
42 |
" |
|
43 |
||
59 | 44 |
! |
45 |
||
46 |
documentation |
|
47 |
" |
|
98 | 48 |
The active help listener. |
719
17fba5c2a167
allow applications to start activeHelp for
Claus Gittinger <cg@exept.de>
parents:
696
diff
changeset
|
49 |
|
98 | 50 |
The one and only instance of myself intercepts incoming mouse & keyboard |
51 |
events for the display device, being especially interested in view-enter/ |
|
636 | 52 |
leave events. When such an event arrives, it asks the corresponding view |
3219 | 53 |
or its model for a help message and displays it via an ActiveHelpView. |
54 |
Actually, the view is first asked if it would like to display it itself |
|
55 |
- for example, in some information-view at the bottom of its main window. |
|
636 | 56 |
|
57 |
The query for the helpText is repeated along the views superView chain, |
|
58 |
until any model or view returns a nonNil answer for the #helpTextFor:at |
|
59 |
or #helpTextFor message. |
|
100 | 60 |
|
98 | 61 |
All I need for automatic help is some model/view/applicationModel along |
62 |
the superview chain of the entered component, which responds to the |
|
63 |
#helpTextFor: message with a non-nil (string-) answer. |
|
64 |
I close down the help view after a while, if a key is pressed or the mouse |
|
65 |
moved to another view. |
|
100 | 66 |
|
67 |
Who should provide the helpText: |
|
221 | 68 |
the best place is the application object (an instance of ApplicationModel) |
69 |
or the topView, if its a derived class of StandardSystemView. |
|
70 |
This should know about its components and return the string |
|
71 |
when asked via #helpTextFor:aComponent. |
|
330
d7ce98930ad3
Rename Launcher-->OldLauncher, NewLauncher-->Launcher.
Stefan Vogel <sv@exept.de>
parents:
297
diff
changeset
|
72 |
See examples in FileBrowser, Launcher etc. |
100 | 73 |
|
74 |
Be aware, that for applicationModels, there must be a link from the |
|
75 |
topView to this applicationModel |
|
76 |
(set via: aTopView application:anApplicationModel) |
|
77 |
otherwise, the helpManager has no means of finding the application which |
|
78 |
corresponds to a view. |
|
79 |
||
80 |
Who should display the helpText: |
|
221 | 81 |
by default, the helpListener opens a little popup view, which displays the |
82 |
returned help message. However, a nice trick which can be used by applications |
|
83 |
is to create an infoLabel as a subview of the topFrame (a la windows) |
|
84 |
and display the text right in the #helpTextFor: method. To cheat the |
|
85 |
help listener, this method should then return nil, to keep it silent. |
|
86 |
||
87 |
||
719
17fba5c2a167
allow applications to start activeHelp for
Claus Gittinger <cg@exept.de>
parents:
696
diff
changeset
|
88 |
Usage: |
17fba5c2a167
allow applications to start activeHelp for
Claus Gittinger <cg@exept.de>
parents:
696
diff
changeset
|
89 |
If help is to be shown for all views (as enabled by the launchers help menu), |
17fba5c2a167
allow applications to start activeHelp for
Claus Gittinger <cg@exept.de>
parents:
696
diff
changeset
|
90 |
use 'ActiveHelp start' and 'ActiveHelp stop'. |
17fba5c2a167
allow applications to start activeHelp for
Claus Gittinger <cg@exept.de>
parents:
696
diff
changeset
|
91 |
|
17fba5c2a167
allow applications to start activeHelp for
Claus Gittinger <cg@exept.de>
parents:
696
diff
changeset
|
92 |
Individual apps may enable/disable active help for themself by: |
17fba5c2a167
allow applications to start activeHelp for
Claus Gittinger <cg@exept.de>
parents:
696
diff
changeset
|
93 |
'ActiveHelp startFor:app' or 'ActiveHelp stopFor:app', passing either |
17fba5c2a167
allow applications to start activeHelp for
Claus Gittinger <cg@exept.de>
parents:
696
diff
changeset
|
94 |
the topView or the topViews application as argument. |
17fba5c2a167
allow applications to start activeHelp for
Claus Gittinger <cg@exept.de>
parents:
696
diff
changeset
|
95 |
This is usually done by applications which want to show contextHelp in |
17fba5c2a167
allow applications to start activeHelp for
Claus Gittinger <cg@exept.de>
parents:
696
diff
changeset
|
96 |
some infoView. |
17fba5c2a167
allow applications to start activeHelp for
Claus Gittinger <cg@exept.de>
parents:
696
diff
changeset
|
97 |
|
17fba5c2a167
allow applications to start activeHelp for
Claus Gittinger <cg@exept.de>
parents:
696
diff
changeset
|
98 |
|
221 | 99 |
[author:] |
100 |
Claus Gittinger |
|
101 |
||
233 | 102 |
[start with:] |
103 |
ActiveHelp start |
|
104 |
ActiveHelp stop |
|
105 |
||
221 | 106 |
[See also:] |
233 | 107 |
ActiveHelpView |
108 |
WindowGroup WindowEvent |
|
109 |
ApplicationModel StandardSystemView |
|
100 | 110 |
" |
111 |
! |
|
112 |
||
113 |
examples |
|
114 |
" |
|
719
17fba5c2a167
allow applications to start activeHelp for
Claus Gittinger <cg@exept.de>
parents:
696
diff
changeset
|
115 |
Active Help for a single view |
17fba5c2a167
allow applications to start activeHelp for
Claus Gittinger <cg@exept.de>
parents:
696
diff
changeset
|
116 |
or app (whatever the global settings are): |
17fba5c2a167
allow applications to start activeHelp for
Claus Gittinger <cg@exept.de>
parents:
696
diff
changeset
|
117 |
Can be initiated by an app when its opened. |
17fba5c2a167
allow applications to start activeHelp for
Claus Gittinger <cg@exept.de>
parents:
696
diff
changeset
|
118 |
[exBegin] |
17fba5c2a167
allow applications to start activeHelp for
Claus Gittinger <cg@exept.de>
parents:
696
diff
changeset
|
119 |
|app top myAppClass| |
17fba5c2a167
allow applications to start activeHelp for
Claus Gittinger <cg@exept.de>
parents:
696
diff
changeset
|
120 |
|
17fba5c2a167
allow applications to start activeHelp for
Claus Gittinger <cg@exept.de>
parents:
696
diff
changeset
|
121 |
Class withoutUpdatingChangesDo:[ |
17fba5c2a167
allow applications to start activeHelp for
Claus Gittinger <cg@exept.de>
parents:
696
diff
changeset
|
122 |
myAppClass := ApplicationModel |
17fba5c2a167
allow applications to start activeHelp for
Claus Gittinger <cg@exept.de>
parents:
696
diff
changeset
|
123 |
subclass:#'Demos::DemoApp' |
17fba5c2a167
allow applications to start activeHelp for
Claus Gittinger <cg@exept.de>
parents:
696
diff
changeset
|
124 |
instanceVariableNames:'' |
17fba5c2a167
allow applications to start activeHelp for
Claus Gittinger <cg@exept.de>
parents:
696
diff
changeset
|
125 |
classVariableNames:'' |
17fba5c2a167
allow applications to start activeHelp for
Claus Gittinger <cg@exept.de>
parents:
696
diff
changeset
|
126 |
poolDictionaries:'' |
17fba5c2a167
allow applications to start activeHelp for
Claus Gittinger <cg@exept.de>
parents:
696
diff
changeset
|
127 |
category:'demos'. |
17fba5c2a167
allow applications to start activeHelp for
Claus Gittinger <cg@exept.de>
parents:
696
diff
changeset
|
128 |
|
17fba5c2a167
allow applications to start activeHelp for
Claus Gittinger <cg@exept.de>
parents:
696
diff
changeset
|
129 |
myAppClass |
17fba5c2a167
allow applications to start activeHelp for
Claus Gittinger <cg@exept.de>
parents:
696
diff
changeset
|
130 |
compile:'helpTextFor:aView Transcript showCR:''hello''. ^ ''this is some helpText'''. |
17fba5c2a167
allow applications to start activeHelp for
Claus Gittinger <cg@exept.de>
parents:
696
diff
changeset
|
131 |
|
17fba5c2a167
allow applications to start activeHelp for
Claus Gittinger <cg@exept.de>
parents:
696
diff
changeset
|
132 |
]. |
17fba5c2a167
allow applications to start activeHelp for
Claus Gittinger <cg@exept.de>
parents:
696
diff
changeset
|
133 |
app := myAppClass new. |
17fba5c2a167
allow applications to start activeHelp for
Claus Gittinger <cg@exept.de>
parents:
696
diff
changeset
|
134 |
|
17fba5c2a167
allow applications to start activeHelp for
Claus Gittinger <cg@exept.de>
parents:
696
diff
changeset
|
135 |
top := StandardSystemView new. |
17fba5c2a167
allow applications to start activeHelp for
Claus Gittinger <cg@exept.de>
parents:
696
diff
changeset
|
136 |
top extent:300@100. |
17fba5c2a167
allow applications to start activeHelp for
Claus Gittinger <cg@exept.de>
parents:
696
diff
changeset
|
137 |
top application:app. |
17fba5c2a167
allow applications to start activeHelp for
Claus Gittinger <cg@exept.de>
parents:
696
diff
changeset
|
138 |
top open. |
17fba5c2a167
allow applications to start activeHelp for
Claus Gittinger <cg@exept.de>
parents:
696
diff
changeset
|
139 |
|
17fba5c2a167
allow applications to start activeHelp for
Claus Gittinger <cg@exept.de>
parents:
696
diff
changeset
|
140 |
ActiveHelp startFor:app. |
17fba5c2a167
allow applications to start activeHelp for
Claus Gittinger <cg@exept.de>
parents:
696
diff
changeset
|
141 |
|
17fba5c2a167
allow applications to start activeHelp for
Claus Gittinger <cg@exept.de>
parents:
696
diff
changeset
|
142 |
Class withoutUpdatingChangesDo:[ |
17fba5c2a167
allow applications to start activeHelp for
Claus Gittinger <cg@exept.de>
parents:
696
diff
changeset
|
143 |
myAppClass removeFromSystem |
17fba5c2a167
allow applications to start activeHelp for
Claus Gittinger <cg@exept.de>
parents:
696
diff
changeset
|
144 |
] |
17fba5c2a167
allow applications to start activeHelp for
Claus Gittinger <cg@exept.de>
parents:
696
diff
changeset
|
145 |
[exEnd] |
17fba5c2a167
allow applications to start activeHelp for
Claus Gittinger <cg@exept.de>
parents:
696
diff
changeset
|
146 |
|
17fba5c2a167
allow applications to start activeHelp for
Claus Gittinger <cg@exept.de>
parents:
696
diff
changeset
|
147 |
|
17fba5c2a167
allow applications to start activeHelp for
Claus Gittinger <cg@exept.de>
parents:
696
diff
changeset
|
148 |
Active Help (for all views): |
17fba5c2a167
allow applications to start activeHelp for
Claus Gittinger <cg@exept.de>
parents:
696
diff
changeset
|
149 |
|
233 | 150 |
(make certain that activeHelp is turned on ... |
151 |
... otherwise, you will see nothing) |
|
100 | 152 |
|
153 |
the following example uses a Plug as a model replacement. |
|
154 |
In concrete application, you would create a method to implement the helpText |
|
155 |
query message. |
|
227 | 156 |
[exBegin] |
157 |
|app top button1 button2| |
|
100 | 158 |
|
227 | 159 |
app := Plug new. |
160 |
app respondTo:#helpTextFor: |
|
161 |
with:[:view | |
|
162 |
view == button1 ifTrue:[ |
|
163 |
'this is button1' |
|
164 |
] ifFalse:[ |
|
165 |
view == button2 ifTrue:[ |
|
166 |
'some help for button2' |
|
167 |
] ifFalse:[ |
|
168 |
nil |
|
169 |
] |
|
170 |
] |
|
171 |
]. |
|
100 | 172 |
|
227 | 173 |
top := StandardSystemView new. |
174 |
top extent:300@100. |
|
175 |
button1 := Button label:'b1' in:top. |
|
176 |
button1 origin:0.0@0.0 corner:0.5@30. |
|
177 |
button2 := Button label:'b2' in:top. |
|
178 |
button2 origin:0.5@0.0 corner:1.0@30. |
|
179 |
top model:app. '<-- normally this would be: top application:app'. |
|
180 |
top open |
|
181 |
[exEnd] |
|
100 | 182 |
|
233 | 183 |
(make certain that activeHelp is turned on ... |
184 |
... otherwise, you will see nothing) |
|
185 |
||
227 | 186 |
alternatively, display of the helpMessage in a local, private view: |
187 |
[exBegin] |
|
188 |
|app top button1 button2 infoView| |
|
100 | 189 |
|
227 | 190 |
app := Plug new. |
191 |
app respondTo:#helpTextFor: |
|
192 |
with:[:view | infoView label:'info ...'. |
|
193 |
view == button1 ifTrue:[ |
|
194 |
infoView label:'this is button1' |
|
195 |
]. |
|
196 |
view == button2 ifTrue:[ |
|
197 |
infoView label:'some help for button2' |
|
198 |
]. |
|
199 |
nil |
|
200 |
]. |
|
100 | 201 |
|
227 | 202 |
top := StandardSystemView new. |
203 |
top extent:300@100. |
|
204 |
button1 := Button label:'b1' in:top. |
|
205 |
button1 origin:0.0@0.0 corner:0.5@30. |
|
206 |
button2 := Button label:'b2' in:top. |
|
207 |
button2 origin:0.5@0.0 corner:1.0@30. |
|
208 |
infoView := Label label:'info ...' in:top. |
|
209 |
infoView level:-1; origin:0.0@1.0 corner:1.0@1.0. |
|
210 |
infoView topInset:(infoView preferredExtent y negated - 3); |
|
211 |
leftInset:3; |
|
212 |
rightInset:3; |
|
213 |
bottomInset:3; |
|
214 |
adjust:#left. |
|
215 |
top model:app. '<-- normally this would be: top application:app'. |
|
216 |
top open |
|
217 |
[exEnd] |
|
59 | 218 |
" |
219 |
! ! |
|
220 |
||
3320 | 221 |
!ActiveHelp class methodsFor:'initialization'! |
222 |
||
223 |
initialize |
|
224 |
Debugging := false. |
|
225 |
! ! |
|
226 |
||
2975 | 227 |
!ActiveHelp class methodsFor:'accessing'! |
228 |
||
229 |
debugging |
|
3320 | 230 |
^ Debugging |
2975 | 231 |
|
232 |
"Modified: / 22-12-2011 / 10:46:30 / cg" |
|
233 |
! |
|
234 |
||
235 |
debugging:something |
|
236 |
Debugging := something. |
|
237 |
||
238 |
" |
|
239 |
self debugging:true |
|
240 |
self debugging:false |
|
241 |
" |
|
242 |
||
243 |
"Modified (comment): / 22-12-2011 / 10:43:32 / cg" |
|
244 |
! ! |
|
245 |
||
633 | 246 |
!ActiveHelp class methodsFor:'queries'! |
100 | 247 |
|
632
844b1aaf3eeb
provide access to the current activeHelp instance
Claus Gittinger <cg@exept.de>
parents:
602
diff
changeset
|
248 |
currentHelpListener |
844b1aaf3eeb
provide access to the current activeHelp instance
Claus Gittinger <cg@exept.de>
parents:
602
diff
changeset
|
249 |
"return the activeHelp listener if activeHelp is turned on, nil otherwise" |
844b1aaf3eeb
provide access to the current activeHelp instance
Claus Gittinger <cg@exept.de>
parents:
602
diff
changeset
|
250 |
|
844b1aaf3eeb
provide access to the current activeHelp instance
Claus Gittinger <cg@exept.de>
parents:
602
diff
changeset
|
251 |
^ TheOneAndOnlyHelpListener |
844b1aaf3eeb
provide access to the current activeHelp instance
Claus Gittinger <cg@exept.de>
parents:
602
diff
changeset
|
252 |
|
844b1aaf3eeb
provide access to the current activeHelp instance
Claus Gittinger <cg@exept.de>
parents:
602
diff
changeset
|
253 |
"Created: 28.6.1997 / 13:59:44 / cg" |
844b1aaf3eeb
provide access to the current activeHelp instance
Claus Gittinger <cg@exept.de>
parents:
602
diff
changeset
|
254 |
! |
844b1aaf3eeb
provide access to the current activeHelp instance
Claus Gittinger <cg@exept.de>
parents:
602
diff
changeset
|
255 |
|
1892 | 256 |
delayTime |
2391 | 257 |
^ DelayTime ? 0.4 |
1892 | 258 |
! |
259 |
||
233 | 260 |
isActive |
261 |
"return true, if activeHelp is turned on" |
|
262 |
||
138 | 263 |
^ TheOneAndOnlyHelpListener notNil |
233 | 264 |
|
265 |
"Modified: 27.4.1996 / 15:07:57 / cg" |
|
1892 | 266 |
! |
267 |
||
268 |
showTime |
|
2879 | 269 |
"set the number of seconds, a help messages is to be shown. |
270 |
The default is 30 seconds." |
|
271 |
||
272 |
^ ShowTime ? 30 |
|
273 |
||
274 |
"Modified: / 10-11-2010 / 12:29:44 / cg" |
|
633 | 275 |
! ! |
276 |
||
719
17fba5c2a167
allow applications to start activeHelp for
Claus Gittinger <cg@exept.de>
parents:
696
diff
changeset
|
277 |
!ActiveHelp class methodsFor:'start & stop'! |
59 | 278 |
|
279 |
start |
|
719
17fba5c2a167
allow applications to start activeHelp for
Claus Gittinger <cg@exept.de>
parents:
696
diff
changeset
|
280 |
"start activeHelp for all apps" |
233 | 281 |
|
2391 | 282 |
TheOneAndOnlyHelpListener notNil ifTrue:[ |
283 |
TheOneAndOnlyHelpListener stop. |
|
284 |
TheOneAndOnlyHelpListener := nil. |
|
285 |
]. |
|
286 |
||
59 | 287 |
TheOneAndOnlyHelpListener isNil ifTrue:[ |
233 | 288 |
TheOneAndOnlyHelpListener := self new. |
59 | 289 |
]. |
2391 | 290 |
TheOneAndOnlyHelpListener start. |
291 |
^ TheOneAndOnlyHelpListener |
|
59 | 292 |
|
293 |
" |
|
294 |
ActiveHelp start |
|
1535
a9fcabccabb3
separated into flyByHelp and activeHelp
Claus Gittinger <cg@exept.de>
parents:
1502
diff
changeset
|
295 |
FlyByHelp start |
59 | 296 |
" |
233 | 297 |
|
719
17fba5c2a167
allow applications to start activeHelp for
Claus Gittinger <cg@exept.de>
parents:
696
diff
changeset
|
298 |
"Modified: / 26.10.1997 / 23:16:54 / cg" |
17fba5c2a167
allow applications to start activeHelp for
Claus Gittinger <cg@exept.de>
parents:
696
diff
changeset
|
299 |
! |
17fba5c2a167
allow applications to start activeHelp for
Claus Gittinger <cg@exept.de>
parents:
696
diff
changeset
|
300 |
|
17fba5c2a167
allow applications to start activeHelp for
Claus Gittinger <cg@exept.de>
parents:
696
diff
changeset
|
301 |
startFor:anApplicationOrTopView |
17fba5c2a167
allow applications to start activeHelp for
Claus Gittinger <cg@exept.de>
parents:
696
diff
changeset
|
302 |
"start activeHelp for a single app" |
17fba5c2a167
allow applications to start activeHelp for
Claus Gittinger <cg@exept.de>
parents:
696
diff
changeset
|
303 |
|
17fba5c2a167
allow applications to start activeHelp for
Claus Gittinger <cg@exept.de>
parents:
696
diff
changeset
|
304 |
TheOneAndOnlyHelpListener isNil ifTrue:[ |
17fba5c2a167
allow applications to start activeHelp for
Claus Gittinger <cg@exept.de>
parents:
696
diff
changeset
|
305 |
TheOneAndOnlyHelpListener := self new. |
17fba5c2a167
allow applications to start activeHelp for
Claus Gittinger <cg@exept.de>
parents:
696
diff
changeset
|
306 |
]. |
17fba5c2a167
allow applications to start activeHelp for
Claus Gittinger <cg@exept.de>
parents:
696
diff
changeset
|
307 |
TheOneAndOnlyHelpListener listenFor:anApplicationOrTopView |
17fba5c2a167
allow applications to start activeHelp for
Claus Gittinger <cg@exept.de>
parents:
696
diff
changeset
|
308 |
|
17fba5c2a167
allow applications to start activeHelp for
Claus Gittinger <cg@exept.de>
parents:
696
diff
changeset
|
309 |
"Modified: / 26.10.1997 / 23:17:05 / cg" |
59 | 310 |
! |
311 |
||
312 |
stop |
|
719
17fba5c2a167
allow applications to start activeHelp for
Claus Gittinger <cg@exept.de>
parents:
696
diff
changeset
|
313 |
"stop activeHelp for all (except for individual apps)" |
233 | 314 |
|
59 | 315 |
TheOneAndOnlyHelpListener notNil ifTrue:[ |
2391 | 316 |
TheOneAndOnlyHelpListener stop. |
1535
a9fcabccabb3
separated into flyByHelp and activeHelp
Claus Gittinger <cg@exept.de>
parents:
1502
diff
changeset
|
317 |
TheOneAndOnlyHelpListener := nil. |
59 | 318 |
]. |
319 |
||
320 |
" |
|
321 |
ActiveHelp stop |
|
1543 | 322 |
FlyByHelp stop |
59 | 323 |
" |
233 | 324 |
|
719
17fba5c2a167
allow applications to start activeHelp for
Claus Gittinger <cg@exept.de>
parents:
696
diff
changeset
|
325 |
"Modified: / 26.10.1997 / 23:18:58 / cg" |
17fba5c2a167
allow applications to start activeHelp for
Claus Gittinger <cg@exept.de>
parents:
696
diff
changeset
|
326 |
! |
17fba5c2a167
allow applications to start activeHelp for
Claus Gittinger <cg@exept.de>
parents:
696
diff
changeset
|
327 |
|
17fba5c2a167
allow applications to start activeHelp for
Claus Gittinger <cg@exept.de>
parents:
696
diff
changeset
|
328 |
stopFor:anAppOrTopView |
17fba5c2a167
allow applications to start activeHelp for
Claus Gittinger <cg@exept.de>
parents:
696
diff
changeset
|
329 |
"stop activeHelp for a single app" |
17fba5c2a167
allow applications to start activeHelp for
Claus Gittinger <cg@exept.de>
parents:
696
diff
changeset
|
330 |
|
17fba5c2a167
allow applications to start activeHelp for
Claus Gittinger <cg@exept.de>
parents:
696
diff
changeset
|
331 |
TheOneAndOnlyHelpListener notNil ifTrue:[ |
17fba5c2a167
allow applications to start activeHelp for
Claus Gittinger <cg@exept.de>
parents:
696
diff
changeset
|
332 |
TheOneAndOnlyHelpListener unlistenFor:anAppOrTopView. |
17fba5c2a167
allow applications to start activeHelp for
Claus Gittinger <cg@exept.de>
parents:
696
diff
changeset
|
333 |
]. |
17fba5c2a167
allow applications to start activeHelp for
Claus Gittinger <cg@exept.de>
parents:
696
diff
changeset
|
334 |
|
17fba5c2a167
allow applications to start activeHelp for
Claus Gittinger <cg@exept.de>
parents:
696
diff
changeset
|
335 |
"Modified: / 26.10.1997 / 23:12:55 / cg" |
17fba5c2a167
allow applications to start activeHelp for
Claus Gittinger <cg@exept.de>
parents:
696
diff
changeset
|
336 |
"Created: / 26.10.1997 / 23:18:41 / cg" |
138 | 337 |
! ! |
338 |
||
338
071f92621e3b
oops - catching the terminateSignal is no good idea
Claus Gittinger <cg@exept.de>
parents:
330
diff
changeset
|
339 |
!ActiveHelp class methodsFor:'times'! |
138 | 340 |
|
341 |
delayTime:numberOfSeconds |
|
342 |
"set the delay (the time, the cursor has to be in the view |
|
343 |
before help is shown). The default is 2 seconds." |
|
344 |
||
345 |
DelayTime := numberOfSeconds |
|
346 |
||
347 |
" |
|
348 |
ActiveHelp delayTime:0.5 |
|
349 |
ActiveHelp delayTime:2 |
|
350 |
ActiveHelp delayTime:10 |
|
351 |
" |
|
59 | 352 |
! |
353 |
||
138 | 354 |
showTime:numberOfSeconds |
355 |
"set the number of seconds, a help messages is to be shown. |
|
2879 | 356 |
The default is 30 seconds." |
138 | 357 |
|
358 |
ShowTime := numberOfSeconds |
|
359 |
||
360 |
" |
|
361 |
ActiveHelp showTime:10 |
|
362 |
ActiveHelp showTime:99999 |
|
363 |
ActiveHelp showTime:30 |
|
364 |
" |
|
2879 | 365 |
|
366 |
"Modified: / 10-11-2010 / 12:29:40 / cg" |
|
138 | 367 |
! ! |
368 |
||
2391 | 369 |
!ActiveHelp methodsFor:'event handling'! |
138 | 370 |
|
2473 | 371 |
buttonMotion:buttonAndModifierState x:x y:y view:aView |
1657 | 372 |
"handle motion events - prepare to show help" |
233 | 373 |
|
2782 | 374 |
|realViewUnderCursor realP| |
375 |
||
2473 | 376 |
buttonAndModifierState == 0 ifTrue:[ |
2783
cb3420e40ed1
changed: #buttonMotion:x:y:view:
Claus Gittinger <cg@exept.de>
parents:
2782
diff
changeset
|
377 |
"/ realViewUnderCursor := aView device viewFromPoint:(aView pointerPosition). |
cb3420e40ed1
changed: #buttonMotion:x:y:view:
Claus Gittinger <cg@exept.de>
parents:
2782
diff
changeset
|
378 |
"/ realP := aView device translatePoint:(x@y) fromView:aView toView:realViewUnderCursor. |
cb3420e40ed1
changed: #buttonMotion:x:y:view:
Claus Gittinger <cg@exept.de>
parents:
2782
diff
changeset
|
379 |
"/ self handleMouseIn:realViewUnderCursor x:realP x y:realP y. |
3292 | 380 |
Debugging ifTrue:['motion' infoPrintCR]. |
2783
cb3420e40ed1
changed: #buttonMotion:x:y:view:
Claus Gittinger <cg@exept.de>
parents:
2782
diff
changeset
|
381 |
self handleMouseIn:aView x:x y:y. |
1948
33eb423a6fd3
only act when no mouse-button is pressed
Claus Gittinger <cg@exept.de>
parents:
1909
diff
changeset
|
382 |
]. |
138 | 383 |
^ false |
384 |
! |
|
385 |
||
1591 | 386 |
keyPress:key x:x y:y view:view |
1535
a9fcabccabb3
separated into flyByHelp and activeHelp
Claus Gittinger <cg@exept.de>
parents:
1502
diff
changeset
|
387 |
"unconditionally hide the help view" |
233 | 388 |
|
1535
a9fcabccabb3
separated into flyByHelp and activeHelp
Claus Gittinger <cg@exept.de>
parents:
1502
diff
changeset
|
389 |
self hideHelpIgnoringErrors. |
138 | 390 |
^ false |
233 | 391 |
|
392 |
"Modified: 27.4.1996 / 15:09:57 / cg" |
|
138 | 393 |
! |
394 |
||
395 |
pointerEnter:state x:x y:y view:aView |
|
1657 | 396 |
"handle pointer entering a view; prepare to show help" |
233 | 397 |
|
1948
33eb423a6fd3
only act when no mouse-button is pressed
Claus Gittinger <cg@exept.de>
parents:
1909
diff
changeset
|
398 |
state == 0 ifTrue:[ |
33eb423a6fd3
only act when no mouse-button is pressed
Claus Gittinger <cg@exept.de>
parents:
1909
diff
changeset
|
399 |
self handleMouseIn:aView x:x y:y. |
33eb423a6fd3
only act when no mouse-button is pressed
Claus Gittinger <cg@exept.de>
parents:
1909
diff
changeset
|
400 |
]. |
1657 | 401 |
^ false |
138 | 402 |
! |
403 |
||
2371
4ab6c8c7bc03
flush enqueued help-activation event when we leave a view
Claus Gittinger <cg@exept.de>
parents:
2130
diff
changeset
|
404 |
pointerLeave:state view:aView |
233 | 405 |
"handle pointer leaving a view; hide help text" |
406 |
||
2371
4ab6c8c7bc03
flush enqueued help-activation event when we leave a view
Claus Gittinger <cg@exept.de>
parents:
2130
diff
changeset
|
407 |
|sensor| |
4ab6c8c7bc03
flush enqueued help-activation event when we leave a view
Claus Gittinger <cg@exept.de>
parents:
2130
diff
changeset
|
408 |
|
4ab6c8c7bc03
flush enqueued help-activation event when we leave a view
Claus Gittinger <cg@exept.de>
parents:
2130
diff
changeset
|
409 |
sensor := aView sensor. |
4ab6c8c7bc03
flush enqueued help-activation event when we leave a view
Claus Gittinger <cg@exept.de>
parents:
2130
diff
changeset
|
410 |
sensor notNil ifTrue:[ |
4ab6c8c7bc03
flush enqueued help-activation event when we leave a view
Claus Gittinger <cg@exept.de>
parents:
2130
diff
changeset
|
411 |
sensor flushEventsFor:self withType:#initiateHelpFor:at:. |
4ab6c8c7bc03
flush enqueued help-activation event when we leave a view
Claus Gittinger <cg@exept.de>
parents:
2130
diff
changeset
|
412 |
]. |
1535
a9fcabccabb3
separated into flyByHelp and activeHelp
Claus Gittinger <cg@exept.de>
parents:
1502
diff
changeset
|
413 |
self hideHelpIgnoringErrors. |
138 | 414 |
^ false |
2914
18cff2d0daff
change to only expect one single method to be (re)defined:
Claus Gittinger <cg@exept.de>
parents:
2879
diff
changeset
|
415 |
! |
18cff2d0daff
change to only expect one single method to be (re)defined:
Claus Gittinger <cg@exept.de>
parents:
2879
diff
changeset
|
416 |
|
18cff2d0daff
change to only expect one single method to be (re)defined:
Claus Gittinger <cg@exept.de>
parents:
2879
diff
changeset
|
417 |
processEvent:ev |
3292 | 418 |
Debugging ifTrue:[ |
419 |
'event: ' infoPrint. ev infoPrintCR. |
|
420 |
]. |
|
2914
18cff2d0daff
change to only expect one single method to be (re)defined:
Claus Gittinger <cg@exept.de>
parents:
2879
diff
changeset
|
421 |
(ev isPointerEnterLeaveEvent |
18cff2d0daff
change to only expect one single method to be (re)defined:
Claus Gittinger <cg@exept.de>
parents:
2879
diff
changeset
|
422 |
or:[ ev isButtonEvent |
18cff2d0daff
change to only expect one single method to be (re)defined:
Claus Gittinger <cg@exept.de>
parents:
2879
diff
changeset
|
423 |
or:[ ev isKeyEvent ]]) ifTrue:[ |
18cff2d0daff
change to only expect one single method to be (re)defined:
Claus Gittinger <cg@exept.de>
parents:
2879
diff
changeset
|
424 |
^ ev dispatchWithViewArgumentTo:self |
18cff2d0daff
change to only expect one single method to be (re)defined:
Claus Gittinger <cg@exept.de>
parents:
2879
diff
changeset
|
425 |
]. |
18cff2d0daff
change to only expect one single method to be (re)defined:
Claus Gittinger <cg@exept.de>
parents:
2879
diff
changeset
|
426 |
^ false |
18cff2d0daff
change to only expect one single method to be (re)defined:
Claus Gittinger <cg@exept.de>
parents:
2879
diff
changeset
|
427 |
|
18cff2d0daff
change to only expect one single method to be (re)defined:
Claus Gittinger <cg@exept.de>
parents:
2879
diff
changeset
|
428 |
"Created: / 29-06-2011 / 18:22:43 / cg" |
59 | 429 |
! ! |
430 |
||
2391 | 431 |
!ActiveHelp methodsFor:'help texts'! |
59 | 432 |
|
2130 | 433 |
helpTextFor:aView at:aDevicePointOrNil |
233 | 434 |
"retrieve helptext for aView as a string; |
100 | 435 |
walk along the views superView chain, |
436 |
asking models and views encountered while walking. |
|
437 |
The first one who understands and returns a nonNil answer to the |
|
233 | 438 |
#helpTextFor:at: or #helpTextFor: message ends this search and the |
100 | 439 |
returned string is returned." |
440 |
||
2130 | 441 |
|model app1 app2 text v sv topView domainPointOrNil| |
59 | 442 |
|
2130 | 443 |
aView transformation notNil ifTrue:[ |
444 |
domainPointOrNil := aView transformation applyInverseTo:aDevicePointOrNil. |
|
445 |
] ifFalse:[ |
|
446 |
domainPointOrNil := aDevicePointOrNil. |
|
447 |
]. |
|
448 |
||
449 |
text := self helpTextFromView:aView at:domainPointOrNil. |
|
2076 | 450 |
text notNil ifTrue:[ ^ text ]. |
451 |
||
1549
1b5274878f87
care for oldStyle views (StdSysViews)
Claus Gittinger <cg@exept.de>
parents:
1543
diff
changeset
|
452 |
((aView respondsTo:#application) |
1b5274878f87
care for oldStyle views (StdSysViews)
Claus Gittinger <cg@exept.de>
parents:
1543
diff
changeset
|
453 |
and:[ (app1 := aView application) notNil ]) ifTrue:[ |
2130 | 454 |
text := self helpTextFromModel:app1 view:aView at:domainPointOrNil. |
1549
1b5274878f87
care for oldStyle views (StdSysViews)
Claus Gittinger <cg@exept.de>
parents:
1543
diff
changeset
|
455 |
text notNil ifTrue:[ ^ text ]. |
1b5274878f87
care for oldStyle views (StdSysViews)
Claus Gittinger <cg@exept.de>
parents:
1543
diff
changeset
|
456 |
] ifFalse:[ |
1b5274878f87
care for oldStyle views (StdSysViews)
Claus Gittinger <cg@exept.de>
parents:
1543
diff
changeset
|
457 |
"/ old style (i.e. StandardSystemView ...) |
1b5274878f87
care for oldStyle views (StdSysViews)
Claus Gittinger <cg@exept.de>
parents:
1543
diff
changeset
|
458 |
topView := aView topView. |
1b5274878f87
care for oldStyle views (StdSysViews)
Claus Gittinger <cg@exept.de>
parents:
1543
diff
changeset
|
459 |
(topView notNil and:[topView ~~ aView]) ifTrue:[ |
2130 | 460 |
text := self helpTextFromModel:topView view:aView at:domainPointOrNil. |
1535
a9fcabccabb3
separated into flyByHelp and activeHelp
Claus Gittinger <cg@exept.de>
parents:
1502
diff
changeset
|
461 |
text notNil ifTrue:[ ^ text ]. |
a9fcabccabb3
separated into flyByHelp and activeHelp
Claus Gittinger <cg@exept.de>
parents:
1502
diff
changeset
|
462 |
] |
59 | 463 |
]. |
1549
1b5274878f87
care for oldStyle views (StdSysViews)
Claus Gittinger <cg@exept.de>
parents:
1543
diff
changeset
|
464 |
|
1535
a9fcabccabb3
separated into flyByHelp and activeHelp
Claus Gittinger <cg@exept.de>
parents:
1502
diff
changeset
|
465 |
(model := aView model) notNil ifTrue:[ |
a9fcabccabb3
separated into flyByHelp and activeHelp
Claus Gittinger <cg@exept.de>
parents:
1502
diff
changeset
|
466 |
model ~~ app1 ifTrue:[ |
2130 | 467 |
text := self helpTextFromModel:model view:aView at:domainPointOrNil. |
1535
a9fcabccabb3
separated into flyByHelp and activeHelp
Claus Gittinger <cg@exept.de>
parents:
1502
diff
changeset
|
468 |
text notNil ifTrue:[ ^ text ]. |
1502 | 469 |
]. |
1011
53514f2c18a7
also ask for helpTextAt:, when a motionEvent arrives.
Claus Gittinger <cg@exept.de>
parents:
728
diff
changeset
|
470 |
]. |
2130 | 471 |
text := self helpTextFromView:aView at:domainPointOrNil. |
1535
a9fcabccabb3
separated into flyByHelp and activeHelp
Claus Gittinger <cg@exept.de>
parents:
1502
diff
changeset
|
472 |
text notNil ifTrue:[ ^ text ]. |
59 | 473 |
|
474 |
"walk up the chain - maybe someone knows about its subview ..." |
|
475 |
v := aView. |
|
1502 | 476 |
[ |
477 |
(sv := v container) notNil |
|
478 |
] whileTrue:[ |
|
1535
a9fcabccabb3
separated into flyByHelp and activeHelp
Claus Gittinger <cg@exept.de>
parents:
1502
diff
changeset
|
479 |
(model := sv model) notNil ifTrue:[ |
2130 | 480 |
text := self helpTextFromModel:model view:aView at:domainPointOrNil. |
1502 | 481 |
text notNil ifTrue:[ ^ text ]. |
1535
a9fcabccabb3
separated into flyByHelp and activeHelp
Claus Gittinger <cg@exept.de>
parents:
1502
diff
changeset
|
482 |
]. |
a9fcabccabb3
separated into flyByHelp and activeHelp
Claus Gittinger <cg@exept.de>
parents:
1502
diff
changeset
|
483 |
text := self helpTextFromView:sv at:nil. |
a9fcabccabb3
separated into flyByHelp and activeHelp
Claus Gittinger <cg@exept.de>
parents:
1502
diff
changeset
|
484 |
text notNil ifTrue:[ ^ text ]. |
a9fcabccabb3
separated into flyByHelp and activeHelp
Claus Gittinger <cg@exept.de>
parents:
1502
diff
changeset
|
485 |
v := sv |
602 | 486 |
]. |
1535
a9fcabccabb3
separated into flyByHelp and activeHelp
Claus Gittinger <cg@exept.de>
parents:
1502
diff
changeset
|
487 |
|
100 | 488 |
(v notNil and:[v respondsTo:#application]) ifTrue:[ |
1535
a9fcabccabb3
separated into flyByHelp and activeHelp
Claus Gittinger <cg@exept.de>
parents:
1502
diff
changeset
|
489 |
(app2 := v application) notNil ifTrue:[ |
a9fcabccabb3
separated into flyByHelp and activeHelp
Claus Gittinger <cg@exept.de>
parents:
1502
diff
changeset
|
490 |
(app2 ~~ app1) ifTrue:[ |
2130 | 491 |
text := self helpTextFromModel:app2 view:aView at:domainPointOrNil. |
1535
a9fcabccabb3
separated into flyByHelp and activeHelp
Claus Gittinger <cg@exept.de>
parents:
1502
diff
changeset
|
492 |
text notNil ifTrue:[ ^ text ]. |
a9fcabccabb3
separated into flyByHelp and activeHelp
Claus Gittinger <cg@exept.de>
parents:
1502
diff
changeset
|
493 |
] |
233 | 494 |
] |
100 | 495 |
]. |
496 |
(v notNil and:[v respondsTo:#model]) ifTrue:[ |
|
233 | 497 |
(model := v model) notNil ifTrue:[ |
2130 | 498 |
text := self helpTextFromModel:model view:aView at:domainPointOrNil. |
1502 | 499 |
text notNil ifTrue:[ ^ text ]. |
233 | 500 |
] |
100 | 501 |
]. |
59 | 502 |
^ nil |
100 | 503 |
|
728 | 504 |
"Modified: / 31.8.1995 / 20:38:00 / claus" |
1011
53514f2c18a7
also ask for helpTextAt:, when a motionEvent arrives.
Claus Gittinger <cg@exept.de>
parents:
728
diff
changeset
|
505 |
"Modified: / 28.7.1998 / 01:47:27 / cg" |
100 | 506 |
! |
507 |
||
1535
a9fcabccabb3
separated into flyByHelp and activeHelp
Claus Gittinger <cg@exept.de>
parents:
1502
diff
changeset
|
508 |
helpTextFromModel:aModel view:aView at:aPointOrNil |
1502 | 509 |
"helper: ask aModel for its helpText." |
510 |
||
1996 | 511 |
|text text2| |
1502 | 512 |
|
1535
a9fcabccabb3
separated into flyByHelp and activeHelp
Claus Gittinger <cg@exept.de>
parents:
1502
diff
changeset
|
513 |
aPointOrNil notNil ifTrue:[ |
a9fcabccabb3
separated into flyByHelp and activeHelp
Claus Gittinger <cg@exept.de>
parents:
1502
diff
changeset
|
514 |
(aModel respondsTo:#helpTextFor:at:) ifTrue:[ |
a9fcabccabb3
separated into flyByHelp and activeHelp
Claus Gittinger <cg@exept.de>
parents:
1502
diff
changeset
|
515 |
text := aModel helpTextFor:aView at:aPointOrNil. |
2076 | 516 |
text notNil ifTrue:[^ text]. |
1535
a9fcabccabb3
separated into flyByHelp and activeHelp
Claus Gittinger <cg@exept.de>
parents:
1502
diff
changeset
|
517 |
]. |
a9fcabccabb3
separated into flyByHelp and activeHelp
Claus Gittinger <cg@exept.de>
parents:
1502
diff
changeset
|
518 |
]. |
2076 | 519 |
(aModel respondsTo:#helpTextFor:) ifTrue:[ |
520 |
text := aModel helpTextFor:aView. |
|
2685
9b6fd90dc9e2
changed #helpTextFromModel:view:at:
Claus Gittinger <cg@exept.de>
parents:
2473
diff
changeset
|
521 |
"/ cg: I dont understand this... |
9b6fd90dc9e2
changed #helpTextFromModel:view:at:
Claus Gittinger <cg@exept.de>
parents:
2473
diff
changeset
|
522 |
"/ text notNil ifTrue:[ |
9b6fd90dc9e2
changed #helpTextFromModel:view:at:
Claus Gittinger <cg@exept.de>
parents:
2473
diff
changeset
|
523 |
"/ text2 := self helpTextFromView:aView at:aPointOrNil. |
9b6fd90dc9e2
changed #helpTextFromModel:view:at:
Claus Gittinger <cg@exept.de>
parents:
2473
diff
changeset
|
524 |
"/ text2 notNil ifTrue:[ ^ text2 ]. |
9b6fd90dc9e2
changed #helpTextFromModel:view:at:
Claus Gittinger <cg@exept.de>
parents:
2473
diff
changeset
|
525 |
"/ ]. |
1502 | 526 |
]. |
1535
a9fcabccabb3
separated into flyByHelp and activeHelp
Claus Gittinger <cg@exept.de>
parents:
1502
diff
changeset
|
527 |
^ text |
a9fcabccabb3
separated into flyByHelp and activeHelp
Claus Gittinger <cg@exept.de>
parents:
1502
diff
changeset
|
528 |
! |
a9fcabccabb3
separated into flyByHelp and activeHelp
Claus Gittinger <cg@exept.de>
parents:
1502
diff
changeset
|
529 |
|
a9fcabccabb3
separated into flyByHelp and activeHelp
Claus Gittinger <cg@exept.de>
parents:
1502
diff
changeset
|
530 |
helpTextFromView:aView at:aPointOrNil |
a9fcabccabb3
separated into flyByHelp and activeHelp
Claus Gittinger <cg@exept.de>
parents:
1502
diff
changeset
|
531 |
"helper: ask aView for its helpText." |
a9fcabccabb3
separated into flyByHelp and activeHelp
Claus Gittinger <cg@exept.de>
parents:
1502
diff
changeset
|
532 |
|
a9fcabccabb3
separated into flyByHelp and activeHelp
Claus Gittinger <cg@exept.de>
parents:
1502
diff
changeset
|
533 |
|text| |
a9fcabccabb3
separated into flyByHelp and activeHelp
Claus Gittinger <cg@exept.de>
parents:
1502
diff
changeset
|
534 |
|
a9fcabccabb3
separated into flyByHelp and activeHelp
Claus Gittinger <cg@exept.de>
parents:
1502
diff
changeset
|
535 |
aPointOrNil notNil ifTrue:[ |
a9fcabccabb3
separated into flyByHelp and activeHelp
Claus Gittinger <cg@exept.de>
parents:
1502
diff
changeset
|
536 |
(aView respondsTo:#helpTextAt:) ifTrue:[ |
a9fcabccabb3
separated into flyByHelp and activeHelp
Claus Gittinger <cg@exept.de>
parents:
1502
diff
changeset
|
537 |
text := aView helpTextAt:aPointOrNil. |
a9fcabccabb3
separated into flyByHelp and activeHelp
Claus Gittinger <cg@exept.de>
parents:
1502
diff
changeset
|
538 |
]. |
1502 | 539 |
]. |
1535
a9fcabccabb3
separated into flyByHelp and activeHelp
Claus Gittinger <cg@exept.de>
parents:
1502
diff
changeset
|
540 |
text isNil ifTrue:[ |
a9fcabccabb3
separated into flyByHelp and activeHelp
Claus Gittinger <cg@exept.de>
parents:
1502
diff
changeset
|
541 |
(aView respondsTo:#helpText) ifTrue:[ |
a9fcabccabb3
separated into flyByHelp and activeHelp
Claus Gittinger <cg@exept.de>
parents:
1502
diff
changeset
|
542 |
text := aView helpText. |
a9fcabccabb3
separated into flyByHelp and activeHelp
Claus Gittinger <cg@exept.de>
parents:
1502
diff
changeset
|
543 |
]. |
a9fcabccabb3
separated into flyByHelp and activeHelp
Claus Gittinger <cg@exept.de>
parents:
1502
diff
changeset
|
544 |
]. |
a9fcabccabb3
separated into flyByHelp and activeHelp
Claus Gittinger <cg@exept.de>
parents:
1502
diff
changeset
|
545 |
^ text. |
2391 | 546 |
! ! |
547 |
||
548 |
!ActiveHelp methodsFor:'private'! |
|
1502 | 549 |
|
2914
18cff2d0daff
change to only expect one single method to be (re)defined:
Claus Gittinger <cg@exept.de>
parents:
2879
diff
changeset
|
550 |
handleMouseIn:aView x:x y:y |
18cff2d0daff
change to only expect one single method to be (re)defined:
Claus Gittinger <cg@exept.de>
parents:
2879
diff
changeset
|
551 |
"handle motion events - if the mousepointer left the |
18cff2d0daff
change to only expect one single method to be (re)defined:
Claus Gittinger <cg@exept.de>
parents:
2879
diff
changeset
|
552 |
previous helped view, hide the help" |
18cff2d0daff
change to only expect one single method to be (re)defined:
Claus Gittinger <cg@exept.de>
parents:
2879
diff
changeset
|
553 |
|
3292 | 554 |
Debugging ifTrue:['mouse in' infoPrintCR]. |
3323 | 555 |
true "aView topView isActive" ifFalse:[ |
556 |
Debugging ifTrue:[ |
|
557 |
'topview inactive' infoPrintCR |
|
558 |
]. |
|
3292 | 559 |
^ self |
560 |
]. |
|
561 |
(self interestedIn:aView) ifFalse:[ |
|
562 |
Debugging ifTrue:['not interested' infoPrintCR]. |
|
563 |
^ self |
|
564 |
]. |
|
2914
18cff2d0daff
change to only expect one single method to be (re)defined:
Claus Gittinger <cg@exept.de>
parents:
2879
diff
changeset
|
565 |
|
18cff2d0daff
change to only expect one single method to be (re)defined:
Claus Gittinger <cg@exept.de>
parents:
2879
diff
changeset
|
566 |
Error handle:[:ex | |
3320 | 567 |
InfoPrinting == true ifTrue:[ |
568 |
'---------------------' infoPrintCR. |
|
569 |
ex description infoPrintCR. |
|
570 |
ex suspendedContext fullPrintAll. |
|
571 |
]. |
|
2914
18cff2d0daff
change to only expect one single method to be (re)defined:
Claus Gittinger <cg@exept.de>
parents:
2879
diff
changeset
|
572 |
] do:[ |
18cff2d0daff
change to only expect one single method to be (re)defined:
Claus Gittinger <cg@exept.de>
parents:
2879
diff
changeset
|
573 |
|sensor| |
18cff2d0daff
change to only expect one single method to be (re)defined:
Claus Gittinger <cg@exept.de>
parents:
2879
diff
changeset
|
574 |
|
18cff2d0daff
change to only expect one single method to be (re)defined:
Claus Gittinger <cg@exept.de>
parents:
2879
diff
changeset
|
575 |
"/ self stopHelpDisplayProcess. |
3292 | 576 |
Debugging ifTrue:['hideIf' infoPrintCR]. |
2914
18cff2d0daff
change to only expect one single method to be (re)defined:
Claus Gittinger <cg@exept.de>
parents:
2879
diff
changeset
|
577 |
self hideIfPointerLeft:aView. |
18cff2d0daff
change to only expect one single method to be (re)defined:
Claus Gittinger <cg@exept.de>
parents:
2879
diff
changeset
|
578 |
|
18cff2d0daff
change to only expect one single method to be (re)defined:
Claus Gittinger <cg@exept.de>
parents:
2879
diff
changeset
|
579 |
"/ check again, in case the stop/hide changed something... |
18cff2d0daff
change to only expect one single method to be (re)defined:
Claus Gittinger <cg@exept.de>
parents:
2879
diff
changeset
|
580 |
(self interestedIn:aView) ifFalse:[ |
3292 | 581 |
Debugging ifTrue:['not interested2' infoPrintCR]. |
2914
18cff2d0daff
change to only expect one single method to be (re)defined:
Claus Gittinger <cg@exept.de>
parents:
2879
diff
changeset
|
582 |
^ self |
18cff2d0daff
change to only expect one single method to be (re)defined:
Claus Gittinger <cg@exept.de>
parents:
2879
diff
changeset
|
583 |
]. |
18cff2d0daff
change to only expect one single method to be (re)defined:
Claus Gittinger <cg@exept.de>
parents:
2879
diff
changeset
|
584 |
|
18cff2d0daff
change to only expect one single method to be (re)defined:
Claus Gittinger <cg@exept.de>
parents:
2879
diff
changeset
|
585 |
"/ if there is a sensor, let the view do it itself (in its process) |
18cff2d0daff
change to only expect one single method to be (re)defined:
Claus Gittinger <cg@exept.de>
parents:
2879
diff
changeset
|
586 |
(self targetViewInitiatesHelpViaSensor |
18cff2d0daff
change to only expect one single method to be (re)defined:
Claus Gittinger <cg@exept.de>
parents:
2879
diff
changeset
|
587 |
and:[ (sensor := aView sensor) notNil ]) |
18cff2d0daff
change to only expect one single method to be (re)defined:
Claus Gittinger <cg@exept.de>
parents:
2879
diff
changeset
|
588 |
ifTrue:[ |
18cff2d0daff
change to only expect one single method to be (re)defined:
Claus Gittinger <cg@exept.de>
parents:
2879
diff
changeset
|
589 |
sensor flushEventsFor:self withType:#initiateHelpFor:at:. |
18cff2d0daff
change to only expect one single method to be (re)defined:
Claus Gittinger <cg@exept.de>
parents:
2879
diff
changeset
|
590 |
sensor |
18cff2d0daff
change to only expect one single method to be (re)defined:
Claus Gittinger <cg@exept.de>
parents:
2879
diff
changeset
|
591 |
pushUserEvent:#initiateHelpFor:at: for:self |
18cff2d0daff
change to only expect one single method to be (re)defined:
Claus Gittinger <cg@exept.de>
parents:
2879
diff
changeset
|
592 |
withArguments:(Array with:aView with:(x @ y)). |
18cff2d0daff
change to only expect one single method to be (re)defined:
Claus Gittinger <cg@exept.de>
parents:
2879
diff
changeset
|
593 |
] ifFalse:[ |
18cff2d0daff
change to only expect one single method to be (re)defined:
Claus Gittinger <cg@exept.de>
parents:
2879
diff
changeset
|
594 |
self initiateHelpFor:aView at:(x @ y). |
18cff2d0daff
change to only expect one single method to be (re)defined:
Claus Gittinger <cg@exept.de>
parents:
2879
diff
changeset
|
595 |
] |
18cff2d0daff
change to only expect one single method to be (re)defined:
Claus Gittinger <cg@exept.de>
parents:
2879
diff
changeset
|
596 |
]. |
18cff2d0daff
change to only expect one single method to be (re)defined:
Claus Gittinger <cg@exept.de>
parents:
2879
diff
changeset
|
597 |
! |
18cff2d0daff
change to only expect one single method to be (re)defined:
Claus Gittinger <cg@exept.de>
parents:
2879
diff
changeset
|
598 |
|
138 | 599 |
hideIfPointerLeft:aView |
233 | 600 |
"hide help, if the pointer is not in aView" |
138 | 601 |
! |
602 |
||
719
17fba5c2a167
allow applications to start activeHelp for
Claus Gittinger <cg@exept.de>
parents:
696
diff
changeset
|
603 |
interestedIn:aView |
1033
3a56ba930052
care for nil view passed to #interestedIn.
Claus Gittinger <cg@exept.de>
parents:
1019
diff
changeset
|
604 |
"return true, if I am interested in aView (either listeningForAll, |
3a56ba930052
care for nil view passed to #interestedIn.
Claus Gittinger <cg@exept.de>
parents:
1019
diff
changeset
|
605 |
or in my list of apps)" |
719
17fba5c2a167
allow applications to start activeHelp for
Claus Gittinger <cg@exept.de>
parents:
696
diff
changeset
|
606 |
|
1106 | 607 |
|app aViewsTopView| |
719
17fba5c2a167
allow applications to start activeHelp for
Claus Gittinger <cg@exept.de>
parents:
696
diff
changeset
|
608 |
|
1535
a9fcabccabb3
separated into flyByHelp and activeHelp
Claus Gittinger <cg@exept.de>
parents:
1502
diff
changeset
|
609 |
aView isNil ifTrue:[^ false]. |
a9fcabccabb3
separated into flyByHelp and activeHelp
Claus Gittinger <cg@exept.de>
parents:
1502
diff
changeset
|
610 |
|
719
17fba5c2a167
allow applications to start activeHelp for
Claus Gittinger <cg@exept.de>
parents:
696
diff
changeset
|
611 |
listeningForAll == true ifTrue:[^ true]. |
1957 | 612 |
applicationsOrTopViewsWithHelp isEmptyOrNil ifTrue:[^ false]. |
1033
3a56ba930052
care for nil view passed to #interestedIn.
Claus Gittinger <cg@exept.de>
parents:
1019
diff
changeset
|
613 |
|
1106 | 614 |
aViewsTopView := aView topView. |
615 |
(applicationsOrTopViewsWithHelp includesIdentical:aViewsTopView) ifTrue:[^ true]. |
|
616 |
app := aViewsTopView application. |
|
719
17fba5c2a167
allow applications to start activeHelp for
Claus Gittinger <cg@exept.de>
parents:
696
diff
changeset
|
617 |
app notNil ifTrue:[ |
17fba5c2a167
allow applications to start activeHelp for
Claus Gittinger <cg@exept.de>
parents:
696
diff
changeset
|
618 |
(applicationsOrTopViewsWithHelp includesIdentical:app) ifTrue:[^ true] |
17fba5c2a167
allow applications to start activeHelp for
Claus Gittinger <cg@exept.de>
parents:
696
diff
changeset
|
619 |
]. |
17fba5c2a167
allow applications to start activeHelp for
Claus Gittinger <cg@exept.de>
parents:
696
diff
changeset
|
620 |
^ false |
17fba5c2a167
allow applications to start activeHelp for
Claus Gittinger <cg@exept.de>
parents:
696
diff
changeset
|
621 |
|
17fba5c2a167
allow applications to start activeHelp for
Claus Gittinger <cg@exept.de>
parents:
696
diff
changeset
|
622 |
"Created: / 26.10.1997 / 23:28:52 / cg" |
1033
3a56ba930052
care for nil view passed to #interestedIn.
Claus Gittinger <cg@exept.de>
parents:
1019
diff
changeset
|
623 |
"Modified: / 8.8.1998 / 13:36:19 / cg" |
2782 | 624 |
! |
625 |
||
626 |
targetViewInitiatesHelpViaSensor |
|
627 |
"true if the target view is asked to show the help via the sensor; |
|
628 |
false, if I do it myself synchronously." |
|
629 |
||
630 |
^ true |
|
59 | 631 |
! ! |
632 |
||
2391 | 633 |
!ActiveHelp methodsFor:'queries'! |
634 |
||
635 |
delayTime |
|
636 |
^ self class delayTime |
|
637 |
! |
|
638 |
||
639 |
showTime |
|
640 |
^ self class showTime |
|
641 |
! ! |
|
642 |
||
1768 | 643 |
!ActiveHelp methodsFor:'show & hide help'! |
59 | 644 |
|
645 |
hideHelp |
|
1535
a9fcabccabb3
separated into flyByHelp and activeHelp
Claus Gittinger <cg@exept.de>
parents:
1502
diff
changeset
|
646 |
"hide the help text - nothing done here" |
a9fcabccabb3
separated into flyByHelp and activeHelp
Claus Gittinger <cg@exept.de>
parents:
1502
diff
changeset
|
647 |
! |
a9fcabccabb3
separated into flyByHelp and activeHelp
Claus Gittinger <cg@exept.de>
parents:
1502
diff
changeset
|
648 |
|
a9fcabccabb3
separated into flyByHelp and activeHelp
Claus Gittinger <cg@exept.de>
parents:
1502
diff
changeset
|
649 |
hideHelpIgnoringErrors |
233 | 650 |
"hide the help text" |
651 |
||
1713
bc8a1d16e60f
Convert Object>>errorSignal -> Error
Stefan Vogel <sv@exept.de>
parents:
1657
diff
changeset
|
652 |
Error handle:[:ex | |
1535
a9fcabccabb3
separated into flyByHelp and activeHelp
Claus Gittinger <cg@exept.de>
parents:
1502
diff
changeset
|
653 |
ex description infoPrintCR. |
a9fcabccabb3
separated into flyByHelp and activeHelp
Claus Gittinger <cg@exept.de>
parents:
1502
diff
changeset
|
654 |
ex return |
a9fcabccabb3
separated into flyByHelp and activeHelp
Claus Gittinger <cg@exept.de>
parents:
1502
diff
changeset
|
655 |
] do:[ |
a9fcabccabb3
separated into flyByHelp and activeHelp
Claus Gittinger <cg@exept.de>
parents:
1502
diff
changeset
|
656 |
self hideHelp. |
59 | 657 |
]. |
658 |
! |
|
659 |
||
1535
a9fcabccabb3
separated into flyByHelp and activeHelp
Claus Gittinger <cg@exept.de>
parents:
1502
diff
changeset
|
660 |
initiateHelpFor:aView at:aPointOrNil |
634 | 661 |
"ask aView for helpText, passing x/y coordinates; |
662 |
start a timeout process to display this helpText after some delay; |
|
663 |
Normally used internally, but can also be used by widgets to force |
|
664 |
re-negotiation of the displayed helpText |
|
665 |
(for example in a menu, when the selection changes)" |
|
666 |
||
1657 | 667 |
self initiateHelpFor:aView at:aPointOrNil now:false |
637
8be64da7d932
views own help display is done immediately.
Claus Gittinger <cg@exept.de>
parents:
636
diff
changeset
|
668 |
|
8be64da7d932
views own help display is done immediately.
Claus Gittinger <cg@exept.de>
parents:
636
diff
changeset
|
669 |
"Modified: 28.6.1997 / 14:45:57 / cg" |
8be64da7d932
views own help display is done immediately.
Claus Gittinger <cg@exept.de>
parents:
636
diff
changeset
|
670 |
! |
8be64da7d932
views own help display is done immediately.
Claus Gittinger <cg@exept.de>
parents:
636
diff
changeset
|
671 |
|
1535
a9fcabccabb3
separated into flyByHelp and activeHelp
Claus Gittinger <cg@exept.de>
parents:
1502
diff
changeset
|
672 |
initiateHelpFor:aView at:aPointOrNil now:showItNow |
637
8be64da7d932
views own help display is done immediately.
Claus Gittinger <cg@exept.de>
parents:
636
diff
changeset
|
673 |
"ask aView for helpText, passing x/y coordinates; |
8be64da7d932
views own help display is done immediately.
Claus Gittinger <cg@exept.de>
parents:
636
diff
changeset
|
674 |
start a timeout process to display this helpText after some delay; |
8be64da7d932
views own help display is done immediately.
Claus Gittinger <cg@exept.de>
parents:
636
diff
changeset
|
675 |
Normally used internally, but can also be used by widgets to force |
8be64da7d932
views own help display is done immediately.
Claus Gittinger <cg@exept.de>
parents:
636
diff
changeset
|
676 |
re-negotiation of the displayed helpText |
8be64da7d932
views own help display is done immediately.
Claus Gittinger <cg@exept.de>
parents:
636
diff
changeset
|
677 |
(for example in a menu, when the selection changes)" |
8be64da7d932
views own help display is done immediately.
Claus Gittinger <cg@exept.de>
parents:
636
diff
changeset
|
678 |
|
696 | 679 |
|text top app| |
634 | 680 |
|
1143 | 681 |
(self interestedIn:aView) ifFalse:[ |
682 |
^ self |
|
683 |
]. |
|
1535
a9fcabccabb3
separated into flyByHelp and activeHelp
Claus Gittinger <cg@exept.de>
parents:
1502
diff
changeset
|
684 |
|
a9fcabccabb3
separated into flyByHelp and activeHelp
Claus Gittinger <cg@exept.de>
parents:
1502
diff
changeset
|
685 |
text := self helpTextFor:aView at:aPointOrNil. |
637
8be64da7d932
views own help display is done immediately.
Claus Gittinger <cg@exept.de>
parents:
636
diff
changeset
|
686 |
lastHelpText = text ifTrue:[ |
8be64da7d932
views own help display is done immediately.
Claus Gittinger <cg@exept.de>
parents:
636
diff
changeset
|
687 |
^ self |
8be64da7d932
views own help display is done immediately.
Claus Gittinger <cg@exept.de>
parents:
636
diff
changeset
|
688 |
]. |
8be64da7d932
views own help display is done immediately.
Claus Gittinger <cg@exept.de>
parents:
636
diff
changeset
|
689 |
|
1535
a9fcabccabb3
separated into flyByHelp and activeHelp
Claus Gittinger <cg@exept.de>
parents:
1502
diff
changeset
|
690 |
"/ let application show the help |
728 | 691 |
"/ (i.e. in its own information area) |
1535
a9fcabccabb3
separated into flyByHelp and activeHelp
Claus Gittinger <cg@exept.de>
parents:
1502
diff
changeset
|
692 |
"/ nil-text is also passed down, to give it a chance |
728 | 693 |
"/ to clean its infoDisplay. |
637
8be64da7d932
views own help display is done immediately.
Claus Gittinger <cg@exept.de>
parents:
636
diff
changeset
|
694 |
|
728 | 695 |
top := aView topView. |
696 |
(app := aView application) notNil ifTrue:[ |
|
1019
862f095da4ac
#showHelp:for: renamed to #showActiveHelp:for:
Claus Gittinger <cg@exept.de>
parents:
1011
diff
changeset
|
697 |
(app showActiveHelp:text for:aView) ifTrue:[ |
728 | 698 |
lastHelpText := text. |
632
844b1aaf3eeb
provide access to the current activeHelp instance
Claus Gittinger <cg@exept.de>
parents:
602
diff
changeset
|
699 |
] |
844b1aaf3eeb
provide access to the current activeHelp instance
Claus Gittinger <cg@exept.de>
parents:
602
diff
changeset
|
700 |
]. |
1535
a9fcabccabb3
separated into flyByHelp and activeHelp
Claus Gittinger <cg@exept.de>
parents:
1502
diff
changeset
|
701 |
! |
59 | 702 |
|
1535
a9fcabccabb3
separated into flyByHelp and activeHelp
Claus Gittinger <cg@exept.de>
parents:
1502
diff
changeset
|
703 |
stopHelpDisplayProcess |
59 | 704 |
! ! |
705 |
||
719
17fba5c2a167
allow applications to start activeHelp for
Claus Gittinger <cg@exept.de>
parents:
696
diff
changeset
|
706 |
!ActiveHelp methodsFor:'start & stop'! |
17fba5c2a167
allow applications to start activeHelp for
Claus Gittinger <cg@exept.de>
parents:
696
diff
changeset
|
707 |
|
17fba5c2a167
allow applications to start activeHelp for
Claus Gittinger <cg@exept.de>
parents:
696
diff
changeset
|
708 |
listenFor:anAppOrTopView |
17fba5c2a167
allow applications to start activeHelp for
Claus Gittinger <cg@exept.de>
parents:
696
diff
changeset
|
709 |
"start listening" |
17fba5c2a167
allow applications to start activeHelp for
Claus Gittinger <cg@exept.de>
parents:
696
diff
changeset
|
710 |
|
17fba5c2a167
allow applications to start activeHelp for
Claus Gittinger <cg@exept.de>
parents:
696
diff
changeset
|
711 |
applicationsOrTopViewsWithHelp isNil ifTrue:[ |
17fba5c2a167
allow applications to start activeHelp for
Claus Gittinger <cg@exept.de>
parents:
696
diff
changeset
|
712 |
applicationsOrTopViewsWithHelp := WeakIdentitySet new. |
17fba5c2a167
allow applications to start activeHelp for
Claus Gittinger <cg@exept.de>
parents:
696
diff
changeset
|
713 |
]. |
17fba5c2a167
allow applications to start activeHelp for
Claus Gittinger <cg@exept.de>
parents:
696
diff
changeset
|
714 |
applicationsOrTopViewsWithHelp add:anAppOrTopView. |
17fba5c2a167
allow applications to start activeHelp for
Claus Gittinger <cg@exept.de>
parents:
696
diff
changeset
|
715 |
super listen. |
639 | 716 |
|
719
17fba5c2a167
allow applications to start activeHelp for
Claus Gittinger <cg@exept.de>
parents:
696
diff
changeset
|
717 |
"Created: / 26.10.1997 / 23:20:47 / cg" |
17fba5c2a167
allow applications to start activeHelp for
Claus Gittinger <cg@exept.de>
parents:
696
diff
changeset
|
718 |
"Modified: / 26.10.1997 / 23:21:10 / cg" |
17fba5c2a167
allow applications to start activeHelp for
Claus Gittinger <cg@exept.de>
parents:
696
diff
changeset
|
719 |
! |
17fba5c2a167
allow applications to start activeHelp for
Claus Gittinger <cg@exept.de>
parents:
696
diff
changeset
|
720 |
|
17fba5c2a167
allow applications to start activeHelp for
Claus Gittinger <cg@exept.de>
parents:
696
diff
changeset
|
721 |
listenForAll |
17fba5c2a167
allow applications to start activeHelp for
Claus Gittinger <cg@exept.de>
parents:
696
diff
changeset
|
722 |
"start listening" |
17fba5c2a167
allow applications to start activeHelp for
Claus Gittinger <cg@exept.de>
parents:
696
diff
changeset
|
723 |
|
17fba5c2a167
allow applications to start activeHelp for
Claus Gittinger <cg@exept.de>
parents:
696
diff
changeset
|
724 |
listeningForAll := true. |
17fba5c2a167
allow applications to start activeHelp for
Claus Gittinger <cg@exept.de>
parents:
696
diff
changeset
|
725 |
super listen. |
17fba5c2a167
allow applications to start activeHelp for
Claus Gittinger <cg@exept.de>
parents:
696
diff
changeset
|
726 |
|
17fba5c2a167
allow applications to start activeHelp for
Claus Gittinger <cg@exept.de>
parents:
696
diff
changeset
|
727 |
"Modified: / 28.6.1997 / 15:07:02 / cg" |
17fba5c2a167
allow applications to start activeHelp for
Claus Gittinger <cg@exept.de>
parents:
696
diff
changeset
|
728 |
"Created: / 26.10.1997 / 23:19:30 / cg" |
17fba5c2a167
allow applications to start activeHelp for
Claus Gittinger <cg@exept.de>
parents:
696
diff
changeset
|
729 |
! |
17fba5c2a167
allow applications to start activeHelp for
Claus Gittinger <cg@exept.de>
parents:
696
diff
changeset
|
730 |
|
2391 | 731 |
start |
732 |
self listenForAll |
|
733 |
! |
|
734 |
||
735 |
stop |
|
736 |
self unlistenAll |
|
737 |
! |
|
738 |
||
719
17fba5c2a167
allow applications to start activeHelp for
Claus Gittinger <cg@exept.de>
parents:
696
diff
changeset
|
739 |
unlistenAll |
639 | 740 |
"stop listening" |
741 |
||
742 |
self hideHelp. |
|
1535
a9fcabccabb3
separated into flyByHelp and activeHelp
Claus Gittinger <cg@exept.de>
parents:
1502
diff
changeset
|
743 |
|
719
17fba5c2a167
allow applications to start activeHelp for
Claus Gittinger <cg@exept.de>
parents:
696
diff
changeset
|
744 |
listeningForAll := false. |
17fba5c2a167
allow applications to start activeHelp for
Claus Gittinger <cg@exept.de>
parents:
696
diff
changeset
|
745 |
applicationsOrTopViewsWithHelp size == 0 ifTrue:[ |
1535
a9fcabccabb3
separated into flyByHelp and activeHelp
Claus Gittinger <cg@exept.de>
parents:
1502
diff
changeset
|
746 |
self unlisten. |
719
17fba5c2a167
allow applications to start activeHelp for
Claus Gittinger <cg@exept.de>
parents:
696
diff
changeset
|
747 |
] |
17fba5c2a167
allow applications to start activeHelp for
Claus Gittinger <cg@exept.de>
parents:
696
diff
changeset
|
748 |
|
17fba5c2a167
allow applications to start activeHelp for
Claus Gittinger <cg@exept.de>
parents:
696
diff
changeset
|
749 |
"Created: / 26.10.1997 / 23:14:17 / cg" |
17fba5c2a167
allow applications to start activeHelp for
Claus Gittinger <cg@exept.de>
parents:
696
diff
changeset
|
750 |
"Modified: / 26.10.1997 / 23:23:04 / cg" |
17fba5c2a167
allow applications to start activeHelp for
Claus Gittinger <cg@exept.de>
parents:
696
diff
changeset
|
751 |
! |
639 | 752 |
|
719
17fba5c2a167
allow applications to start activeHelp for
Claus Gittinger <cg@exept.de>
parents:
696
diff
changeset
|
753 |
unlistenFor:anApp |
17fba5c2a167
allow applications to start activeHelp for
Claus Gittinger <cg@exept.de>
parents:
696
diff
changeset
|
754 |
"stop listening for an app" |
17fba5c2a167
allow applications to start activeHelp for
Claus Gittinger <cg@exept.de>
parents:
696
diff
changeset
|
755 |
|
17fba5c2a167
allow applications to start activeHelp for
Claus Gittinger <cg@exept.de>
parents:
696
diff
changeset
|
756 |
self hideHelp. |
1535
a9fcabccabb3
separated into flyByHelp and activeHelp
Claus Gittinger <cg@exept.de>
parents:
1502
diff
changeset
|
757 |
|
1543 | 758 |
applicationsOrTopViewsWithHelp isNil ifFalse:[ |
759 |
applicationsOrTopViewsWithHelp remove:anApp ifAbsent:nil. |
|
760 |
]. |
|
726 | 761 |
listeningForAll == true ifFalse:[ |
719
17fba5c2a167
allow applications to start activeHelp for
Claus Gittinger <cg@exept.de>
parents:
696
diff
changeset
|
762 |
applicationsOrTopViewsWithHelp size == 0 ifTrue:[ |
1535
a9fcabccabb3
separated into flyByHelp and activeHelp
Claus Gittinger <cg@exept.de>
parents:
1502
diff
changeset
|
763 |
self unlisten. |
719
17fba5c2a167
allow applications to start activeHelp for
Claus Gittinger <cg@exept.de>
parents:
696
diff
changeset
|
764 |
] |
17fba5c2a167
allow applications to start activeHelp for
Claus Gittinger <cg@exept.de>
parents:
696
diff
changeset
|
765 |
] |
17fba5c2a167
allow applications to start activeHelp for
Claus Gittinger <cg@exept.de>
parents:
696
diff
changeset
|
766 |
|
17fba5c2a167
allow applications to start activeHelp for
Claus Gittinger <cg@exept.de>
parents:
696
diff
changeset
|
767 |
"Created: / 26.10.1997 / 23:22:42 / cg" |
726 | 768 |
"Modified: / 29.10.1997 / 15:48:34 / cg" |
639 | 769 |
! ! |
770 |
||
338
071f92621e3b
oops - catching the terminateSignal is no good idea
Claus Gittinger <cg@exept.de>
parents:
330
diff
changeset
|
771 |
!ActiveHelp class methodsFor:'documentation'! |
138 | 772 |
|
2779
b608ded19ff2
changed: #handleMouseIn:x:y:
Claus Gittinger <cg@exept.de>
parents:
2688
diff
changeset
|
773 |
version_CVS |
3323 | 774 |
^ '$Header: /cvs/stx/stx/libview2/ActiveHelp.st,v 1.77 2014-04-01 12:44:58 cg Exp $' |
138 | 775 |
! ! |
3197 | 776 |
|
3320 | 777 |
|
778 |
ActiveHelp initialize! |