Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kicad-source-mirror
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
kicad-source-mirror
Commits
b62a69fc
Commit
b62a69fc
authored
Jan 31, 2008
by
dickelbeck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
more amazing free software
parent
e775cee9
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
133 additions
and
76 deletions
+133
-76
specctra.h
pcbnew/specctra.h
+29
-15
specctra_export.cpp
pcbnew/specctra_export.cpp
+104
-61
No files found.
pcbnew/specctra.h
View file @
b62a69fc
...
@@ -1782,7 +1782,7 @@ public:
...
@@ -1782,7 +1782,7 @@ public:
ELEM
(
T_placement
,
aParent
)
ELEM
(
T_placement
,
aParent
)
{
{
unit
=
0
;
unit
=
0
;
flip_style
=
T_
mirror_first
;
flip_style
=
T_
NONE
;
}
}
~
PLACEMENT
()
~
PLACEMENT
()
...
@@ -2711,43 +2711,52 @@ public:
...
@@ -2711,43 +2711,52 @@ public:
aShape
->
SetParent
(
this
);
aShape
->
SetParent
(
this
);
}
}
}
}
void
Format
Contents
(
OUTPUTFORMATTER
*
out
,
int
nestLevel
)
throw
(
IOError
)
void
Format
(
OUTPUTFORMATTER
*
out
,
int
nestLevel
)
throw
(
IOError
)
{
{
out
->
Print
(
nestLevel
,
"(%s "
,
LEXER
::
GetTokenText
(
Type
()
)
);
if
(
shape
)
if
(
shape
)
shape
->
Format
(
out
,
nestLevel
);
shape
->
Format
(
out
,
0
);
if
(
net_id
.
size
()
)
if
(
net_id
.
size
()
)
{
{
const
char
*
quote
=
out
->
GetQuoteChar
(
net_id
.
c_str
()
);
const
char
*
quote
=
out
->
GetQuoteChar
(
net_id
.
c_str
()
);
out
->
Print
(
nestLevel
,
"(net %s%s%s)
\n
"
,
out
->
Print
(
0
,
"(net %s%s%s)
"
,
quote
,
net_id
.
c_str
(),
quote
);
quote
,
net_id
.
c_str
(),
quote
);
}
}
if
(
turret
>=
0
)
if
(
turret
>=
0
)
out
->
Print
(
nestLevel
,
"(turrent %d)
\n
"
,
turret
);
out
->
Print
(
0
,
"(turrent %d)
"
,
turret
);
if
(
type
!=
T_NONE
)
if
(
type
!=
T_NONE
)
out
->
Print
(
nestLevel
,
"(type %s)
\n
"
,
LEXER
::
GetTokenText
(
type
)
);
out
->
Print
(
0
,
"(type %s)
"
,
LEXER
::
GetTokenText
(
type
)
);
if
(
attr
!=
T_NONE
)
if
(
attr
!=
T_NONE
)
out
->
Print
(
nestLevel
,
"(attr %s)
\n
"
,
LEXER
::
GetTokenText
(
attr
)
);
out
->
Print
(
0
,
"(attr %s)
"
,
LEXER
::
GetTokenText
(
attr
)
);
if
(
shield
.
size
()
)
if
(
shield
.
size
()
)
{
{
const
char
*
quote
=
out
->
GetQuoteChar
(
shield
.
c_str
()
);
const
char
*
quote
=
out
->
GetQuoteChar
(
shield
.
c_str
()
);
out
->
Print
(
nestLevel
,
"(shield %s%s%s)
\n
"
,
out
->
Print
(
0
,
"(shield %s%s%s)
"
,
quote
,
shield
.
c_str
(),
quote
);
quote
,
shield
.
c_str
(),
quote
);
}
}
for
(
WINDOWS
::
iterator
i
=
windows
.
begin
();
i
!=
windows
.
end
();
++
i
)
if
(
windows
.
size
()
)
i
->
Format
(
out
,
nestLevel
);
{
out
->
Print
(
0
,
"
\n
"
);
for
(
WINDOWS
::
iterator
i
=
windows
.
begin
();
i
!=
windows
.
end
();
++
i
)
i
->
Format
(
out
,
nestLevel
+
1
);
}
if
(
connect
)
if
(
connect
)
connect
->
Format
(
out
,
nestLevel
);
connect
->
Format
(
out
,
0
);
if
(
supply
)
if
(
supply
)
out
->
Print
(
nestLevel
,
"(supply)
\n
"
);
out
->
Print
(
0
,
"(supply)"
);
out
->
Print
(
0
,
")
\n
"
);
}
}
};
};
typedef
boost
::
ptr_vector
<
WIRE
>
WIRES
;
typedef
boost
::
ptr_vector
<
WIRE
>
WIRES
;
...
@@ -3407,8 +3416,13 @@ class SPECCTRA_DB : public OUTPUTFORMATTER
...
@@ -3407,8 +3416,13 @@ class SPECCTRA_DB : public OUTPUTFORMATTER
STRINGFORMATTER
sf
;
STRINGFORMATTER
sf
;
// FromBOARD() uses this
STRINGS
layerIds
;
///< indexed by PCB layer number
STRINGS
layerIds
;
/// maps BOARD layer number to PCB layer numbers
std
::
vector
<
int
>
kicadLayer2pcb
;
/// maps PCB layer number to BOARD layer numbers
std
::
vector
<
int
>
pcbLayer2kicad
;
/**
/**
...
...
pcbnew/specctra_export.cpp
View file @
b62a69fc
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment