[prev in list] [next in list] [prev in thread] [next in thread] 

List:       koffice-devel
Subject:    Re: koffice/plugins/defaultTools/defaulttool
From:       Jan Hambrecht <jaham () gmx ! net>
Date:       2009-11-17 11:59:58
Message-ID: 4B02903E.1050609 () gmx ! net
[Download RAW message or body]

Thomas Zander wrote:
> On Tuesday 17. November 2009 12.21.47 Jan Hambrecht wrote:
>> Thomas Zander wrote:
>>> On Tuesday 17. November 2009 04.13.59 Thorsten Zachmann wrote:
>>>> SVN commit 1050284 by zachmann:
>>>>
>>>> o Fix moving of grouped shapes by keyboard
>>>>
>>>> If a grouped shape was moved by keyboard and selected again the size of
>>>> the group was no longer the size of its members.
>>> Could you please explain this a bit more?
>>> The group shape (KoShapeGroup) has this in its API docs;
>>>  "Note that while this object is also a shape, it is not actually visible
>>>   and the user can't interact with it."
>>>
>>> In effect this means that the size of the group shape is totally
>>> irrelevant. So I'm not sure what you are fixing here. I don't think this
>>> change is correct.
>> Unfortunately the way we handle group shapes now causes several
>> problems. The problem Thorsten fixes with that patch is just one of
>> them. Another problem you can also test if you scale a group shape which
>> is the top of a shape hierarchy, i.e.
>>
>> Group
>>      Group
>> 	Shape1
>> 	Shape2
> 
> How can you scale a group shape?  You can't even select it.
> 
> As I pasted above from the API docs; the user is not supposed to interact with 
> the grouping shape, its *only* purpose is to make a set of shapes in a group 
> by being their parent.
> 
> As I recall, if you click on 'shape1' then shape2 will automatically be 
> selected. But neither of the 'Group' shapes will be selected. This avoids the 
> problem you are seeing.
> 
>> After scaling, Shape1 and Shape2 are not updated properly within the
>> KoRTree of the shape manager, as only the direct children are updated.
>> Furthermore the position and size of a group is going to be required for
>> svg effects too, as these effects can also be applied to group objects.
> 
> That makes sense, you are using the grouping shape for something its not meant 
> and is in direct conflict with the thing the group shape is designed to do. So 
> this disconnect indeed makes it not do what you expect it do to but it makes 
> total sense from the point of view of why the group shape was designed.
> 
> Maybe you want to use a KoShapeContainer instead ?

Probably, but then I would have to duplicate all the group related code 
also. More work now but it might be easier in the future for me.

Ciao Jan
_______________________________________________
koffice-devel mailing list
koffice-devel@kde.org
https://mail.kde.org/mailman/listinfo/koffice-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic