On Mon, 2 Aug 2010 20:54:08 -0700 (PDT) "Edward K. Ream" <[email protected]> wrote:
> But first, I had to find a way to delete a list of nodes. I think this came up when I implemented the context menu delete function for multiple selected nodes in the Qt interface. Of course rather than carefully analyzing the problem first I messed it up the first time - fortunately I'd taken care to include undo functionality, so no one was terribly maimed, and with some discussion the code got improved to the point of doing no harm. Probably the code that's there now should be replaced with your method, when that's in the core. An aside with maybe some relevance to future development of Leo. IIRC, clones introduced much of the trickiness of this list delete. It seems to me that clones are the source of much trickiness in a lot of cases. Of course their value justifies that trickiness, as long as their functionality can't be provided any other way. Personally, I suspect that all of the key clone functionality can be provided in other ways, primarily with link / UNL type nodes and UI modifications to make using them more fluid. The reduction in complexity would come from allowing these link / UNL type nodes to break, making reasonable but not excessive efforts to fix breaks, and accepting that breaks can occur and are ok. Similar to the way Un*x makes little or no effort to stop you deleting the target of a symbolic link. But, I don't think yet another grand rehash of the node / graph / v / t etc. model for Leo would be constructive development wise. Non-clone mechanisms which deliver clone functionality can be developed without doing anything to clones - if that development happens, then we can consider the possibility of reducing complexity by replacing clones at that time. 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.
