On Fri, Apr 15, 2011 at 8:13 AM, Kent Tenney <[email protected]> wrote: > On Thu, Apr 14, 2011 at 4:59 PM, Terry Brown <[email protected]> wrote: >> On Thu, 14 Apr 2011 16:50:11 -0500 >> Kent Tenney <[email protected]> wrote: >> >>> or, what is an "old graph" ? >>> can the canvas be persisted? > > After populating a graph pane with nodes, I hoped I could > persist that pane, ie: persist which nodes are chosen and where they > are positioned, a misunderstanding on my part. > > Now I see the value of graphcanvas's "links" > > If I _link_ the nodes I've chosen to live on the pane, _that_ > relationship is persisted.
(still looking at persisting graph pane) I can't find how to create a link ... > > Of course the GC links have more value than persistence, > which will be revealed as I use them more. > > Thanks, > Kent > > >> >> The nodes remember the links and positions, so everything persists. >> >> By old graphs I mean those created before refactoring which record >> their node type as an integer 1-5 instead of 'nodeRect', 'nodeImage' >> etc. >> >> See how I was careful to store the *name* of the class rather than the >> class itself in the uA, so it wouldn't need pickling :-) >> >> Older graphs may have saved colors as QColor objects rather than >> '#RRGGBB' too. >> >> 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. >> >> > -- 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.
