Having some method of adding new arrows in dia (through C code or XML), in
such a way that object libraries could install new arrows (eg. ER object
library installs crow's foot arrows), would be very useful.

Currently, it looks like all that would be needed would be an arrow
drawing implementation that arrow_draw() could use, and possibly a GDK
renderer for the arrow selection widget in the main toolbox.

If you do decide to do an SVG/XML based format, feel free to swipe code
from objects/custom/shape-info.c.  It has support for reading a useful
subset of SVG (including some of the style information).  That together
with a bit of work with affine transformations, and you should be able to
render arrow heads quite easily.

James.

--
Email: [EMAIL PROTECTED]
WWW:   http://www.daa.com.au/~james/


On Wed, 20 Oct 1999, Scott Wimer wrote:

> Hi folks.
> 
> I'm wanting to develop some new arrows (crowsfeet for ER diagrams),
> and while it doesn't look too hard to just make them in arrows.c,
> I'm wondering if it might not be better for me to try figuring out
> how to define the arrows as custom SVGs using XML (like the custom
> objects).
> 
> Anyway, i'll be making an attempt at this later this week, unless
> other folks are in the process of doing so.
> 
> Regards,
> scottwimer
> --
> Scott Wimer
> Play:   [EMAIL PROTECTED]        www.cgibuilder.com
> Work:   [EMAIL PROTECTED]    www.earthlink.net
> 

Reply via email to