33#include <wx/translation.h>
49 const wxString& aActualConversion )
51 XNODE* lNode, * tNode;
56 lNode =
FindNode( aNode, wxT(
"viaStyleRef" ) );
60 lNode->GetAttribute( wxT(
"Name" ), &propValue );
61 propValue.Trim(
false );
62 propValue.Trim(
true );
66 lNode =
FindNode( aNode, wxT(
"pt" ) );
74 lNode =
FindNode( aNode, wxT(
"netNameRef" ) );
78 lNode->GetAttribute( wxT(
"Name" ), &propValue );
79 propValue.Trim(
false );
80 propValue.Trim(
true );
87 while( lNode && lNode->GetName() != wxT(
"www.lura.sk" ) )
90 lNode =
FindNode( lNode, wxT(
"library" ) );
95 lNode =
FindNode( lNode, wxT(
"viaStyleDef" ) );
99 lNode->GetAttribute( wxT(
"Name" ), &propValue );
101 if( propValue.IsSameAs(
m_Name.
text,
false ) )
113 lNode =
FindNode( tNode, wxT(
"holeDiam" ) );
116 SetWidth( lNode->GetNodeContent(), aDefaultUnits, &
m_Hole, aActualConversion );
118 lNode =
FindNode( tNode, wxT(
"viaShape" ) );
122 if( lNode->GetName() == wxT(
"viaShape" ) )
126 if(
FindNode( lNode, wxT(
"layerNumRef" ) ) )
129 viaShape->
Parse( lNode, aDefaultUnits, aActualConversion );
Information pertinent to a Pcbnew printed circuit board.
PCAD_PAD_SHAPES_ARRAY m_Shapes
PCAD_CALLBACKS * m_callbacks
int GetNetCode(const wxString &aNetName) const
virtual void Parse(XNODE *aNode, const wxString &aDefaultUnits, const wxString &aActualConversion) override
PCAD_VIA(PCAD_CALLBACKS *aCallbacks, BOARD *aBoard)
virtual void Parse(XNODE *aNode, const wxString &aDefaultUnits, const wxString &aActualConversion) override
Hold an XML or S-expression element.
XNODE * GetParent() const
static constexpr EDA_ANGLE ANGLE_0
#define THROW_IO_ERROR(msg)
void SetWidth(const wxString &aStr, const wxString &aDefaultMeasurementUnit, int *aWidth, const wxString &aActualConversion)
XNODE * FindNode(XNODE *aChild, const wxString &aTag)
void SetPosition(const wxString &aStr, const wxString &aDefaultMeasurementUnit, int *aX, int *aY, const wxString &aActualConversion)