DIA: improving existing and developing new templates

2013-02-07 Thread darrrylctx
I would like to change/add functionality to some existing DIA templates and
possible create some new ones.

How is this done, and what is the best resource for learning how to do it?

Thanks,

Darryl C.
___
dia-list mailing list
dia-list@gnome.org
https://mail.gnome.org/mailman/listinfo/dia-list
FAQ at http://live.gnome.org/Dia/Faq
Main page at http://live.gnome.org/Dia



Re: DIA: improving existing and developing new templates

2013-02-07 Thread Thomas Harding

Le 07/02/2013 16:59, darrrylctx a écrit :
I would like to change/add functionality to some existing DIA 
templates and possible create some new ones.


How is this done, and what is the best resource for learning how to do it?



Dia format uses a subset of svg 1.1 specification from W3C.

For the static ones you would author by hand or in an svg editor,  the 
easiest way is to follow the custom shapes chapter provided by the 
manual :)


In short, custom shapes are an svg 1.1 xml subset, which is embedded 
in a shape xml tag with, at option, one text tag.


For dynamic ones (what you have eg with lines or UML), the current way 
is C programming.


Any shapes set can be ~sorted in sheets, which are also xml.

There are also a menu item in save as to export a diagram as a shape, 
and a button opening a toolbox to edit sheets.


This last method is limited to your home directory, especially for 
sheets.


Best Regards, and good authoring,
TSFH
___
dia-list mailing list
dia-list@gnome.org
https://mail.gnome.org/mailman/listinfo/dia-list
FAQ at http://live.gnome.org/Dia/Faq
Main page at http://live.gnome.org/Dia



Re: DIA: improving existing and developing new templates

2013-02-07 Thread Steffen Macke

Hi Darryl,

On 07.02.2013 16:59, darrrylctx wrote:

I would like to change/add functionality to some existing DIA templates and
possible create some new ones.

How is this done, and what is the best resource for learning how to do it?
I guess that you're talking about Dia shapes - step-by-step 
instructions how to add your own shapes to Dia

can be found under

http://dia-installer.de/howto/create_shape/index.html.en

Regards,

Steffen
___
dia-list mailing list
dia-list@gnome.org
https://mail.gnome.org/mailman/listinfo/dia-list
FAQ at http://live.gnome.org/Dia/Faq
Main page at http://live.gnome.org/Dia