On Sun, 2004-10-17 at 05:37, David Christian Berg wrote:
Though, I don't think that single clicking an object that is not in the group should go back to root editing, because when you edit a group you might accidently click an object, that you didn't want to and - zooooomm- you're not editing the group anymore. maybe a doubleclick outside the group could leave the group again.
I think that's something we need to work out in general for layers (of which groups are just a special case). In most apps, clicking on an object in a different layer will switch layers, but for us, one layer can be the parent of another, possibly requiring different behavior...
I guess part of the question might be whether direct selection of objects which are "uncles" or "cousins" of the current layer should be possible, whether it should be done with a special click sequence/key combination, and under what conditions that should cause a layer switch.
On the other and I'm not sure I want to be able to leave a "layer" at all, after all, since there is no such thing as "root" once you call the groups layers. everything is in a group right from the beginning, since a canvas without a layer has to be a blank canvas.
In that instance there'd be no non-layers at the root level, so there'd be nothing to click on and kick you out.
One thing that will change is that currently the layer selector is disabled when you're at the root. That was just a temporary arrangement for 0.39 because of a combination of bugs and there not being any layers to select.
By the time we release 0.40 (or maybe 0.39.5, depending on how we split things), the default document template will start out with an initial layer rather than at the root level, so things should work a little more naturally then.
So basically, with the introduction of layers it's about time to convert the old xml editor to a object treeview.
The plan is to introduce a new dialog and keep (though rewrite) the XML editor. There are probably three main views of the tree that we want, ultimately:
1. layers - just the layers (in visual order) [selections in this one change the current layer]
2. objects - just the SVG objects (in visual order) [selections in this one change the current selection]
3. xml - all xml nodes (in XML order) [selections in this one change the current selection, if the XML node corresponds to an SVG object]
-mental