mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-19 23:20:52 +01:00
Introduction d'un semblant de debut de simulacre de DTD pour decrire les definitions des elements.
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@10 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -1,3 +1,4 @@
|
|||||||
|
<!DOCTYPE definition SYSTEM "definition_element.dtd">
|
||||||
<definition type="element" nom="contacteur" width="15" height="70" hotspot_x="10" hotspot_y="5" orientation="dnny">
|
<definition type="element" nom="contacteur" width="15" height="70" hotspot_x="10" hotspot_y="5" orientation="dnny">
|
||||||
<ligne x1="-5" y1="19" x2="0" y2="40" antialias="true" style="normal" />
|
<ligne x1="-5" y1="19" x2="0" y2="40" antialias="true" style="normal" />
|
||||||
<ligne x1="0" y1="0" x2="0" y2="20" antialias="false" style="normal" />
|
<ligne x1="0" y1="0" x2="0" y2="20" antialias="false" style="normal" />
|
||||||
|
|||||||
63
elements/definition_element.dtd
Normal file
63
elements/definition_element.dtd
Normal file
@@ -0,0 +1,63 @@
|
|||||||
|
<!ELEMENT definition (borne+|ligne*|cercle*|polygone*)+>
|
||||||
|
<!ATTLIST definition
|
||||||
|
type CDATA #FIXED "element"
|
||||||
|
nom CDATA #REQUIRED
|
||||||
|
width CDATA #REQUIRED
|
||||||
|
height CDATA #REQUIRED
|
||||||
|
hotspot_x CDATA #REQUIRED
|
||||||
|
hotspot_y CDATA #REQUIRED
|
||||||
|
orientation CDATA "dnnn"
|
||||||
|
>
|
||||||
|
|
||||||
|
<!ELEMENT borne EMPTY>
|
||||||
|
<!ATTLIST borne
|
||||||
|
x CDATA #REQUIRED
|
||||||
|
y CDATA #REQUIRED
|
||||||
|
orientation (n|s|e|o) "n"
|
||||||
|
>
|
||||||
|
|
||||||
|
<!ELEMENT ligne EMPTY>
|
||||||
|
<!ATTLIST ligne
|
||||||
|
x1 CDATA #REQUIRED
|
||||||
|
y1 CDATA #REQUIRED
|
||||||
|
x2 CDATA #REQUIRED
|
||||||
|
y2 CDATA #REQUIRED
|
||||||
|
antialias (true|false) "false"
|
||||||
|
style CDATA ""
|
||||||
|
>
|
||||||
|
|
||||||
|
<!ELEMENT cercle EMPTY>
|
||||||
|
<!ATTLIST cercle
|
||||||
|
x CDATA #REQUIRED
|
||||||
|
y CDATA #REQUIRED
|
||||||
|
rayon CDATA #REQUIRED
|
||||||
|
antialias (true|false) "false"
|
||||||
|
style CDATA ""
|
||||||
|
>
|
||||||
|
|
||||||
|
<!ELEMENT polygone EMPTY>
|
||||||
|
<!ATTLIST polygone
|
||||||
|
x1 CDATA #IMPLIED
|
||||||
|
y1 CDATA #IMPLIED
|
||||||
|
x2 CDATA #IMPLIED
|
||||||
|
y2 CDATA #IMPLIED
|
||||||
|
x3 CDATA #IMPLIED
|
||||||
|
y3 CDATA #IMPLIED
|
||||||
|
x4 CDATA #IMPLIED
|
||||||
|
y4 CDATA #IMPLIED
|
||||||
|
x5 CDATA #IMPLIED
|
||||||
|
y5 CDATA #IMPLIED
|
||||||
|
x6 CDATA #IMPLIED
|
||||||
|
y6 CDATA #IMPLIED
|
||||||
|
x7 CDATA #IMPLIED
|
||||||
|
y7 CDATA #IMPLIED
|
||||||
|
x8 CDATA #IMPLIED
|
||||||
|
y8 CDATA #IMPLIED
|
||||||
|
x9 CDATA #IMPLIED
|
||||||
|
y9 CDATA #IMPLIED
|
||||||
|
x10 CDATA #IMPLIED
|
||||||
|
y10 CDATA #IMPLIED
|
||||||
|
antialias (true|false) "false"
|
||||||
|
style CDATA ""
|
||||||
|
>
|
||||||
|
|
||||||
@@ -1,3 +1,4 @@
|
|||||||
|
<!DOCTYPE definition SYSTEM "definition_element.dtd">
|
||||||
<definition type="element" nom="del" width="30" height="70" hotspot_x="15" hotspot_y="5" orientation="dnny">
|
<definition type="element" nom="del" width="30" height="70" hotspot_x="15" hotspot_y="5" orientation="dnny">
|
||||||
<cercle x="-10" y="20" rayon="20" antialias="true" style="normal" />
|
<cercle x="-10" y="20" rayon="20" antialias="true" style="normal" />
|
||||||
<ligne x1="-7" y1="23" x2="7" y2="37" antialias="true" style="normal" />
|
<ligne x1="-7" y1="23" x2="7" y2="37" antialias="true" style="normal" />
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
<!DOCTYPE definition SYSTEM "definition_element.dtd">
|
||||||
<definition type="element" nom="entree" width="20" height="40" hotspot_x="10" hotspot_y="15" orientation="dnny">
|
<definition type="element" nom="entree" width="20" height="40" hotspot_x="10" hotspot_y="15" orientation="dnny">
|
||||||
<polygone x1="-7.5" y1="-13" x2="7.5" y2="-13" x3="0" y3="0" antialias="true" style="normal" />
|
<polygone x1="-7.5" y1="-13" x2="7.5" y2="-13" x3="0" y3="0" antialias="true" style="normal" />
|
||||||
<ligne x1="0" y1="0" x2="0" y2="13" antialias="false" style="normal" />
|
<ligne x1="0" y1="0" x2="0" y2="13" antialias="false" style="normal" />
|
||||||
|
|||||||
Reference in New Issue
Block a user