On Mon, 8 Apr 2013 11:36:27 -0500
Kent Tenney <[email protected]> wrote:

> the functions called by these hooks write 3 attributes to the UA dict
> which is a member of the vnode: p.v.u
> - str_ctime: time the node was created
> - str_mtime: time the node was last modified
> - str_atime: time the node was last viewed  (got focus / accessed)
>   - this is probably buggy, I think it is set any time the headline is 
> selected
>     the intent is that it doesn't change unless focus goes to the body.
>     I don't know how to do this differentiation

I think it would require a new hook, but it seems like it's a hook that
should exist, "on-body-selected" firing when focus moves in to the
body of the selected node.  There may also be times it should fire when
a new node is selected, if it's possible to select a new node in such
a way as to keep focus in the body, but I can't think how that could
happen off hand.

I've finished up my hook usage analysis script (undoc.py) at
https://github.com/ktenney/duluth-sprint

Output pasted below - the activate hook refers to activation of the Leo
window, not the body.

DOCUMENTED HOOKS NOT FOUND IN SOURCE
color-optional-markup
create-popup-menu-items
init-color-markup
menu-update
scan-directives

UNDOCUMENTED HOOKS
                 activate plugins/qtGui.py:8016
  after-create-leo-frame2 core/leoApp.py:2596
               after-edit core/leoAtFile.py:918
             after-shadow core/leoAtFile.py:972
               boxrclick1 plugins/baseNativeTree.py:450
               boxrclick2 plugins/baseNativeTree.py:451
         childrenModified core/leoCommands.py:654
          contentModified core/leoCommands.py:659
        create-popup-menu plugins/baseNativeTree.py:684
               deactivate plugins/qtGui.py:8035
         draw-sub-outline plugins/swing_gui.py:5285
              headdclick1 plugins/baseNativeTree.py:732
              headdclick2 plugins/baseNativeTree.py:734
           iconctrlclick1 plugins/baseNativeTree.py:554
           iconctrlclick2 plugins/baseNativeTree.py:556
                    open0 core/leoApp.py:2557
              outlinedrop plugins/qtGui.py:5763
             rclick-popup plugins/baseNativeTree.py:461
          scrolledMessage plugins/qtGui.py:7927

HOOK USAGE
  1 after-auto
 42 after-create-leo-frame
  2 after-create-leo-frame2
  2 all *** NO doHook() ***
  3 before-create-leo-frame
  1 bodykey1
  1 bodykey2
  1 childrenModified
  2 command1
  1 command2
  1 contentModified
  7 create-optional-menus
  3 end1
  3 headkey2
  8 icondclick1
  3 icondclick2
  1 iconrclick2
 10 idle
  3 menu2
  1 open1
  3 open2
  1 outlinedrop
  3 save1
  3 save2
  1 scan-directives *** NO doHook() ***
  1 scrolledMessage
  3 select1
  5 select2
  1 select3
  3 start1
 13 start2
  1 unselect1
  0 @url1
  0 @url2
  0 activate
  0 after-edit
  0 after-redraw-outline
  0 after-shadow
  0 bodyclick1
  0 bodyclick2
  0 bodydclick1
  0 bodydclick2
  0 bodyrclick1
  0 bodyrclick2
  0 boxclick1
  0 boxclick2
  0 boxrclick1
  0 boxrclick2
  0 clear-all-marks
  0 clear-mark
  0 close-frame
  0 create-popup-menu
  0 deactivate
  0 drag1
  0 drag2
  0 dragging1
  0 dragging2
  0 draw-outline-box
  0 draw-outline-icon
  0 draw-outline-node
  0 draw-outline-text-box
  0 draw-sub-outline
  0 enable-popup-menu-items
  0 enddrag1
  0 enddrag2
  0 headclick1
  0 headclick2
  0 headdclick1
  0 headdclick2
  0 headkey1
  0 headrclick1
  0 headrclick2
  0 hoist-changed
  0 hypercclick1
  0 hypercclick2
  0 hyperenter1
  0 hyperenter2
  0 hyperleave1
  0 hyperleave2
  0 iconclick1
  0 iconclick2
  0 iconctrlclick1
  0 iconctrlclick2
  0 iconrclick1
  0 menu1
  0 new
  0 open0
  0 openwith1
  0 openwith2
  0 rclick-popup
  0 recentfiles1
  0 recentfiles2
  0 redraw-entire-outline
  0 set-mark
  0 show-popup-menu
  0 unselect2

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/leo-editor?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to