Rename SCH_COMPONENT to SCH_SYMBOL.

This commit is contained in:
Wayne Stambaugh
2021-06-10 10:34:49 -04:00
parent 1c3df973d6
commit fbc135e69f
118 changed files with 1380 additions and 1348 deletions
+7 -7
View File
@@ -219,11 +219,11 @@ bool SCHEMATIC::ResolveCrossReference( wxString* token, int aDepth ) const
SCH_SHEET_PATH dummy;
SCH_ITEM* refItem = sheetList.GetItem( KIID( ref ), &dummy );
if( refItem && refItem->Type() == SCH_COMPONENT_T )
if( refItem && refItem->Type() == SCH_SYMBOL_T )
{
SCH_COMPONENT* refComponent = static_cast<SCH_COMPONENT*>( refItem );
SCH_SYMBOL* refSymbol = static_cast<SCH_SYMBOL*>( refItem );
if( refComponent->ResolveTextVar( &remainder, aDepth + 1 ) )
if( refSymbol->ResolveTextVar( &remainder, aDepth + 1 ) )
{
*token = remainder;
return true;
@@ -278,7 +278,7 @@ wxString SCHEMATIC::ConvertRefsToKIIDs( const wxString& aSource ) const
for( size_t jj = 0; jj < references.GetCount(); jj++ )
{
SCH_COMPONENT* refSymbol = references[ jj ].GetSymbol();
SCH_SYMBOL* refSymbol = references[ jj ].GetSymbol();
if( ref == refSymbol->GetRef( &references[ jj ].GetSheetPath(), true ) )
{
@@ -336,10 +336,10 @@ wxString SCHEMATIC::ConvertKIIDsToRefs( const wxString& aSource ) const
SCH_SHEET_PATH refSheetPath;
SCH_ITEM* refItem = sheetList.GetItem( KIID( ref ), &refSheetPath );
if( refItem && refItem->Type() == SCH_COMPONENT_T )
if( refItem && refItem->Type() == SCH_SYMBOL_T )
{
SCH_COMPONENT* refComponent = static_cast<SCH_COMPONENT*>( refItem );
token = refComponent->GetRef( &refSheetPath, true ) + ":" + remainder;
SCH_SYMBOL* refSymbol = static_cast<SCH_SYMBOL*>( refItem );
token = refSymbol->GetRef( &refSheetPath, true ) + ":" + remainder;
}
}