To go along with the new persistent custom pane layouts (still not
merged to trunk), I've added auto loading of graphs in the graph_canvas
plugin.

Done via a new Alt-X command `graph-toggle-autoload` on the free_layout
branch.

It either remembers the current node as a graph root for the current
outline, or forgets any remembered graph root, hence 'toggle'.

Given the ability of graph links to spread throughout an outline without
being confined to a single subtree, which nodes are in a graph is hard
to define.  So what it does is this two step load:

1) The remembered node, and all its subtree, are loaded into the graph
pane.  Use a leaf node (leo tree wise) if you want to get only one
node loaded in this step.

2) All nodes linked with graphcanvas/backlinks links to the nodes
now loaded into the graph (i.e. the nodes loaded in step 1) are also
loaded.

This makes it possible to autoload a graph with unconnected
subdomains.  E.g.

Aaaa
   Aardvar
   Aint
      Ark
   Bark
     Bent
     Boat

if node Aaaa is the remembered node, and all the nodes starting with
A are linked by graphcanvas/backlinks links, and all the nodes starting
with B are linked by graphcanvas/backlinks links, but there are no links
betwee A and B nodes, still both graph parts are loaded because they're
all under node Aaaa (step 1 of the load process).  Any nodes linked to
any of the above nodes but *not* under the Aaaa node would also be
loaded (step 2).

It's still possible to draw a graph that can't be autoloaded, if it
contains unlinked nodes which are not part of the same substree.

Cheers -Terry

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