So this basically like this, right?:

Headlines are now db entries, bodytext, (probably), ends up in two
places, in the db, and in the shadow file, (when it is not in an
'ignore' or orphan, or overshadowed situtation), or just maintained as
begin/end indexes into the text file.  Directives in bodytext along
with section references are in the db paried with offsets in to their
bodytext positions.

Tk, (and I assume, Qt), have a facility that might assist this scheme,
named marks.  Named marks are indexes that point into the text buffer
and can be named and referenced by name.  This marks have a 'gravity'
property that determines how they update their position when text is
added/deleted.  This maybe of use because this scheme will have to a
lot oftext chunks that have a relation to the output file but may no
longer be visible there.

These might make possible an editable buffer of the complete file that
knows its relation to the outline.  Navigating through the file might
cause top and bottom horizontal rules to show what bodytext the cursor
is in while the outline shows its position in the outline.

Tom
--~--~---------~--~----~------------~-------~--~----~
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