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

« back to all changes in this revision

Viewing changes to part-gen-scripts/obsolete/cheetah scripts/templates/screw_terminal.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>Lionel Michel</author>
 
7
    <title>Screw terminal - $pins pins</title>
 
8
    <label>J</label>
 
9
    <date>$date</date>
 
10
    <tags>fritzing core</tags>
 
11
    <properties>
 
12
        <property name="family">Screw Terminal</property>
 
13
        <property name="Pins">$pins</property>
 
14
        <property name="Pin Spacing">${int(fpitch * 1000) / 1000.0}in (${int(fpitch * 1000 * 25.4) / 1000.0}mm)</property>
 
15
    </properties>
 
16
    <description>Screw terminal with $pins pins</description>
 
17
    <views>
 
18
        <iconView>
 
19
            <layers image="icon/screw_terminal.svg">
 
20
                <layer layerId="icon"></layer>
 
21
            </layers>
 
22
        </iconView>
 
23
        <breadboardView>
 
24
            <layers image="breadboard/screw_terminal_${pins}_100mil_bread.svg">
 
25
                <layer layerId="breadboard"></layer>
 
26
            </layers>
 
27
        </breadboardView>
 
28
        <schematicView fliphorizontal="true" >
 
29
            <layers image="schematic/screw_terminal_${pins}_100mil_schem.svg">
 
30
                <layer layerId="schematic"></layer>
 
31
            </layers>
 
32
        </schematicView>
 
33
        <pcbView>
 
34
            <layers image="pcb/screw_terminal_${pins}${postpin}_pcb.svg">
 
35
                <layer layerId="copper0"></layer>
 
36
                <layer layerId="silkscreen"></layer>
 
37
            </layers>
 
38
        </pcbView>
 
39
    </views>
 
40
    <connectors>
 
41
    #for $pin in range(int($pins))
 
42
        <connector id="connector${pin}" type="male" name="pin${pin + 1}">
 
43
            <description>Pin ${pin + 1}</description>
 
44
            <views>
 
45
                <breadboardView>
 
46
                    <p layer="breadboard" svgId="connector${pin}pin" ></p>
 
47
                </breadboardView>
 
48
                <schematicView>
 
49
                    <p layer="schematic" svgId="connector${pin}pin" terminalId="connector${pin}terminal"></p>
 
50
                </schematicView>
 
51
                <pcbView>
 
52
                    <p layer="copper0" svgId="connector${pin}pin"></p>
 
53
                </pcbView>
 
54
            </views>
 
55
        </connector>
 
56
    #end for
 
57
    </connectors>
 
58
</module>