[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [gulliver] Dia
|
From |
"Yohann Lepage" <yohannlepage at gmail dot com> |
|
Subject |
Re: [gulliver] Dia |
|
Date |
Tue, 9 Sep 2008 16:26:47 +0200 |
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>
<textbox x1="0" y1="3.9" x2="2.2" y2="6.9" align="center" resize="no"/>
<svg:svg width="2.2cm" height="3.8cm">
<svg:rect style="fill:#B3B3B3; stroke:foreground; stroke-width:
.8" x=".3" y="0" width="1.5" height="3.5"/>
<svg:rect style="fill:none; stroke:foreground; stroke-width:.1"
x=".45" y=".21" width="1.2" height=".4"/>
[...]
</svg:svg>
</shape>
--
Yohann Lepage
ID GPG : BA048DC4
http://www.2xyo.info
Cherche stage en Inde...