Loading common/drawframe.cpp +2 −1 Original line number Diff line number Diff line Loading @@ -168,7 +168,8 @@ EDA_DRAW_FRAME::EDA_DRAW_FRAME( wxWindow* aParent, EDA_DRAW_FRAME::~EDA_DRAW_FRAME() { SAFE_DELETE( m_currentScreen ); delete m_currentScreen; m_currentScreen = NULL; m_auimgr.UnInit(); } Loading cvpcb/autosel.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -165,7 +165,7 @@ void CVPCB_MAINFRAME::AssocieModule( wxCommandEvent& event ) bool found = false; m_ListCmp->SetSelection( ii++, true ); if( !component->GetFootprintLibName().IsEmpty() ) if( !component->GetFootprintName().IsEmpty() ) continue; BOOST_FOREACH( FOOTPRINT_ALIAS& alias, aliases ) Loading cvpcb/cvframe.cpp +7 −7 Original line number Diff line number Diff line Loading @@ -344,7 +344,7 @@ void CVPCB_MAINFRAME::ToFirstNA( wxCommandEvent& event ) for( unsigned jj = 0; jj < m_netlist.GetCount(); jj++ ) { if( m_netlist.GetComponent( jj )->GetFootprintLibName().IsEmpty() && ii > selection ) if( m_netlist.GetComponent( jj )->GetFootprintName().IsEmpty() && ii > selection ) { m_ListCmp->SetSelection( ii ); SendMessageToEESCHEMA(); Loading Loading @@ -374,7 +374,7 @@ void CVPCB_MAINFRAME::ToPreviousNA( wxCommandEvent& event ) for( unsigned kk = m_netlist.GetCount() - 1; kk >= 0; kk-- ) { if( m_netlist.GetComponent( kk )->GetFootprintLibName().IsEmpty() && ii < selection ) if( m_netlist.GetComponent( kk )->GetFootprintName().IsEmpty() && ii < selection ) { m_ListCmp->SetSelection( ii ); SendMessageToEESCHEMA(); Loading Loading @@ -414,7 +414,7 @@ void CVPCB_MAINFRAME::DelAssociations( wxCommandEvent& event ) for( unsigned i = 0; i < m_netlist.GetCount(); i++ ) { m_netlist.GetComponent( i )->SetFootprintLibName( wxEmptyString ); m_netlist.GetComponent( i )->SetFootprintName( wxEmptyString ); SetNewPkg( wxEmptyString ); } Loading Loading @@ -568,7 +568,7 @@ void CVPCB_MAINFRAME::OnSelectComponent( wxListEvent& event ) if( FindFocus() == m_ListCmp ) { wxString module = m_netlist.GetComponent( selection )->GetFootprintLibName(); wxString module = m_netlist.GetComponent( selection )->GetFootprintName(); bool found = false; for( int ii = 0; ii < m_FootprintList->GetCount(); ii++ ) Loading Loading @@ -788,8 +788,8 @@ int CVPCB_MAINFRAME::ReadSchematicNetlist() // not the actual name of the footprint. for( unsigned ii = 0; ii < m_netlist.GetCount(); ii++ ) { if( m_netlist.GetComponent( ii )->GetFootprintLibName() == wxT( "$noname" ) ) m_netlist.GetComponent( ii )->SetFootprintLibName( wxEmptyString ); if( m_netlist.GetComponent( ii )->GetFootprintName() == wxT( "$noname" ) ) m_netlist.GetComponent( ii )->SetFootprintName( wxEmptyString ); } // Sort components by reference: Loading Loading @@ -840,7 +840,7 @@ bool CVPCB_MAINFRAME::WriteComponentLinkFile( const wxString& aFullFileName ) retval |= fprintf( outputFile, "Reference = %s;\n", TO_UTF8( component->GetReference() ) ); retval |= fprintf( outputFile, "ValeurCmp = %s;\n", TO_UTF8( component->GetValue() ) ); retval |= fprintf( outputFile, "IdModule = %s;\n", TO_UTF8( component->GetFootprintLibName() ) ); TO_UTF8( component->GetFootprintName() ) ); retval |= fprintf( outputFile, "EndCmp\n" ); } Loading cvpcb/listboxes.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -117,7 +117,7 @@ void CVPCB_MAINFRAME::BuildCmpListBox() msg.Printf( CMP_FORMAT, m_ListCmp->GetCount() + 1, GetChars( component->GetReference() ), GetChars( component->GetValue() ), GetChars( component->GetFootprintLibName() ) ); GetChars( component->GetFootprintName() ) ); m_ListCmp->m_ComponentList.Add( msg ); } Loading cvpcb/readwrite_dlgs.cpp +5 −5 Original line number Diff line number Diff line Loading @@ -71,16 +71,16 @@ void CVPCB_MAINFRAME::SetNewPkg( const wxString& aFootprintName ) // Check to see if the component has already a footprint set. hasFootprint = !(component->GetFootprintLibName().IsEmpty()); hasFootprint = !(component->GetFootprintName().IsEmpty()); component->SetFootprintLibName( aFootprintName ); component->SetFootprintName( aFootprintName ); // create the new component description description.Printf( CMP_FORMAT, componentIndex + 1, GetChars( component->GetReference() ), GetChars( component->GetValue() ), GetChars( component->GetFootprintLibName() ) ); GetChars( component->GetFootprintName() ) ); // If the component hasn't had a footprint associated with it // it now has, so we decrement the count of components without Loading Loading @@ -135,10 +135,10 @@ bool CVPCB_MAINFRAME::ReadNetListAndLinkFiles() msg.Printf( CMP_FORMAT, m_ListCmp->GetCount() + 1, GetChars( component->GetReference() ), GetChars( component->GetValue() ), GetChars( component->GetFootprintLibName() ) ); GetChars( component->GetFootprintName() ) ); m_ListCmp->AppendLine( msg ); if( component->GetFootprintLibName().IsEmpty() ) if( component->GetFootprintName().IsEmpty() ) m_undefinedComponentCnt += 1; } Loading Loading
common/drawframe.cpp +2 −1 Original line number Diff line number Diff line Loading @@ -168,7 +168,8 @@ EDA_DRAW_FRAME::EDA_DRAW_FRAME( wxWindow* aParent, EDA_DRAW_FRAME::~EDA_DRAW_FRAME() { SAFE_DELETE( m_currentScreen ); delete m_currentScreen; m_currentScreen = NULL; m_auimgr.UnInit(); } Loading
cvpcb/autosel.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -165,7 +165,7 @@ void CVPCB_MAINFRAME::AssocieModule( wxCommandEvent& event ) bool found = false; m_ListCmp->SetSelection( ii++, true ); if( !component->GetFootprintLibName().IsEmpty() ) if( !component->GetFootprintName().IsEmpty() ) continue; BOOST_FOREACH( FOOTPRINT_ALIAS& alias, aliases ) Loading
cvpcb/cvframe.cpp +7 −7 Original line number Diff line number Diff line Loading @@ -344,7 +344,7 @@ void CVPCB_MAINFRAME::ToFirstNA( wxCommandEvent& event ) for( unsigned jj = 0; jj < m_netlist.GetCount(); jj++ ) { if( m_netlist.GetComponent( jj )->GetFootprintLibName().IsEmpty() && ii > selection ) if( m_netlist.GetComponent( jj )->GetFootprintName().IsEmpty() && ii > selection ) { m_ListCmp->SetSelection( ii ); SendMessageToEESCHEMA(); Loading Loading @@ -374,7 +374,7 @@ void CVPCB_MAINFRAME::ToPreviousNA( wxCommandEvent& event ) for( unsigned kk = m_netlist.GetCount() - 1; kk >= 0; kk-- ) { if( m_netlist.GetComponent( kk )->GetFootprintLibName().IsEmpty() && ii < selection ) if( m_netlist.GetComponent( kk )->GetFootprintName().IsEmpty() && ii < selection ) { m_ListCmp->SetSelection( ii ); SendMessageToEESCHEMA(); Loading Loading @@ -414,7 +414,7 @@ void CVPCB_MAINFRAME::DelAssociations( wxCommandEvent& event ) for( unsigned i = 0; i < m_netlist.GetCount(); i++ ) { m_netlist.GetComponent( i )->SetFootprintLibName( wxEmptyString ); m_netlist.GetComponent( i )->SetFootprintName( wxEmptyString ); SetNewPkg( wxEmptyString ); } Loading Loading @@ -568,7 +568,7 @@ void CVPCB_MAINFRAME::OnSelectComponent( wxListEvent& event ) if( FindFocus() == m_ListCmp ) { wxString module = m_netlist.GetComponent( selection )->GetFootprintLibName(); wxString module = m_netlist.GetComponent( selection )->GetFootprintName(); bool found = false; for( int ii = 0; ii < m_FootprintList->GetCount(); ii++ ) Loading Loading @@ -788,8 +788,8 @@ int CVPCB_MAINFRAME::ReadSchematicNetlist() // not the actual name of the footprint. for( unsigned ii = 0; ii < m_netlist.GetCount(); ii++ ) { if( m_netlist.GetComponent( ii )->GetFootprintLibName() == wxT( "$noname" ) ) m_netlist.GetComponent( ii )->SetFootprintLibName( wxEmptyString ); if( m_netlist.GetComponent( ii )->GetFootprintName() == wxT( "$noname" ) ) m_netlist.GetComponent( ii )->SetFootprintName( wxEmptyString ); } // Sort components by reference: Loading Loading @@ -840,7 +840,7 @@ bool CVPCB_MAINFRAME::WriteComponentLinkFile( const wxString& aFullFileName ) retval |= fprintf( outputFile, "Reference = %s;\n", TO_UTF8( component->GetReference() ) ); retval |= fprintf( outputFile, "ValeurCmp = %s;\n", TO_UTF8( component->GetValue() ) ); retval |= fprintf( outputFile, "IdModule = %s;\n", TO_UTF8( component->GetFootprintLibName() ) ); TO_UTF8( component->GetFootprintName() ) ); retval |= fprintf( outputFile, "EndCmp\n" ); } Loading
cvpcb/listboxes.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -117,7 +117,7 @@ void CVPCB_MAINFRAME::BuildCmpListBox() msg.Printf( CMP_FORMAT, m_ListCmp->GetCount() + 1, GetChars( component->GetReference() ), GetChars( component->GetValue() ), GetChars( component->GetFootprintLibName() ) ); GetChars( component->GetFootprintName() ) ); m_ListCmp->m_ComponentList.Add( msg ); } Loading
cvpcb/readwrite_dlgs.cpp +5 −5 Original line number Diff line number Diff line Loading @@ -71,16 +71,16 @@ void CVPCB_MAINFRAME::SetNewPkg( const wxString& aFootprintName ) // Check to see if the component has already a footprint set. hasFootprint = !(component->GetFootprintLibName().IsEmpty()); hasFootprint = !(component->GetFootprintName().IsEmpty()); component->SetFootprintLibName( aFootprintName ); component->SetFootprintName( aFootprintName ); // create the new component description description.Printf( CMP_FORMAT, componentIndex + 1, GetChars( component->GetReference() ), GetChars( component->GetValue() ), GetChars( component->GetFootprintLibName() ) ); GetChars( component->GetFootprintName() ) ); // If the component hasn't had a footprint associated with it // it now has, so we decrement the count of components without Loading Loading @@ -135,10 +135,10 @@ bool CVPCB_MAINFRAME::ReadNetListAndLinkFiles() msg.Printf( CMP_FORMAT, m_ListCmp->GetCount() + 1, GetChars( component->GetReference() ), GetChars( component->GetValue() ), GetChars( component->GetFootprintLibName() ) ); GetChars( component->GetFootprintName() ) ); m_ListCmp->AppendLine( msg ); if( component->GetFootprintLibName().IsEmpty() ) if( component->GetFootprintName().IsEmpty() ) m_undefinedComponentCnt += 1; } Loading