Standardize "assign footprints" terminology.
Fixes: lp:1760867 * https://bugs.launchpad.net/kicad/+bug/1760867
This commit is contained in:
parent
94dbcc7199
commit
611d5a0dc4
|
@ -106,7 +106,7 @@ END_EVENT_TABLE()
|
||||||
|
|
||||||
|
|
||||||
CVPCB_MAINFRAME::CVPCB_MAINFRAME( KIWAY* aKiway, wxWindow* aParent ) :
|
CVPCB_MAINFRAME::CVPCB_MAINFRAME( KIWAY* aKiway, wxWindow* aParent ) :
|
||||||
KIWAY_PLAYER( aKiway, aParent, FRAME_CVPCB, wxT( "CvPCB" ), wxDefaultPosition,
|
KIWAY_PLAYER( aKiway, aParent, FRAME_CVPCB, _( "Assign Footprints" ), wxDefaultPosition,
|
||||||
wxDefaultSize, KICAD_DEFAULT_DRAWFRAME_STYLE, CVPCB_MAINFRAME_NAME )
|
wxDefaultSize, KICAD_DEFAULT_DRAWFRAME_STYLE, CVPCB_MAINFRAME_NAME )
|
||||||
{
|
{
|
||||||
m_compListBox = NULL;
|
m_compListBox = NULL;
|
||||||
|
@ -146,8 +146,6 @@ CVPCB_MAINFRAME::CVPCB_MAINFRAME( KIWAY* aKiway, wxWindow* aParent ) :
|
||||||
|
|
||||||
m_auimgr.SetManagedWindow( this );
|
m_auimgr.SetManagedWindow( this );
|
||||||
|
|
||||||
UpdateTitle();
|
|
||||||
|
|
||||||
EDA_PANEINFO horiz;
|
EDA_PANEINFO horiz;
|
||||||
horiz.HorizontalToolbarPane();
|
horiz.HorizontalToolbarPane();
|
||||||
|
|
||||||
|
@ -753,27 +751,6 @@ bool CVPCB_MAINFRAME::LoadFootprintFiles()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void CVPCB_MAINFRAME::UpdateTitle()
|
|
||||||
{
|
|
||||||
wxString title;
|
|
||||||
PROJECT& prj = Prj();
|
|
||||||
wxFileName fn = prj.GetProjectFullName();
|
|
||||||
|
|
||||||
if( fn.IsOk() && !prj.GetProjectFullName().IsEmpty() && fn.FileExists() )
|
|
||||||
{
|
|
||||||
title.Printf( _( "Cvpcb" ) + wxT( " \u2014 %s%s" ),
|
|
||||||
fn.GetFullPath(),
|
|
||||||
fn.IsFileWritable() ? wxString( wxEmptyString ) : _( " [Read Only]" ) );
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
title = "Cvpcb";
|
|
||||||
}
|
|
||||||
|
|
||||||
SetTitle( title );
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
void CVPCB_MAINFRAME::SendMessageToEESCHEMA()
|
void CVPCB_MAINFRAME::SendMessageToEESCHEMA()
|
||||||
{
|
{
|
||||||
if( m_netlist.IsEmpty() )
|
if( m_netlist.IsEmpty() )
|
||||||
|
|
|
@ -279,16 +279,6 @@ public:
|
||||||
*/
|
*/
|
||||||
PARAM_CFG_ARRAY& GetProjectFileParameters( void );
|
PARAM_CFG_ARRAY& GetProjectFileParameters( void );
|
||||||
|
|
||||||
/**
|
|
||||||
* Function UpdateTitle
|
|
||||||
* sets the main window title bar text.
|
|
||||||
* <p>
|
|
||||||
* If no current project open( eeschema run outside kicad manager with no schematic loaded),
|
|
||||||
* the title is set to the application name appended with "no project".
|
|
||||||
* Otherwise, the title shows the project name.
|
|
||||||
*/
|
|
||||||
void UpdateTitle();
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Function SendMessageToEESCHEMA
|
* Function SendMessageToEESCHEMA
|
||||||
* Send a remote command to Eeschema via a socket,
|
* Send a remote command to Eeschema via a socket,
|
||||||
|
|
|
@ -368,7 +368,6 @@ bool CVPCB_MAINFRAME::ReadNetListAndFpFiles( const std::string& aNetlist )
|
||||||
|
|
||||||
DisplayStatus();
|
DisplayStatus();
|
||||||
|
|
||||||
UpdateTitle();
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -623,8 +623,8 @@ void prepareToolsMenu( wxMenu* aParentMenu )
|
||||||
// Run CvPcb
|
// Run CvPcb
|
||||||
AddMenuItem( aParentMenu,
|
AddMenuItem( aParentMenu,
|
||||||
ID_RUN_CVPCB,
|
ID_RUN_CVPCB,
|
||||||
_( "A&ssign Footprints" ),
|
_( "A&ssign Footprints..." ),
|
||||||
_( "Run CvPcb" ),
|
_( "Assign PCB footprints to schematic symbols" ),
|
||||||
KiBitmap( cvpcb_xpm ) );
|
KiBitmap( cvpcb_xpm ) );
|
||||||
|
|
||||||
aParentMenu->AppendSeparator();
|
aParentMenu->AppendSeparator();
|
||||||
|
|
Loading…
Reference in New Issue