On 09/10/2013 11:33 AM, Tavmjong Bah wrote:
Ok, I now coupled object and point selection. Points/items can still be selected individually, but when the selection of an item is changed, the selection of all contained points is changed as well. When the selection of a connector is changed, the selection of the connector's endpoints is changed. The only quirk of this approac is that when two connectors share an endpoint and one is selected and [Delete] is pressed, the other connector is deleted as well since at the point [Delete] is pressed the selection contains both the one connector and both of its endpoints, including the shared one and when the shared endpoint is deleted, the other connector is deleted. I think that's not too much of a problem, though.
When a connector is deleted, I would not delete the points. That should be a separate operation (explicitly select the points and then delete them).
For this either I would have to go back to the old selection mechanics (which I think are not nice) or I would have to "filter" the selection when deleting: When a mix of regular shapes/connectors and points is selected, just delete the shapes and connectors and leave the points alone. Only delete points when nothing but points is selected.
This sounds like a kind of hack-y solution to me, but I can't think of a better one yet.
Sebastian