author | Claus Gittinger <cg@exept.de> |
Fri, 19 Jul 2019 11:53:07 +0200 | |
changeset 4308 | e62f74b5bb34 |
parent 4307 | 1b0e3ba1d905 |
child 4313 | d390ecfb7670 |
permissions | -rw-r--r-- |
1802 | 1 |
" |
2 |
COPYRIGHT (c) 2001 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 |
" |
|
1536 | 12 |
"{ Package: 'stx:libview2' }" |
13 |
||
3656 | 14 |
"{ NameSpace: Smalltalk }" |
15 |
||
1536 | 16 |
ActiveHelp subclass:#FlyByHelp |
4119 | 17 |
instanceVariableNames:'currentFrame currentView currentHelpView showProcess closeProcess' |
18 |
classVariableNames:'MaxNumberOfLines MaxNumberOfColumns' |
|
19 |
poolDictionaries:'' |
|
20 |
category:'Interface-Help' |
|
1536 | 21 |
! |
22 |
||
4231 | 23 |
Query subclass:#HelpKeyInsteadOfHelpTextQuery |
24 |
instanceVariableNames:'' |
|
25 |
classVariableNames:'' |
|
26 |
poolDictionaries:'' |
|
27 |
privateIn:FlyByHelp |
|
28 |
! |
|
29 |
||
1802 | 30 |
!FlyByHelp class methodsFor:'documentation'! |
31 |
||
32 |
copyright |
|
33 |
" |
|
34 |
COPYRIGHT (c) 2001 by eXept Software AG |
|
35 |
All Rights Reserved |
|
36 |
||
37 |
This software is furnished under a license and may be used |
|
38 |
only in accordance with the terms of that license and with the |
|
39 |
inclusion of the above copyright notice. This software may not |
|
40 |
be provided or otherwise made available to, or used by, any |
|
41 |
other person. No title to or ownership of the software is |
|
42 |
hereby transferred. |
|
43 |
" |
|
1893 | 44 |
! |
45 |
||
4055 | 46 |
documentation |
47 |
" |
|
48 |
an instance of me is used to provide tooltips |
|
49 |
(sigh: smalltalk was ahead of its time in the early 90's: |
|
50 |
initially called 'activeHelp', then renamed to 'flyByHelp' |
|
51 |
and now commonly known as tooltip). |
|
52 |
||
53 |
I will watch the mouse movements via an event hook, and determine |
|
54 |
where the mouse pointer is. Then ask the underlying view about its |
|
55 |
helpText and display it in a little floating popup view. |
|
56 |
||
57 |
The hool is installed via: |
|
58 |
FlyByHelp start |
|
59 |
and possibly deactivated/uninstalled via: |
|
60 |
FlyByHelp stop |
|
61 |
||
62 |
There can be only one FlyByHelp at any time - the start/stop methods |
|
63 |
assure that. |
|
64 |
" |
|
65 |
! |
|
66 |
||
1893 | 67 |
examples |
68 |
" |
|
3220 | 69 |
UserPreferences current toolTipShapeStyle:nil |
70 |
UserPreferences current toolTipShapeStyle:#cartoon |
|
71 |
||
1893 | 72 |
FlyByHelp isActive |
73 |
||
74 |
FlyByHelp stop |
|
75 |
FlyByHelp start |
|
76 |
" |
|
1802 | 77 |
! ! |
1536 | 78 |
|
2692 | 79 |
!FlyByHelp class methodsFor:'accessing'! |
80 |
||
81 |
currentlyShownView |
|
2846
e90ba00f9df1
changed: #currentlyShownView
Claus Gittinger <cg@exept.de>
parents:
2826
diff
changeset
|
82 |
TheOneAndOnlyHelpListener isNil ifTrue:[^ nil]. |
2692 | 83 |
^ TheOneAndOnlyHelpListener currentlyShownView |
2846
e90ba00f9df1
changed: #currentlyShownView
Claus Gittinger <cg@exept.de>
parents:
2826
diff
changeset
|
84 |
|
e90ba00f9df1
changed: #currentlyShownView
Claus Gittinger <cg@exept.de>
parents:
2826
diff
changeset
|
85 |
"Modified: / 09-06-2010 / 16:35:48 / cg" |
3255 | 86 |
! |
87 |
||
4231 | 88 |
helpKeyInsteadOfHelpTextQuery |
89 |
^ HelpKeyInsteadOfHelpTextQuery |
|
90 |
||
91 |
"Created: / 22-02-2019 / 09:38:18 / Claus Gittinger" |
|
92 |
! |
|
93 |
||
3255 | 94 |
maxNumberOfColumns |
95 |
^ MaxNumberOfColumns ? 200 |
|
96 |
! |
|
97 |
||
98 |
maxNumberOfLines |
|
99 |
^ MaxNumberOfLines ? 40 |
|
2692 | 100 |
! ! |
101 |
||
2684 | 102 |
!FlyByHelp methodsFor:'defaults'! |
103 |
||
104 |
flyByHelpTimeoutMillis |
|
105 |
"abort flyby help text generation, if no text can be generated within that |
|
106 |
time delta. This is used to abort long-lasting parsing/scanning/analysis in |
|
107 |
large methods when the mouse is moved over some syntactic constructs, and |
|
108 |
it takes too long to parse... |
|
109 |
The returned time is given in ms" |
|
110 |
||
111 |
^ 300 |
|
112 |
! ! |
|
113 |
||
4233 | 114 |
!FlyByHelp methodsFor:'developer menu'! |
115 |
||
116 |
openDeveloperMenuFor:aView at:aPoint |
|
117 |
"with CTRL+SHIFT, this menu appears" |
|
118 |
||
119 |
|app helpText helpKey| |
|
120 |
||
121 |
app := aView topView application. |
|
4308 | 122 |
app isNil ifTrue:[ Transcript showCR:'no app for view: %1' with:aView. ^ self ]. |
123 |
||
4233 | 124 |
app enqueueDelayedAction:[ |
125 |
|editor m canDefineTranslationForLabel canDefineTranslationForHelpText| |
|
126 |
||
4290 | 127 |
canDefineTranslationForHelpText := lastHelpText notEmptyOrNil. |
128 |
canDefineTranslationForHelpText := canDefineTranslationForHelpText or:[ (helpText := aView helpTextAt:aPoint) notEmptyOrNil]. |
|
129 |
canDefineTranslationForHelpText := canDefineTranslationForHelpText or:[ (helpText := aView helpText) notEmptyOrNil]. |
|
130 |
canDefineTranslationForHelpText := canDefineTranslationForHelpText or:[ (helpKey := aView helpKey) notNil]. |
|
131 |
canDefineTranslationForHelpText := canDefineTranslationForHelpText or:[ (helpText := app helpTextFor:aView) notEmptyOrNil ]. |
|
132 |
||
4233 | 133 |
m := Menu new. |
134 |
m addItem:(MenuItem |
|
4308 | 135 |
label:(('>> ',(aView fullName ? 'unnamed'),' <<') withColor:Color grey)). |
136 |
m addSeparator. |
|
137 |
||
138 |
m addItem:(MenuItem |
|
4290 | 139 |
label: 'Copy Helptext' |
140 |
itemValue:[ |
|
141 |
|package key | |
|
142 |
||
143 |
key := (lastHelpText ? helpText ? helpKey) asString string. |
|
144 |
aView topView setClipboardText:key. |
|
145 |
] |
|
146 |
enabled:canDefineTranslationForHelpText). |
|
147 |
m addSeparator. |
|
148 |
||
149 |
m addItem:(MenuItem |
|
4233 | 150 |
label: 'Edit Resources' |
151 |
itemValue:[ |
|
152 |
app enqueueDelayedAction:[ |
|
153 |
app withWaitCursorDo:[ |
|
154 |
editor := Tools::InternationalLanguageTranslationEditor |
|
155 |
openOnPackage:((aView topView application ? aView) class package). |
|
156 |
editor selectOrAddKey:(lastHelpText storeString withoutCRs). |
|
157 |
Transcript showCR:'help text is: %1' with:lastHelpText storeString withoutCRs. |
|
158 |
||
159 |
]. |
|
160 |
]. |
|
161 |
]). |
|
162 |
m addItem:(MenuItem |
|
163 |
label: 'Browse Resources' |
|
164 |
itemValue:[ |
|
165 |
app enqueueDelayedAction:[ |
|
166 |
app withWaitCursorDo:[ |
|
167 |
FileBrowser default |
|
168 |
openOn:(app class projectDefinitionClass |
|
169 |
packageDirectory / 'resources'). |
|
170 |
]. |
|
171 |
]. |
|
172 |
]). |
|
173 |
||
174 |
canDefineTranslationForLabel := |
|
175 |
[ |
|
176 |
(aView isKindOf:Label) or:[aView respondsTo:#label] |
|
177 |
]. |
|
178 |
||
179 |
m addItem:(MenuItem |
|
180 |
label: 'Define Translation for Label...' |
|
181 |
itemValue:[ |
|
182 |
|package key | |
|
183 |
||
184 |
key := aView label asString string. |
|
185 |
package := app class package. |
|
186 |
ResourcePack defineResourceFor:key package:package. |
|
187 |
] |
|
188 |
enabled:canDefineTranslationForLabel). |
|
189 |
m addItem:(MenuItem |
|
190 |
label: 'Define Translation for Helptext...' |
|
191 |
itemValue:[ |
|
192 |
|package key | |
|
193 |
||
194 |
key := (lastHelpText ? helpText ? helpKey) asString string. |
|
195 |
package := app class package. |
|
196 |
ResourcePack defineResourceFor:key package:package. |
|
197 |
] |
|
198 |
enabled:canDefineTranslationForHelpText). |
|
199 |
||
200 |
m addSeparator. |
|
201 |
m addItem:(MenuItem |
|
202 |
label: 'Browse Application' |
|
203 |
itemValue:[ SystemBrowser default openInClass:aView application class]). |
|
204 |
||
205 |
m addItem:(MenuItem |
|
206 |
label: 'UI Painter' |
|
207 |
itemValue:[ UIPainter openOnClass:aView application class andSelector:#windowSpec]). |
|
208 |
||
209 |
aView application ~~ app ifTrue:[ |
|
210 |
m addSeparator. |
|
211 |
m addItem:(MenuItem |
|
212 |
label: 'Browse Top Application' |
|
213 |
itemValue:[ SystemBrowser default openInClass:app class]). |
|
214 |
||
215 |
m addItem:(MenuItem |
|
216 |
label: 'UI Painter on Top Application' |
|
217 |
itemValue:[ UIPainter openOnClass:app class andSelector:#windowSpec]). |
|
218 |
]. |
|
219 |
||
220 |
m showAtPointer. |
|
221 |
]. |
|
222 |
||
223 |
"Created: / 22-02-2019 / 09:32:35 / Claus Gittinger" |
|
4308 | 224 |
"Modified: / 19-07-2019 / 11:51:52 / Claus Gittinger" |
4233 | 225 |
! ! |
226 |
||
2392 | 227 |
!FlyByHelp methodsFor:'event handling'! |
1540 | 228 |
|
2474 | 229 |
buttonMotion:buttonAndModifierState x:x y:y view:aView |
4252 | 230 |
"/ DebuggingEvents := true |
231 |
"/ DebuggingEvents := false |
|
232 |
DebuggingEvents == true ifTrue:[ |
|
233 |
('%1: ==== ButtonMotion view:%2' |
|
4281 | 234 |
bindWith:self className |
4252 | 235 |
with:aView) infoPrintCR. |
236 |
]. |
|
237 |
||
2519 | 238 |
aView == currentHelpView ifTrue:[ |
239 |
"/ the help-bubble itself |
|
240 |
^ false |
|
241 |
]. |
|
242 |
||
4055 | 243 |
"/ don't start tooltip, if this view is not active. |
244 |
"/ The following line does not work, because motion events are reported for the current focus-view, |
|
3321 | 245 |
"/ which is always active. Must check after we have determined the view under the pointer |
3675 | 246 |
"/ aView topView isActive ifFalse:[^ false]. |
2477
b009e0b51999
suppress tooltip for inactive (lower) windows
Claus Gittinger <cg@exept.de>
parents:
2474
diff
changeset
|
247 |
|
2474 | 248 |
^ super buttonMotion:buttonAndModifierState x:x y:y view:aView |
4281 | 249 |
|
250 |
"Modified: / 28-06-2019 / 08:43:54 / Claus Gittinger" |
|
1540 | 251 |
! |
252 |
||
2611
f578b9c43a6f
handle escape key to close flyByHelp
Claus Gittinger <cg@exept.de>
parents:
2521
diff
changeset
|
253 |
buttonPress:button x:x y:y view:aView |
3198 | 254 |
|prevView| |
255 |
||
4252 | 256 |
"/ DebuggingEvents := true |
257 |
"/ DebuggingEvents := false |
|
258 |
DebuggingEvents == true ifTrue:[ |
|
259 |
('%1: ButtonPress view:%2' |
|
4281 | 260 |
bindWith:self className |
4252 | 261 |
with:aView) infoPrintCR. |
262 |
]. |
|
263 |
||
3198 | 264 |
"/ hideHelp nils the currentView |
265 |
"/ we restore it, so the tooltip is not shown again for this view |
|
266 |
"/ until the mouse really leaves the view |
|
267 |
"/ let's call this the "do-not-show-in-this-view mode" |
|
268 |
prevView := currentView. |
|
2978
4358a9302b95
changed: #buttonPress:x:y:view:
Claus Gittinger <cg@exept.de>
parents:
2925
diff
changeset
|
269 |
self hideHelp. |
3198 | 270 |
currentView := prevView. |
271 |
||
272 |
^ false |
|
2978
4358a9302b95
changed: #buttonPress:x:y:view:
Claus Gittinger <cg@exept.de>
parents:
2925
diff
changeset
|
273 |
|
4358a9302b95
changed: #buttonPress:x:y:view:
Claus Gittinger <cg@exept.de>
parents:
2925
diff
changeset
|
274 |
"Modified: / 23-12-2011 / 20:37:28 / cg" |
4281 | 275 |
"Modified: / 28-06-2019 / 08:43:57 / Claus Gittinger" |
2611
f578b9c43a6f
handle escape key to close flyByHelp
Claus Gittinger <cg@exept.de>
parents:
2521
diff
changeset
|
276 |
! |
f578b9c43a6f
handle escape key to close flyByHelp
Claus Gittinger <cg@exept.de>
parents:
2521
diff
changeset
|
277 |
|
f578b9c43a6f
handle escape key to close flyByHelp
Claus Gittinger <cg@exept.de>
parents:
2521
diff
changeset
|
278 |
keyPress:key x:x y:y view:aView |
4308 | 279 |
"care for the special keys: |
280 |
Ctrl (while help is shown) |
|
281 |
L-Shift+R-Shift+Ctrl (while nothing is shown) |
|
282 |
" |
|
283 |
||
4226 | 284 |
<resource: #keyboard (#Escape #Control #Shift)> |
3216 | 285 |
|
4228 | 286 |
|prevView text| |
3198 | 287 |
|
4252 | 288 |
"/ DebuggingEvents := true |
289 |
"/ DebuggingEvents := false |
|
4307 | 290 |
"/ Debugging := true. |
291 |
"/ Debugging := false. |
|
4252 | 292 |
DebuggingEvents == true ifTrue:[ |
4307 | 293 |
'-----' infoPrintCR. |
294 |
('%1: KeyPress view:%2 (currentHelpView=%3)' |
|
4281 | 295 |
bindWith:self className |
4307 | 296 |
with:aView |
297 |
with:currentHelpView) infoPrintCR. |
|
4252 | 298 |
]. |
2885
a70144d85a81
changed: #keyPress:x:y:view:
Claus Gittinger <cg@exept.de>
parents:
2884
diff
changeset
|
299 |
currentHelpView notNil ifTrue:[ |
4290 | 300 |
key == $§ ifTrue:[ |
2979
306456bdfb61
comment in: #keyPress:x:y:view:
Claus Gittinger <cg@exept.de>
parents:
2978
diff
changeset
|
301 |
"/ generate a line suitable for the resources file (a null translation) |
3216 | 302 |
"/ into the clipboard; makes it easy to add missing translations to a .rs file, |
4082 | 303 |
"/ by pressing paragraph whenever you see an untranslated helptext |
4228 | 304 |
text := (lastHelpText storeString withoutCRs, ' ' , lastHelpText storeString withoutCRs). |
305 |
aView setClipboardText:text. |
|
2612 | 306 |
self hideHelp. |
4230 | 307 |
^ false |
2612 | 308 |
]. |
2979
306456bdfb61
comment in: #keyPress:x:y:view:
Claus Gittinger <cg@exept.de>
parents:
2978
diff
changeset
|
309 |
key == #Escape ifTrue:[ |
3198 | 310 |
prevView := currentView. |
2979
306456bdfb61
comment in: #keyPress:x:y:view:
Claus Gittinger <cg@exept.de>
parents:
2978
diff
changeset
|
311 |
self hideHelp. |
3198 | 312 |
currentView := prevView. |
4230 | 313 |
^ false |
2885
a70144d85a81
changed: #keyPress:x:y:view:
Claus Gittinger <cg@exept.de>
parents:
2884
diff
changeset
|
314 |
]. |
4228 | 315 |
(#(#'Shift' #'Shift_L' #'Shift_R') includes:key) ifTrue:[ |
316 |
aView device ctrlDown ifTrue:[ |
|
4230 | 317 |
self hideHelp. |
4231 | 318 |
self openDeveloperMenuFor:aView at:x@y |
4230 | 319 |
]. |
320 |
^ false |
|
4228 | 321 |
]. |
322 |
||
323 |
(#(#'Control' #'Control_L' #'Control_R') includes:key) ifTrue:[ |
|
4226 | 324 |
"/ reopen showing the key |
325 |
self initiateHelpFor:aView at:(x@y) now:true. |
|
4230 | 326 |
^ false |
4226 | 327 |
]. |
328 |
||
329 |
(#('Shift' #'Shift_L' #'Shift_R' #'Control' #'Control_L' #'Control_R') includes:key) ifTrue:[ |
|
3216 | 330 |
"/ do not close on those... |
331 |
^ false |
|
332 |
]. |
|
4307 | 333 |
] ifFalse:[ |
334 |
"/ both shifts AND then ctrl... |
|
335 |
(#(#'Control' #'Control_L' #'Control_R') includes:key) ifTrue:[ |
|
336 |
aView device leftShiftDown ifTrue:[ |
|
337 |
aView device rightShiftDown ifTrue:[ |
|
338 |
self hideHelp. |
|
339 |
self openDeveloperMenuFor:aView at:x@y |
|
340 |
]. |
|
341 |
]. |
|
342 |
^ false |
|
343 |
]. |
|
4226 | 344 |
]. |
3198 | 345 |
|
346 |
"/ hideHelp nils the currentView |
|
347 |
"/ we restore it, so the tooltip is not shown again for this view |
|
348 |
"/ until the mouse really leaves the view |
|
349 |
"/ let's call this the "do-not-show-in-this-view mode" |
|
350 |
prevView := currentView. |
|
351 |
self hideHelpIgnoringErrors. |
|
352 |
currentView := prevView. |
|
353 |
||
354 |
^ false |
|
355 |
"/ ^ super keyPress:key x:x y:y view:aView |
|
2884
7d37f5a0719e
changed: #keyPress:x:y:view:
Claus Gittinger <cg@exept.de>
parents:
2878
diff
changeset
|
356 |
|
2979
306456bdfb61
comment in: #keyPress:x:y:view:
Claus Gittinger <cg@exept.de>
parents:
2978
diff
changeset
|
357 |
"Modified (format): / 25-12-2011 / 10:25:23 / cg" |
4082 | 358 |
"Modified (format): / 16-04-2018 / 16:53:15 / stefan" |
4308 | 359 |
"Modified (comment): / 19-07-2019 / 11:43:52 / Claus Gittinger" |
4226 | 360 |
! |
361 |
||
362 |
keyRelease:key x:x y:y view:aView |
|
363 |
<resource: #keyboard (#Control)> |
|
364 |
||
4252 | 365 |
"/ DebuggingEvents := true |
366 |
"/ DebuggingEvents := false |
|
367 |
DebuggingEvents == true ifTrue:[ |
|
368 |
('%1: KeyRelease view:%2' |
|
4281 | 369 |
bindWith:self className |
4252 | 370 |
with:aView) infoPrintCR. |
371 |
]. |
|
4226 | 372 |
currentHelpView notNil ifTrue:[ |
373 |
(#(#'Control' #'Control_L' #'Control_R') includes:key) ifTrue:[ |
|
374 |
"/ reopen showing the text |
|
375 |
self initiateHelpFor:aView at:(x@y) now:true. |
|
376 |
^ true |
|
377 |
]. |
|
378 |
(#('Shift' #'Shift_L' #'Shift_R' #'Control' #'Control_L' #'Control_R') includes:key) ifTrue:[ |
|
379 |
"/ do not close on those... |
|
380 |
^ false |
|
381 |
]. |
|
382 |
]. |
|
383 |
^ super keyRelease:key x:x y:y view:aView |
|
384 |
||
385 |
"Created: / 20-02-2019 / 11:26:19 / Claus Gittinger" |
|
4281 | 386 |
"Modified: / 28-06-2019 / 08:44:06 / Claus Gittinger" |
2611
f578b9c43a6f
handle escape key to close flyByHelp
Claus Gittinger <cg@exept.de>
parents:
2521
diff
changeset
|
387 |
! |
f578b9c43a6f
handle escape key to close flyByHelp
Claus Gittinger <cg@exept.de>
parents:
2521
diff
changeset
|
388 |
|
2521
7e51aa294156
care for mousewheel while showing help
Claus Gittinger <cg@exept.de>
parents:
2519
diff
changeset
|
389 |
mouseWheelMotion:state x:x y:y amount:amount deltaTime:dTime view:aView |
4252 | 390 |
"/ DebuggingEvents := true |
391 |
"/ DebuggingEvents := false |
|
392 |
DebuggingEvents == true ifTrue:[ |
|
393 |
('%1: MouseWheel view:%2' |
|
4281 | 394 |
bindWith:self className |
4252 | 395 |
with:aView) infoPrintCR. |
396 |
]. |
|
2521
7e51aa294156
care for mousewheel while showing help
Claus Gittinger <cg@exept.de>
parents:
2519
diff
changeset
|
397 |
currentHelpView notNil ifTrue:[ |
7e51aa294156
care for mousewheel while showing help
Claus Gittinger <cg@exept.de>
parents:
2519
diff
changeset
|
398 |
self handleMouseIn:aView x:x y:y. |
7e51aa294156
care for mousewheel while showing help
Claus Gittinger <cg@exept.de>
parents:
2519
diff
changeset
|
399 |
]. |
7e51aa294156
care for mousewheel while showing help
Claus Gittinger <cg@exept.de>
parents:
2519
diff
changeset
|
400 |
^ false |
4281 | 401 |
|
402 |
"Modified: / 28-06-2019 / 08:44:10 / Claus Gittinger" |
|
2521
7e51aa294156
care for mousewheel while showing help
Claus Gittinger <cg@exept.de>
parents:
2519
diff
changeset
|
403 |
! |
7e51aa294156
care for mousewheel while showing help
Claus Gittinger <cg@exept.de>
parents:
2519
diff
changeset
|
404 |
|
1540 | 405 |
pointerLeave:state view:aView |
4252 | 406 |
"/ DebuggingEvents := true |
407 |
"/ DebuggingEvents := false |
|
408 |
DebuggingEvents == true ifTrue:[ |
|
409 |
('%1: **** PointerLeave view:%2' |
|
4281 | 410 |
bindWith:self className |
4252 | 411 |
with:aView) infoPrintCR. |
412 |
]. |
|
413 |
||
2611
f578b9c43a6f
handle escape key to close flyByHelp
Claus Gittinger <cg@exept.de>
parents:
2521
diff
changeset
|
414 |
aView == currentHelpView ifTrue:[^ true]. |
3198 | 415 |
|
416 |
"/ clear the do-not-show-in-this-view mode (see keyPress) |
|
417 |
"/ (currentHelpView isNil and:[currentView notNil]) ifTrue:[currentView := nil]. |
|
418 |
||
2611
f578b9c43a6f
handle escape key to close flyByHelp
Claus Gittinger <cg@exept.de>
parents:
2521
diff
changeset
|
419 |
^ super pointerLeave:state view:aView |
4281 | 420 |
|
421 |
"Modified: / 28-06-2019 / 08:44:13 / Claus Gittinger" |
|
1540 | 422 |
! ! |
423 |
||
2392 | 424 |
!FlyByHelp methodsFor:'help texts'! |
1536 | 425 |
|
426 |
helpTextFromModel:aModel view:aView at:aPointOrNil |
|
427 |
"helper: ask aModel for its helpText." |
|
428 |
||
429 |
|text| |
|
430 |
||
4048 | 431 |
(aPointOrNil notNil and:[aModel respondsTo:#helpTextFor:at:]) ifTrue:[ |
432 |
text := aModel helpTextFor:aView at:aPointOrNil. |
|
4121 | 433 |
text notNil ifTrue:[ |
434 |
"/ Transcript showCR:aModel. |
|
435 |
"/ Transcript showCR:'via model-text'; showCR:text. |
|
436 |
^ text |
|
437 |
]. |
|
1536 | 438 |
]. |
4048 | 439 |
(aModel respondsTo:#helpTextFor:) ifTrue:[ |
440 |
text := aModel helpTextFor:aView. |
|
4121 | 441 |
text notNil ifTrue:[ |
442 |
"/ Transcript showCR:aModel. |
|
443 |
"/ Transcript showCR:'via model-text'; showCR:text. |
|
444 |
^ text |
|
445 |
]. |
|
1536 | 446 |
]. |
2754 | 447 |
^ nil |
4040 | 448 |
|
449 |
"Modified: / 09-01-2018 / 17:35:26 / stefan" |
|
4121 | 450 |
"Modified: / 11-06-2018 / 09:53:40 / Claus Gittinger" |
1536 | 451 |
! |
452 |
||
453 |
helpTextFromView:aView at:aPointOrNil |
|
454 |
"helper: ask aView for its helpText." |
|
455 |
||
2754 | 456 |
|text key app| |
1536 | 457 |
|
4121 | 458 |
"/ is there any view which does not understand helpTextAt: ??? |
4048 | 459 |
(aPointOrNil notNil and:[aView respondsTo:#helpTextAt:]) ifTrue:[ |
460 |
text := aView helpTextAt:aPointOrNil. |
|
4121 | 461 |
text notNil ifTrue:[ |
462 |
"/ Transcript showCR:'via helpTextAt:'; showCR:text. |
|
463 |
^ text |
|
464 |
]. |
|
1536 | 465 |
]. |
4121 | 466 |
"/ is there any view which does not understand helpText ??? |
4048 | 467 |
(aView respondsTo:#helpText) ifTrue:[ |
468 |
text := aView helpText. |
|
4121 | 469 |
text notNil ifTrue:[ |
470 |
"/ Transcript showCR:'via helpText'; showCR:text. |
|
4220 | 471 |
^ text value |
4121 | 472 |
]. |
2754 | 473 |
]. |
3804 | 474 |
"/ to be enabled in next release... |
475 |
"/ (aView superView notNil |
|
4048 | 476 |
"/ and:[aView superView respondsTo:#helpTextFor:]) ifTrue:[ |
477 |
"/ text := aView superView helpTextFor:aView. |
|
3804 | 478 |
"/ text notNil ifTrue:[^ text]. |
479 |
"/ ]. |
|
4121 | 480 |
|
481 |
"/ is there any view which does not understand helpKey ??? |
|
2754 | 482 |
(aView respondsTo:#helpKey) ifTrue:[ |
483 |
key := aView helpKey. |
|
484 |
key notNil ifTrue:[ |
|
485 |
app := aView application. |
|
486 |
app isNil ifTrue:[ |
|
4175 | 487 |
|topView topViewsHelpSpec| |
488 |
||
3763 | 489 |
"/ special case for oldStyle Dialog subclasses. |
4175 | 490 |
topView := aView topView. |
491 |
(topViewsHelpSpec := topView helpSpec) notNil ifTrue:[ |
|
492 |
text := topViewsHelpSpec at:key ifAbsent:nil. |
|
3763 | 493 |
text notNil ifTrue:[ |
4121 | 494 |
"/ Transcript showCR:'via topViewspec+helpKey'; showCR:text. |
4175 | 495 |
^ topView resources stringWithCRs:text. |
3763 | 496 |
]. |
497 |
]. |
|
2754 | 498 |
app := Error handle:[:ex | nil] do:[ aView windowGroup mainGroup application ]. |
499 |
]. |
|
500 |
app notNil ifTrue:[ |
|
4121 | 501 |
text := app helpTextForKey:key. |
502 |
true "text notNil" ifTrue:[ |
|
503 |
"/ Transcript showCR:'via helpKey+helpTextForKey:'; showCR:text. |
|
504 |
^ text |
|
505 |
]. |
|
2754 | 506 |
]. |
4121 | 507 |
text := aView resources string:key. |
508 |
true "(text notNil and:[text ~= key])" ifTrue:[ |
|
509 |
"/ Transcript showCR:'via helpKey'; showCR:text. |
|
4110 | 510 |
^ text |
511 |
] |
|
1536 | 512 |
]. |
513 |
]. |
|
2754 | 514 |
^ nil. |
4040 | 515 |
|
516 |
"Modified: / 09-01-2018 / 17:38:42 / stefan" |
|
4111 | 517 |
"Modified (format): / 07-06-2018 / 09:51:41 / sr" |
4220 | 518 |
"Modified: / 07-02-2019 / 19:18:39 / Claus Gittinger" |
2392 | 519 |
! ! |
520 |
||
4119 | 521 |
!FlyByHelp methodsFor:'queries'! |
522 |
||
523 |
currentlyShownView |
|
524 |
^ currentHelpView |
|
525 |
! |
|
526 |
||
527 |
toolTipFollowsMouse |
|
528 |
"if true, the tooltip-window moves with the pointer |
|
529 |
so that it stays away from (does not cover) the mouse pointer" |
|
530 |
||
531 |
^ false |
|
532 |
||
533 |
"Modified: / 06-06-2018 / 17:37:19 / Claus Gittinger" |
|
534 |
! ! |
|
535 |
||
536 |
!FlyByHelp methodsFor:'show & hide help'! |
|
537 |
||
538 |
activeHelpViewForApplication:applicationOrNil text:helpText onDevice:aDevice |
|
539 |
applicationOrNil notNil ifTrue:[ |
|
540 |
^ applicationOrNil activeHelpViewFor:helpText onDevice:aDevice |
|
541 |
]. |
|
542 |
^ ActiveHelpView for:helpText onDevice:aDevice. |
|
543 |
||
544 |
" |
|
545 |
(ActiveHelpView for:'Hello' onDevice:Display) open |
|
546 |
" |
|
547 |
! |
|
548 |
||
549 |
hideHelp |
|
550 |
"hide the help text" |
|
551 |
||
552 |
|p| |
|
553 |
||
554 |
"/ lastHelpText := nil. |
|
555 |
self stopHelpDisplayProcess. |
|
556 |
lastHelpText := nil. |
|
557 |
||
558 |
currentHelpView notNil ifTrue:[ |
|
559 |
[ |
|
560 |
currentHelpView notNil ifTrue:[ |
|
561 |
currentHelpView destroy. |
|
562 |
currentHelpView := nil. |
|
563 |
currentView := nil. |
|
564 |
] |
|
565 |
] valueUninterruptably |
|
566 |
]. |
|
567 |
currentFrame := nil. |
|
568 |
(p := closeProcess) notNil ifTrue:[ |
|
569 |
closeProcess := nil. |
|
570 |
p terminate. |
|
571 |
] |
|
572 |
||
573 |
"Modified: / 28-06-1997 / 14:03:50 / cg" |
|
574 |
"Modified: / 16-04-2018 / 16:51:01 / stefan" |
|
575 |
! |
|
1536 | 576 |
|
577 |
hideIfPointerLeft:aView |
|
578 |
"hide help, if the pointer is not in aView" |
|
579 |
||
4119 | 580 |
|helpFrame whereOnScreen| |
1536 | 581 |
|
4119 | 582 |
(helpFrame := currentFrame) notNil ifTrue:[ |
1536 | 583 |
whereOnScreen := aView graphicsDevice pointerPosition. |
584 |
||
4119 | 585 |
((helpFrame insetBy:1@1) containsPoint:whereOnScreen) ifFalse:[ |
1536 | 586 |
self hideHelp. |
4119 | 587 |
] ifTrue:[ |
588 |
pointerPositionAtShowTime notNil ifTrue:[ |
|
589 |
(whereOnScreen dist:pointerPositionAtShowTime) > 10 ifTrue:[ |
|
590 |
self hideHelp. |
|
591 |
]. |
|
592 |
]. |
|
593 |
]. |
|
1536 | 594 |
]. |
595 |
||
4082 | 596 |
"Modified: / 28-05-1996 / 20:18:28 / cg" |
597 |
"Modified: / 16-04-2018 / 16:59:48 / stefan" |
|
4119 | 598 |
"Modified: / 08-06-2018 / 10:30:04 / Claus Gittinger" |
1536 | 599 |
! |
600 |
||
601 |
initiateHelpFor:aView at:aPointOrNil now:showItNow |
|
602 |
"ask aView for helpText, passing x/y coordinates; |
|
603 |
start a timeout process to display this helpText after some delay; |
|
604 |
Normally used internally, but can also be used by widgets to force |
|
605 |
re-negotiation of the displayed helpText |
|
606 |
(for example in a menu, when the selection changes)" |
|
607 |
||
4110 | 608 |
|text delayTime| |
1536 | 609 |
|
4252 | 610 |
Debugging ifTrue:[ |
4281 | 611 |
('%1: initiateHelpFor:at:now: %2' bindWith:self className with:aView) infoPrintCR. |
4252 | 612 |
]. |
1536 | 613 |
(self interestedIn:aView) ifFalse:[ |
4237 | 614 |
Debugging ifTrue:[ |
4252 | 615 |
('%1: not interested' bindWith:self class name) infoPrintCR |
4237 | 616 |
]. |
1536 | 617 |
^ self |
618 |
]. |
|
619 |
||
2680 | 620 |
"/ do not allow for more than 200 ms to be spent in the |
2679
552847065fb3
car not to hog the cpu by flyByHelp processing
Claus Gittinger <cg@exept.de>
parents:
2651
diff
changeset
|
621 |
"/ helpText gatherer (the codeView parses the code for the variable under the cursor) |
552847065fb3
car not to hog the cpu by flyByHelp processing
Claus Gittinger <cg@exept.de>
parents:
2651
diff
changeset
|
622 |
[ |
2826
74bd82edee5a
changed: #initiateHelpFor:at:now:
Claus Gittinger <cg@exept.de>
parents:
2799
diff
changeset
|
623 |
Error handle:[:ex | |
4252 | 624 |
('%1: [warning]: error while asking for helpText: %2' bindWith:self class name with:ex description) errorPrintCR. |
625 |
'-------------------------' errorPrintCR. |
|
626 |
ex suspendedContext fullPrintAllOn:(Transcript ? Stderr). |
|
2872
ea7e6fe01727
comment/format in: #initiateHelpFor:at:now:
Claus Gittinger <cg@exept.de>
parents:
2848
diff
changeset
|
627 |
"/ self halt. |
2826
74bd82edee5a
changed: #initiateHelpFor:at:now:
Claus Gittinger <cg@exept.de>
parents:
2799
diff
changeset
|
628 |
] do:[ |
4231 | 629 |
HelpKeyInsteadOfHelpTextQuery answer:(aView device ctrlDown) do:[ |
630 |
text := self helpTextFor:aView at:aPointOrNil. |
|
631 |
]. |
|
2826
74bd82edee5a
changed: #initiateHelpFor:at:now:
Claus Gittinger <cg@exept.de>
parents:
2799
diff
changeset
|
632 |
]. |
3656 | 633 |
] valueWithWatchDog:[ |
4252 | 634 |
('%1 [info]: flyBy text generation took too long' bindWith:self class name) infoPrintCR. |
3656 | 635 |
^ self |
636 |
] afterMilliseconds:(self flyByHelpTimeoutMillis). |
|
2679
552847065fb3
car not to hog the cpu by flyByHelp processing
Claus Gittinger <cg@exept.de>
parents:
2651
diff
changeset
|
637 |
|
4110 | 638 |
false ifTrue:[ |
639 |
(text notNil and:[text isEmpty]) ifTrue:[ |
|
640 |
Logger warning:('empty help from: ',aView class printString) |
|
641 |
] ifFalse:[ |
|
642 |
text isEmptyOrNil ifTrue:[ |
|
643 |
Logger warning:('no help from: ',aView class printString) |
|
644 |
]. |
|
645 |
]. |
|
646 |
]. |
|
647 |
||
4252 | 648 |
(lastHelpText = text and:[lastHelpWidget == aView]) ifTrue:[ |
649 |
"/ Debugging := true |
|
4237 | 650 |
Debugging == true ifTrue:[ |
651 |
'same text: ' infoPrint. text infoPrintCR. |
|
652 |
]. |
|
4082 | 653 |
self toolTipFollowsMouse ifFalse:[ |
4252 | 654 |
Debugging == true ifTrue:[ |
655 |
'tooltip does not follow mouse: ' infoPrint. text infoPrintCR. |
|
656 |
]. |
|
4082 | 657 |
^ self |
2392 | 658 |
] |
1536 | 659 |
]. |
660 |
||
4110 | 661 |
((text size > 0) or:[text notNil and:[text isString not]]) ifTrue:[ |
2778 | 662 |
(showItNow not and:[(delayTime := self delayTime) > 0]) ifTrue:[ |
1536 | 663 |
self stopHelpDisplayProcess. |
2392 | 664 |
showProcess := |
665 |
[ |
|
2680 | 666 |
Delay waitForSeconds:delayTime. |
2774
7894ba397774
changed: #initiateHelpFor:at:now:
Claus Gittinger <cg@exept.de>
parents:
2754
diff
changeset
|
667 |
[ |
3766 | 668 |
aView device notNil ifTrue:[ |
669 |
aView device anyButtonPressed ifFalse:[ |
|
670 |
showProcess := nil. |
|
671 |
self showHelp:text for:aView |
|
672 |
] |
|
673 |
]. |
|
2774
7894ba397774
changed: #initiateHelpFor:at:now:
Claus Gittinger <cg@exept.de>
parents:
2754
diff
changeset
|
674 |
] ensure:[ |
7894ba397774
changed: #initiateHelpFor:at:now:
Claus Gittinger <cg@exept.de>
parents:
2754
diff
changeset
|
675 |
showProcess := nil. |
2680 | 676 |
] |
2392 | 677 |
] forkAt:(Processor userSchedulingPriority + 1). |
1536 | 678 |
] ifFalse:[ |
679 |
self showHelp:text for:aView |
|
680 |
] |
|
1542 | 681 |
] ifFalse:[ |
4252 | 682 |
Debugging == true ifTrue:[ |
683 |
'empty text: ' infoPrint. text infoPrintCR. |
|
684 |
]. |
|
1542 | 685 |
self hideHelp |
1536 | 686 |
]. |
2872
ea7e6fe01727
comment/format in: #initiateHelpFor:at:now:
Claus Gittinger <cg@exept.de>
parents:
2848
diff
changeset
|
687 |
|
2901
fed697afcef8
changed: #initiateHelpFor:at:now:
Claus Gittinger <cg@exept.de>
parents:
2900
diff
changeset
|
688 |
"Modified: / 22-03-2011 / 19:10:28 / cg" |
4082 | 689 |
"Modified: / 16-04-2018 / 12:20:33 / stefan" |
4281 | 690 |
"Modified: / 28-06-2019 / 08:44:00 / Claus Gittinger" |
1536 | 691 |
! |
692 |
||
693 |
showHelp:aHelpText for:view |
|
694 |
"show the help text for aView" |
|
695 |
||
3786 | 696 |
|wg applicationOrNil org p v device helpTextShown textLines |
3334 | 697 |
helpViewWidth helpViewHeight usableWidth monitorBounds usableHeight |
4119 | 698 |
showTime cursorView pos pointerPosition| |
1536 | 699 |
|
2781 | 700 |
"/ thisContext fullPrintAllOn:Transcript. |
2651 | 701 |
(wg := view windowGroup) notNil ifTrue:[ |
702 |
wg isInModalLoop ifTrue:[ |
|
703 |
wg isModal ifFalse:[ |
|
4252 | 704 |
Debugging ifTrue:[ 'FlyByHelp: not modal' infoPrintCR ]. |
2651 | 705 |
^ self |
706 |
]. |
|
2628
03a41945fb37
do not show flyBy help for a view,
Claus Gittinger <cg@exept.de>
parents:
2612
diff
changeset
|
707 |
]. |
03a41945fb37
do not show flyBy help for a view,
Claus Gittinger <cg@exept.de>
parents:
2612
diff
changeset
|
708 |
]. |
03a41945fb37
do not show flyBy help for a view,
Claus Gittinger <cg@exept.de>
parents:
2612
diff
changeset
|
709 |
|
3786 | 710 |
device := view graphicsDevice. |
4119 | 711 |
pointerPosition := device pointerPosition. |
712 |
||
3418 | 713 |
"/ mouse still over that view? |
4119 | 714 |
cursorView := device viewFromPoint:pointerPosition. |
3418 | 715 |
cursorView ~~ view ifTrue:[ |
4252 | 716 |
Debugging ifTrue:[ 'FlyByHelp: mouse no longer in view' infoPrintCR ]. |
3418 | 717 |
^ self |
718 |
]. |
|
719 |
||
4082 | 720 |
(view == currentView and:[lastHelpText = aHelpText]) ifTrue:[ |
4252 | 721 |
Debugging ifTrue:[ 'FlyByHelp: same text and widget' infoPrintCR ]. |
4082 | 722 |
^ self |
1536 | 723 |
]. |
4119 | 724 |
|
725 |
pointerPositionAtShowTime := pointerPosition. |
|
3228 | 726 |
lastHelpWidget := view. |
1536 | 727 |
lastHelpText := aHelpText. |
3251
afc7d588b25b
handle key press and close help.
Claus Gittinger <cg@exept.de>
parents:
3248
diff
changeset
|
728 |
helpTextShown := aHelpText. |
4129 | 729 |
|
3257 | 730 |
"/ the text originator must already have generated CRs; |
4114 | 731 |
"/ no longer done here (otherwise, we could not generate tooltips with Windows filenames in it) |
3681 | 732 |
textLines := helpTextShown isStringCollection |
733 |
ifTrue:[helpTextShown] |
|
3767 | 734 |
ifFalse:[ |
735 |
helpTextShown isString |
|
4129 | 736 |
ifTrue:[helpTextShown asCollectionOfLines asStringCollection] |
3767 | 737 |
ifFalse:[nil]]. |
738 |
textLines notNil ifTrue:[ |
|
739 |
textLines size > (self class maxNumberOfLines) ifTrue:[ |
|
740 |
textLines := (textLines copyTo:(self class maxNumberOfLines)) copyWith:'...' |
|
741 |
]. |
|
742 |
textLines := textLines collect:[:l | l contractAtEndTo:(self class maxNumberOfColumns)]. |
|
743 |
helpTextShown := textLines asString. |
|
3251
afc7d588b25b
handle key press and close help.
Claus Gittinger <cg@exept.de>
parents:
3248
diff
changeset
|
744 |
]. |
3767 | 745 |
|
2780 | 746 |
(p := closeProcess) notNil ifTrue:[ |
747 |
closeProcess := nil. |
|
1536 | 748 |
p terminate. |
749 |
]. |
|
750 |
currentHelpView notNil ifTrue:[ |
|
751 |
self hideHelp |
|
752 |
]. |
|
753 |
||
3770 | 754 |
"/ Transcript showCR:helpTextShown storeString. |
3769 | 755 |
helpTextShown isEmptyOrNil ifTrue:[^ self]. |
756 |
||
1536 | 757 |
org := view originRelativeTo:nil. |
758 |
currentFrame := org extent:view extent. |
|
2848 | 759 |
org := org + (view extent // 2). |
1536 | 760 |
|
3248
d72c8e4f7684
more control over the shape style
Claus Gittinger <cg@exept.de>
parents:
3247
diff
changeset
|
761 |
wg notNil ifTrue:[ applicationOrNil := wg application ]. |
3786 | 762 |
v := self activeHelpViewForApplication:applicationOrNil text:helpTextShown onDevice:device. |
3251
afc7d588b25b
handle key press and close help.
Claus Gittinger <cg@exept.de>
parents:
3248
diff
changeset
|
763 |
v perform:#controllingHelpListener: with:self ifNotUnderstood:[]. |
1536 | 764 |
|
2848 | 765 |
helpViewWidth := v width. |
766 |
helpViewHeight := v height. |
|
1677
dc49ab70b762
open helpView on the correcdt device
Claus Gittinger <cg@exept.de>
parents:
1657
diff
changeset
|
767 |
|
4082 | 768 |
"https://expeccoalm.exept.de/D226383: keep the help window away from the pointer under any circumstances |
769 |
(especially when the window touches the bottom or the right edge of the screen). |
|
770 |
When the pointer is no longer in the current window, the help window is closed!!" |
|
771 |
pos := device pointerPosition. |
|
772 |
org := pos + (10@18). |
|
3786 | 773 |
monitorBounds := device monitorBoundsAt:org. |
3114 | 774 |
usableWidth := monitorBounds width - 2. |
3786 | 775 |
usableHeight := device usableHeightAt:org. |
3114 | 776 |
|
777 |
helpViewWidth > usableWidth ifTrue:[v width:(helpViewWidth := usableWidth)]. |
|
3247 | 778 |
helpViewHeight > usableHeight ifTrue:[v height:(helpViewHeight := usableHeight)]. |
3114 | 779 |
|
780 |
(org x + helpViewWidth) > (monitorBounds left + usableWidth) ifTrue:[ |
|
4082 | 781 |
org x:(monitorBounds left + usableWidth - helpViewWidth). |
1536 | 782 |
]. |
3114 | 783 |
(org y + helpViewHeight) > (monitorBounds top + usableHeight) ifTrue:[ |
4082 | 784 |
org y:(monitorBounds top + usableHeight - helpViewHeight). |
1536 | 785 |
]. |
4082 | 786 |
((org extent:v extent) containsPoint:pos) ifTrue:[ |
787 |
"pointer would be in the help window (see comment above). |
|
788 |
Help window is at the lower right edge. Move it to the left of the pointer" |
|
789 |
org x:(pos x - helpViewWidth - 20). |
|
790 |
]. |
|
1536 | 791 |
v origin:org. |
792 |
v realize. |
|
793 |
currentHelpView := v. |
|
2392 | 794 |
currentView := view. |
1536 | 795 |
|
3334 | 796 |
showTime := self showTime. |
4082 | 797 |
(showTime > 0) ifTrue:[ |
3959 | 798 |
p := |
799 |
[ |
|
1546 | 800 |
[ |
4082 | 801 |
Delay waitForSeconds:showTime. |
2392 | 802 |
[ |
2780 | 803 |
|v| |
804 |
(v := currentHelpView) notNil ifTrue:[ |
|
2392 | 805 |
currentHelpView := nil. |
2780 | 806 |
v destroy. |
2392 | 807 |
] |
808 |
] valueUninterruptably |
|
809 |
] ifCurtailed:[ |
|
3959 | 810 |
(p == closeProcess) ifTrue:[ closeProcess := nil ]. |
2392 | 811 |
]. |
812 |
] newProcess. |
|
3959 | 813 |
p priority:(Processor userSchedulingPriority + 1). |
814 |
closeProcess := p. |
|
815 |
p resume. |
|
2392 | 816 |
]. |
1536 | 817 |
|
1963
fb6663696d20
removed withCRs in showHelp:
Claus Gittinger <cg@exept.de>
parents:
1893
diff
changeset
|
818 |
"Modified: / 31-08-1995 / 19:20:45 / claus" |
3959 | 819 |
"Modified: / 06-06-2017 / 15:06:41 / cg" |
4082 | 820 |
"Modified (format): / 16-04-2018 / 17:29:10 / stefan" |
4119 | 821 |
"Modified: / 08-06-2018 / 10:28:32 / Claus Gittinger" |
4129 | 822 |
"Modified (format): / 14-06-2018 / 08:29:43 / Claus Gittinger" |
1536 | 823 |
! |
824 |
||
825 |
stopHelpDisplayProcess |
|
826 |
|p| |
|
827 |
||
2680 | 828 |
(p := showProcess) notNil ifTrue:[ |
829 |
showProcess := nil. |
|
1536 | 830 |
p terminate. |
831 |
]. |
|
832 |
||
833 |
"Created: 28.6.1997 / 14:03:17 / cg" |
|
834 |
! ! |
|
835 |
||
4231 | 836 |
!FlyByHelp::HelpKeyInsteadOfHelpTextQuery class methodsFor:'documentation'! |
837 |
||
838 |
documentation |
|
839 |
" |
|
840 |
kludge to force application to return the helpKey instead of the |
|
841 |
help text. |
|
842 |
Answering true will tell the ApplicationModel to return the key. |
|
843 |
(see AppModel >> helpTextForKey:) |
|
844 |
||
845 |
[author:] |
|
846 |
Claus Gittinger |
|
847 |
||
848 |
[instance variables:] |
|
849 |
||
850 |
[class variables:] |
|
851 |
||
852 |
[see also:] |
|
853 |
||
854 |
" |
|
855 |
! ! |
|
856 |
||
857 |
!FlyByHelp::HelpKeyInsteadOfHelpTextQuery methodsFor:'defaults'! |
|
858 |
||
859 |
defaultResumeValue |
|
860 |
^ false |
|
861 |
||
862 |
"Created: / 22-02-2019 / 09:48:28 / Claus Gittinger" |
|
863 |
! ! |
|
864 |
||
1536 | 865 |
!FlyByHelp class methodsFor:'documentation'! |
866 |
||
2979
306456bdfb61
comment in: #keyPress:x:y:view:
Claus Gittinger <cg@exept.de>
parents:
2978
diff
changeset
|
867 |
version |
3656 | 868 |
^ '$Header$' |
2979
306456bdfb61
comment in: #keyPress:x:y:view:
Claus Gittinger <cg@exept.de>
parents:
2978
diff
changeset
|
869 |
! |
306456bdfb61
comment in: #keyPress:x:y:view:
Claus Gittinger <cg@exept.de>
parents:
2978
diff
changeset
|
870 |
|
2754 | 871 |
version_CVS |
3656 | 872 |
^ '$Header$' |
1536 | 873 |
! ! |
3114 | 874 |