~ubuntu-branches/ubuntu/precise/fritzing/precise

« back to all changes in this revision

Viewing changes to part-gen-scripts/cheetah scripts/templates/generic-female-header-rounded.fzp

  • Committer: Bazaar Package Importer
  • Author(s): Georges Khaznadar
  • Date: 2011-08-26 10:11:05 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20110826101105-w5hmn7zcf93ig5v6
Tags: 0.6.3b-1
* upgrapded to the newer upstream version
* parameters of the function GraphicsUtils::distanceFromLine in 
  src/svg/groundplanegenerator.cpp:767 are now declared as doubles,
  which Closes: #636441
* the new version fixes src/utils/folderutils.cpp, which
  Closes: #636061

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<?xml version="1.0" encoding="UTF-8"?>
2
 
#set $fpitch = float($pitch)
3
 
#set $mils = int($fpitch * 1000)
4
 
<module fritzingVersion="0.2.2.b.03.04.2550" moduleId="$uuid">
5
 
    <version>2</version>
6
 
    <author>Fritzing Part-o-matic</author>
7
 
    <title>Generic female header - metal rounded - $pins pins</title>
8
 
    <label>J</label>
9
 
    <date>$date</date>
10
 
    <tags></tags>
11
 
    <properties>
12
 
        <property name="family">Pin Header</property>
13
 
        <property name="Pins">$pins</property>
14
 
        <property name="Form">&#9792; (female rounded)</property>
15
 
        <property name="Pin Spacing">${fpitch}in (${fpitch * 25.4}mm)</property>
16
 
    </properties>
17
 
    <description>Generic female header - metal rounded</description>
18
 
    <views>
19
 
        <iconView>
20
 
            <layers image="icon/generic_female_header_metal_rounded.svg">
21
 
                <layer layerId="icon"></layer>
22
 
            </layers>
23
 
        </iconView>
24
 
        <breadboardView>
25
 
#set $bread_suffix = '_'+$bread_unique if not $gen_to_core else '' 
26
 
            <layers image="breadboard/generic_rounded_female_pin_header_${pins}_${mils}mil_bread.svg">
27
 
                <layer layerId="breadboard"></layer>
28
 
            </layers>
29
 
        </breadboardView>
30
 
        <schematicView fliphorizontal="true" >
31
 
#set $schem_suffix = '_'+$schem_unique if not $gen_to_core else ''
32
 
            <layers image="schematic/generic_female_pin_header_${pins}_${mils}mil_schem.svg">
33
 
                <layer layerId="schematic"></layer>
34
 
            </layers>
35
 
        </schematicView>
36
 
        <pcbView>
37
 
            <layers image="pcb/jumper_${pins}_${mils}mil_pcb.svg">
38
 
                <layer layerId="copper0"></layer>
39
 
                <layer layerId="silkscreen"></layer>
40
 
            </layers>
41
 
        </pcbView>
42
 
    </views>
43
 
    <connectors>
44
 
#for $pin in range(int($pins))
45
 
  #set $pindex = $pin + 1
46
 
        <connector id="connector$pin" type="male" name="pin$pindex">
47
 
            <description>Pin $pindex</description>
48
 
            <views>
49
 
                <breadboardView>
50
 
                    <p layer="breadboard" svgId="connector${pin}pin" terminalId="connector${pin}terminal"></p>
51
 
                </breadboardView>
52
 
                <schematicView>
53
 
                    <p layer="schematic" svgId="connector${pin}pin" terminalId="connector${pin}terminal"></p>
54
 
                </schematicView>
55
 
                <pcbView>
56
 
                    <p layer="copper0" svgId="connector${pin}pin"></p>
57
 
                </pcbView>
58
 
            </views>
59
 
        </connector>
60
 
#end for
61
 
    </connectors>
62
 
</module>