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
92d58ffe
Commit
92d58ffe
authored
Aug 19, 2010
by
Dick Hollenbeck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
XML tweaks
parent
8ec67570
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
2 deletions
+26
-2
xnode.cpp
common/xnode.cpp
+2
-2
netlist_form_pads-pcb.xsl
eeschema/plugins/netlist_form_pads-pcb.xsl
+3
-0
xnode.h
include/xnode.h
+21
-0
No files found.
common/xnode.cpp
View file @
92d58ffe
...
...
@@ -27,7 +27,7 @@
#include "macros.h"
typedef
wxXmlProperty
XATTR
;
#define GetAttribs GetProperties
void
XNODE
::
Format
(
OUTPUTFORMATTER
*
out
,
int
nestLevel
)
throw
(
IOError
)
{
...
...
@@ -53,7 +53,7 @@ void XNODE::FormatContents( OUTPUTFORMATTER* out, int nestLevel ) throw( IOError
std
::
string
utf8
;
// output attributes first if they exist
for
(
XATTR
*
attr
=
(
XATTR
*
)
GetAttribs
();
attr
;
attr
=
(
XATTR
*
)
attr
->
GetNext
()
)
for
(
XATTR
*
attr
=
(
XATTR
*
)
GetAttrib
ute
s
();
attr
;
attr
=
(
XATTR
*
)
attr
->
GetNext
()
)
{
utf8
=
CONV_TO_UTF8
(
attr
->
GetValue
()
);
// capture the content
...
...
eeschema/plugins/netlist_form_pads-pcb.xsl
View file @
92d58ffe
...
...
@@ -2,6 +2,9 @@
<!--XSL style sheet to EESCHEMA Generic Netlist Format to PADS netlist format
Copyright (C) 2010, SoftPLC Corporation.
GPL v2.
How to use:
https://lists.launchpad.net/kicad-developers/msg05157.html
-->
<!DOCTYPE xsl:stylesheet [
...
...
include/xnode.h
View file @
92d58ffe
...
...
@@ -65,6 +65,27 @@ public:
* @throw IOError if a system error writing the output, such as a full disk.
*/
virtual
void
FormatContents
(
OUTPUTFORMATTER
*
out
,
int
nestLevel
)
throw
(
IOError
);
#if wxABI_VERSION < 20811 // change the if as needed
wxString
GetAttribute
(
const
wxString
&
attrName
,
const
wxString
&
defaultVal
)
const
{
return
GetPropVal
(
attrName
,
defaultVal
);
}
bool
GetAttribute
(
const
wxString
&
attrName
,
wxString
*
value
)
const
{
return
GetPropVal
(
attrName
,
value
);
}
void
AddAttribute
(
const
wxString
&
attrName
,
const
wxString
&
value
)
{
AddProperty
(
attrName
,
value
);
}
wxXmlProperty
*
GetAttributes
()
const
{
return
GetProperties
();
}
#endif // wx < 2.8.11
};
#endif // _XATTR_H_
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