More renaming instances of module to footprint for consistency.
This commit is contained in:
parent
0561940db0
commit
40f044bd8d
|
@ -95,7 +95,7 @@ void PCB_EDIT_FRAME::Autoroute( wxDC* DC, int mode )
|
||||||
Module = (MODULE*) GetScreen()->GetCurItem();
|
Module = (MODULE*) GetScreen()->GetCurItem();
|
||||||
if( (Module == NULL) || (Module->Type() != PCB_MODULE_T) )
|
if( (Module == NULL) || (Module->Type() != PCB_MODULE_T) )
|
||||||
{
|
{
|
||||||
wxMessageBox( _( "Module not selected" ) );
|
wxMessageBox( _( "Footprint not selected" ) );
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -136,7 +136,7 @@ void PCB_EDIT_FRAME::OnPlaceOrRouteFootprints( wxCommandEvent& event )
|
||||||
case ID_POPUP_PCB_SPREAD_NEW_MODULES:
|
case ID_POPUP_PCB_SPREAD_NEW_MODULES:
|
||||||
if( GetBoard()->m_Modules == NULL )
|
if( GetBoard()->m_Modules == NULL )
|
||||||
{
|
{
|
||||||
DisplayError( this, _( "No modules found!" ) );
|
DisplayError( this, _( "No footprint found!" ) );
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -384,7 +384,7 @@ void TEXTE_MODULE::GetMsgPanelInfo( std::vector< MSG_PANEL_ITEM >& aList )
|
||||||
};
|
};
|
||||||
|
|
||||||
Line = module->GetReference();
|
Line = module->GetReference();
|
||||||
aList.push_back( MSG_PANEL_ITEM( _( "Module" ), Line, DARKCYAN ) );
|
aList.push_back( MSG_PANEL_ITEM( _( "Footprint" ), Line, DARKCYAN ) );
|
||||||
|
|
||||||
Line = GetShownText();
|
Line = GetShownText();
|
||||||
aList.push_back( MSG_PANEL_ITEM( _( "Text" ), Line, BROWN ) );
|
aList.push_back( MSG_PANEL_ITEM( _( "Text" ), Line, BROWN ) );
|
||||||
|
|
|
@ -209,7 +209,7 @@ void DIALOG_NETLIST::OnTestFootprintsClick( wxCommandEvent& event )
|
||||||
{
|
{
|
||||||
if( m_parent->GetBoard()->m_Modules == NULL )
|
if( m_parent->GetBoard()->m_Modules == NULL )
|
||||||
{
|
{
|
||||||
DisplayInfoMessage( this, _( "No modules" ) );
|
DisplayInfoMessage( this, _( "No footprints" ) );
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -268,7 +268,7 @@ void DIALOG_NETLIST::OnTestFootprintsClick( wxCommandEvent& event )
|
||||||
|
|
||||||
// Search for missing modules on board.
|
// Search for missing modules on board.
|
||||||
if( missing.size() == 0 )
|
if( missing.size() == 0 )
|
||||||
list << wxT("<p><b>") << _( "No missing modules." ) << wxT("</b></p>");
|
list << wxT("<p><b>") << _( "No missing footprints." ) << wxT("</b></p>");
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
list << wxT("<p><b>") << _( "Missing:" ) << wxT("</b></p>");
|
list << wxT("<p><b>") << _( "Missing:" ) << wxT("</b></p>");
|
||||||
|
@ -287,7 +287,7 @@ void DIALOG_NETLIST::OnTestFootprintsClick( wxCommandEvent& event )
|
||||||
|
|
||||||
// Search for modules found on board but not in net list.
|
// Search for modules found on board but not in net list.
|
||||||
if( notInNetlist.size() == 0 )
|
if( notInNetlist.size() == 0 )
|
||||||
list << wxT( "<p><b>" ) << _( "No extra modules." ) << wxT( "</b></p>" );
|
list << wxT( "<p><b>" ) << _( "No extra footprints." ) << wxT( "</b></p>" );
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
list << wxT( "<p><b>" ) << _( "Not in Netlist:" ) << wxT( "</b></p>" );
|
list << wxT( "<p><b>" ) << _( "Not in Netlist:" ) << wxT( "</b></p>" );
|
||||||
|
@ -319,7 +319,7 @@ void DIALOG_NETLIST::OnTestFootprintsClick( wxCommandEvent& event )
|
||||||
<< wxT( "</b></p>" );
|
<< wxT( "</b></p>" );
|
||||||
}
|
}
|
||||||
|
|
||||||
HTML_MESSAGE_BOX dlg( this, _( "Check Modules" ) );
|
HTML_MESSAGE_BOX dlg( this, _( "Check footprints" ) );
|
||||||
dlg.AddHTML_Text( list );
|
dlg.AddHTML_Text( list );
|
||||||
dlg.ShowModal();
|
dlg.ShowModal();
|
||||||
}
|
}
|
||||||
|
|
|
@ -554,9 +554,9 @@ void PCB_EDIT_FRAME::GenFootprintsReport( wxCommandEvent& event )
|
||||||
wxString msg;
|
wxString msg;
|
||||||
if( success )
|
if( success )
|
||||||
{
|
{
|
||||||
msg.Printf( _( "Module report file created:\n'%s'" ),
|
msg.Printf( _( "Footprint report file created:\n'%s'" ),
|
||||||
GetChars( fn.GetFullPath() ) );
|
GetChars( fn.GetFullPath() ) );
|
||||||
wxMessageBox( msg, _( "Module Report" ), wxICON_INFORMATION );
|
wxMessageBox( msg, _( "Footprint Report" ), wxICON_INFORMATION );
|
||||||
}
|
}
|
||||||
|
|
||||||
else
|
else
|
||||||
|
|
|
@ -415,10 +415,10 @@ wxString PCB_BASE_FRAME::SelectFootprint( EDA_DRAW_FRAME* aWindow,
|
||||||
{
|
{
|
||||||
wxArrayString headers;
|
wxArrayString headers;
|
||||||
|
|
||||||
headers.Add( _( "Module" ) );
|
headers.Add( _( "Footprint" ) );
|
||||||
headers.Add( _( "Library" ) );
|
headers.Add( _( "Library" ) );
|
||||||
|
|
||||||
msg.Printf( _( "Modules [%d items]" ), (int) rows.size() );
|
msg.Printf( _( "Footprints [%d items]" ), (int) rows.size() );
|
||||||
|
|
||||||
EDA_LIST_DIALOG dlg( aWindow, msg, headers, rows, oldName, DisplayCmpDoc );
|
EDA_LIST_DIALOG dlg( aWindow, msg, headers, rows, oldName, DisplayCmpDoc );
|
||||||
|
|
||||||
|
|
|
@ -148,7 +148,7 @@ MODULE* PCB_EDIT_FRAME::ListAndSelectModuleName()
|
||||||
{
|
{
|
||||||
if( GetBoard()->m_Modules == NULL )
|
if( GetBoard()->m_Modules == NULL )
|
||||||
{
|
{
|
||||||
DisplayError( this, _( "No Modules" ) );
|
DisplayError( this, _( "No footprints" ) );
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -391,7 +391,7 @@ bool DIALOG_EXCHANGE_MODULE::Change_1_Module( MODULE* aModule,
|
||||||
FPID oldFootprintFPID = aModule->GetFPID();
|
FPID oldFootprintFPID = aModule->GetFPID();
|
||||||
|
|
||||||
// Load module.
|
// Load module.
|
||||||
line.Printf( _( "Change module '%s' (from '%s') to '%s'" ),
|
line.Printf( _( "Change footprint '%s' (from '%s') to '%s'" ),
|
||||||
GetChars( aModule->GetReference() ),
|
GetChars( aModule->GetReference() ),
|
||||||
oldFootprintFPID.Format().c_str(),
|
oldFootprintFPID.Format().c_str(),
|
||||||
aNewFootprintFPID.Format().c_str() );
|
aNewFootprintFPID.Format().c_str() );
|
||||||
|
@ -519,7 +519,7 @@ void PCB_EDIT_FRAME::RecreateCmpFileFromBoard( wxCommandEvent& aEvent )
|
||||||
|
|
||||||
if( module == NULL )
|
if( module == NULL )
|
||||||
{
|
{
|
||||||
DisplayError( this, _( "No Modules!" ) );
|
DisplayError( this, _( "No footprints!" ) );
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue