Re: [Inkscape-devel] selection news
On Sat, 2003-12-27 at 02:31, bulia byak wrote:
Ctrl-click now selects within groups, ctrl-shift-click adds to selection disregarding grouping. Multiple and nested groups work. Special care was taken to preven double grouping when both a group and one of its
descendants
are selected. Please test.
Good work!
One thing -- as it is currently, you can select things within a group, but not e.g. move them around when they are selected -- probably contrary to user expectations.
I thought about that but didn't implement it yet, partially because I myself almost never use dragging to move objects, but only arrow keys (they work within group). This will involve another instance of ignoring the item passed with the event and using the selected-within-group items instead in item_handler. Looks like with this approach, the canvas code which does its own item picking will be eventually left unemployed. I don't know if it's good or bad from the architectural viewpoint, but at least my own way of fiddling with items is much easier to implement for me than any changes to the canvas code, so I tend to choose the easy route.
I guess this means the next phase of my layers work just became more important -- making groups that have selected children (descendants) automatically 'transparent' (in the SPArenaGroup sense).
Oh yes, if you can do this, then mousedragging selected-within items will be enabled automatically. Perhaps that's a better approach.
On the other hand, you're getting experienced with this code now. Do you have ideas for how best to make these selected items draggable directly? I think the code I originally had in mind to do selection-dependant "event transparency" could get nasty to implement.
As outlined above, I think I can basically re-implement most if not all of selector's functionality using my own item_at_point functions and their variants, disregarding the item argument of the event. This is one approach; the other is your changes to canvas code to make partially-selected groups auto-transparent. As to which one is easier, I don't know; I can try to do the first one but I have very little idea of how difficult is the second for you (it's likely to be very difficult _for me_).
_________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=dept/bcomm&pgmarket=en-ca&RU=http%3a%2f%2f...
participants (1)
-
bulia byak