On Thursday, May 11, 2017 at 9:22:50 AM UTC-5, Edward K. Ream wrote:

*Summary*
>
... 

> Implementing the CursesTree class involves dynamically creating headline 
> wrappers (CursesLineEditWrapper objects) for all nodes of the outline, 
> visible or not. The CursesTree class will maintain Python dicts referencing 
> these headline wrappers so the wrapper for any position p can be found 
> without searching the outline.
>

Focusing on process is the easy way to understand what I'm actually going 
to do:

1. Copy the entire class LeoQtTree into cursesGui2.py.

2. Create new copies of the "must be defined in subclasses" methods listed 
above.

3. Figure out how much of the LeoQtTree code to retain.  Presumably this 
will involve most of the dicts.

*Note: *The edit_widget method will "deliver" headline wrappers, that is, 
LeoTreeLine objects. It's not clear yet whether everything will "just work" 
or whether the LeoTreeLine objects will have to know more about context. 
This is the major blurry area at present.

4. Replace the dummy methods by the revised code.

5. Test.

Once again, focusing on process shows the way forward.

Edward

-- 
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 https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.

Reply via email to