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

List:       koffice-devel
Subject:    Re: Connectors (was koffice)
From:       Thorsten Zachmann <t.zachmann () zagge ! de>
Date:       2007-02-28 15:23:57
Message-ID: 200702281623.57417.t.zachmann () zagge ! de
[Download RAW message or body]

On Wednesday 28 February 2007, Thomas Zander wrote:
> On Wednesday 28 February 2007 07:40, Thorsten Zachmann wrote:
> > > First (simple) version of connections between shapes.
> > > This is just playing around, not much in API stability yet.
> >
> > Cool, but I think a connector should be a flake shape and not a special
> > kind of object.
>
> I recall we discussed this lightly over the course of the lifetime of
> flake, and we never said the above. So I'm honestly surprised that you say
> this.

I allways thought this was the way to go so I never mentioned it ;-)

> I think the question should be if we want to manipulate shapes in the same
> way as we want to manipulate connections.
> After all, if you subclass a shape you _add_ functionality, you don't take
> it away. Thats the basis of object-oriented design.
> And I don't think we should be able to move connections, and the spec even
> says we can't rotate and skew and scale connections either.

I see no problem here. We also have layers and so on which are not be able to 
scale and skew. 

I think you want to make it possible to select a connector. Why should this be 
handled completely different than for shapes. The only difference is that it 
can not be modified by the default tool.

So you want to implement all that you have for shapes again for connectors? 
Like commands for delete, adding to the doc. Also when it is done differently 
we need special code to do saving and loading. 

How do you want to the printing as you need a z-Index also for the connectors 
to know when they should be painted. The way as you do it now to print the 
connectors over all other shapes is not really a solution or? It should be 
possible to have shapes that lay over to a connector. 

Also all the special code for connectors can be removed when the connectors 
are normal shapes. 

Thorsten
_______________________________________________
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