Cameron McCormack:
> Ivan Andjelkovic:
> > I have just uploaded the latest patch.
> > Any thoughts on tree dnd support and element templates?
> 
> Sorry I haven’t had a chance to look at this yet.  I’ll schedule some
> time tomorrow for this tomorrow.

OK I had a look.  The element templates are good (though I don’t think
it’s good to call them templates in the UI; calling the menu item
“Insert new element” or something is fine).  I found I didn’t realise
the new element was inserted into the tree already, since with the
document I was working on (the klondike.svg example), the new entry in
the tree was below the current scrolled position.  Maybe you can make it
scroll to and select the new element once you insert one.

As for the drag and drop, I found that it didn’t update the tree after
moving the element in the document.  Also, I think you’ll need to be
able to drag nodes to drop them on an existing element (to append them
as a child there), or drop them between existing nodes to position them
exactly.  Something like how Firefox allows you to drag around
bookmarks.

I had another idea while playing with it: it’d be neat if you could
select which element is selected in the tree viewer by clicking it in
the JSVGViewerFrame window.  I found I had to (with the klondike
example) hunt around until I found the element I wanted.  Being able to
select it, much like an eye-dropper tool in a graphics editing program,
would be a lot easier.

Conversely, it’d be handy to be able to see which element you’ve
selected in the tree with some visual indication in the JSVGViewerFrame.
Maybe an overlay on the JSVGCanvas could be used for this.

-- 
Cameron McCormack, http://mcc.id.au/
        xmpp:[EMAIL PROTECTED]  ▪  ICQ 26955922  ▪  MSN [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to