Netclass setup for Eeschema.

ADDED netclass panel in Schematic Setup dialog.

Fixes https://gitlab.com/kicad/code/kicad/issues/2132
This commit is contained in:
Jeff Young
2020-07-06 20:00:50 +01:00
parent 2819570d1e
commit b0ca7d5140
5 changed files with 20 additions and 2 deletions
+6
View File
@@ -124,6 +124,12 @@ NET_SETTINGS::NET_SETTINGS( JSON_SETTINGS* aParent, const std::string& aPath ) :
netclass->SetDiffPairViaGap(
get( entry, "diff_pair_via_gap", netclass->GetDiffPairViaGap() ) );
if( entry.contains( "nets" ) && entry["nets"].is_array() )
{
for( const auto& net : entry["nets"].items() )
netclass->Add( net.value().get<wxString>() );
}
if( netclass != defaultClass )
m_NetClasses.Add( netclass );
}