Rev 1444 contains what I hope are the fixes to the recent tree
problems.  The real problem was in g.app.gui.widget_name and its
helpers, w.getName.  That's very good news:

1. There is no need for more than one eventFilter class.

2. The ugly "headline hack" in eventFilter is gone.

Even before starting today's work I was pretty sure that trying to
"catch" key events during transition was the source of crashes.  Every
key generates 2 or three separate key events, and **they must all be
handled exactly the same way**.  Thus, it is hopeless to have any
tests that depend on some kind of state variable.

3. The state ivars tree._editWidget, tree._editWidgetPosition and
tree._editWidgetWrapper no longer affect program control at all.  They
are set in leoQtTree.editLabel, and they are cleared when ending a
headline, downstream of the call to c.endEditLabel in Leo's core,
which is itself part of the base-class tree.select logic.  Thus, Leo
will clear the previous state variables **no matter how a new node is
selected.**

4. These changes fixed the ctrl-i bug, and some other key-related
weirdnesses.

I've only been using the new code a few minutes, but things are
looking good.

Edward

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to