From 05e9ec94f17ec91541e7c6498e30a2d1f9f2ea60 Mon Sep 17 00:00:00 2001 From: Russell Oliver Date: Mon, 17 Jul 2017 02:13:10 +1000 Subject: [PATCH] Eeschema Eagle Import: Set pin and pad name visibilities using text size. --- eeschema/sch_eagle_plugin.cpp | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/eeschema/sch_eagle_plugin.cpp b/eeschema/sch_eagle_plugin.cpp index 2030615922..86f6180358 100644 --- a/eeschema/sch_eagle_plugin.cpp +++ b/eeschema/sch_eagle_plugin.cpp @@ -1403,6 +1403,30 @@ LIB_PIN* SCH_EAGLE_PLUGIN::loadPin( LIB_PART* aPart, wxXmlNode* aPin ) } } + if( epin.visible ) + { + wxString visible = epin.visible.Get(); + + if( visible == "off" ) + { + pin->SetNameTextSize( 0 ); + pin->SetNumberTextSize( 0 ); + } + else if (visible == "pad") + { + pin->SetNameTextSize( 0 ); + } + else if( visible == "pin" ) + { + pin->SetNumberTextSize( 0 ); + } + /* + else if( visible == "both" ) + { + } + */ + } + return pin.release(); }