Le 9 septembre 2008 09:00, Vincent Mahe <vmahe at free dot fr> a écrit :
Jean-Philippe Gaulier a écrit :
Tu dis que l'on peut réaliser facilement des shapes, tu aurais le modus
operandi en quelque part ?
http://www.gnome.org/projects/dia/custom-shapes
Exemple:
$ cat /usr/share/dia/shapes/Network/computer.shape
<?xml version="1.0"?>
<shape xmlns="http://www.daa.com.au/~james/dia-shape-ns"
xmlns:svg="http://www.w3.org/2000/svg">
<name>Network - General Computer (Tower)</name>
<icon>computer.png</icon>
<aspectratio type="fixed"/>
<connections>
<point x="1.1" y="0"/>
<point x="1.1" y="3.8"/>
<point x="1.1" y="1.9" main="yes"/>
</connections>