UI improvements for Manage Symbol Libraries.
Fixes https://gitlab.com/kicad/code/kicad/issues/8466
This commit is contained in:
parent
49de9e405e
commit
de95edb5ad
|
@ -720,22 +720,22 @@ void PANEL_SYM_LIB_TABLE::onConvertLegacyLibraries( wxCommandEvent& event )
|
||||||
|
|
||||||
if( legacyRows.size() <= 0 )
|
if( legacyRows.size() <= 0 )
|
||||||
{
|
{
|
||||||
wxMessageBox( _( "Select one or more table rows containing legacy libraries to save as "
|
wxMessageBox( _( "Select one or more rows containing libraries in Legacy format (*.lib) "
|
||||||
"current format (*.kicad_sym)." ) );
|
"to save as current KiCad format (*.kicad_sym)." ) );
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if( legacyRows.size() == 1 )
|
if( legacyRows.size() == 1 )
|
||||||
{
|
{
|
||||||
msg.Printf( _( "Save '%s' as current format (*.kicad_sym) and "
|
msg.Printf( _( "Save '%s' as current KiCad format (*.kicad_sym) "
|
||||||
"replace legacy entry in table?" ),
|
"and replace legacy entry in table?" ),
|
||||||
m_cur_grid->GetCellValue( legacyRows[0], COL_NICKNAME ) );
|
m_cur_grid->GetCellValue( legacyRows[0], COL_NICKNAME ) );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
msg.Printf( _( "Save %d legacy libraries as current format (*.kicad_sym) and "
|
msg.Printf( _( "Save %d Legacy format libraries as current KiCad format (*.kicad_sym) "
|
||||||
"replace legacy entries in table?" ),
|
"and replace legacy entries in table?" ),
|
||||||
(int) legacyRows.size() );
|
(int) legacyRows.size() );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -132,7 +132,7 @@ PANEL_SYM_LIB_TABLE_BASE::PANEL_SYM_LIB_TABLE_BASE( wxWindow* parent, wxWindowID
|
||||||
|
|
||||||
bSizer51->Add( 0, 0, 1, wxEXPAND, 5 );
|
bSizer51->Add( 0, 0, 1, wxEXPAND, 5 );
|
||||||
|
|
||||||
m_convertLegacy = new wxButton( m_top_sizer->GetStaticBox(), wxID_ANY, _("Migrate Libraries..."), wxDefaultPosition, wxDefaultSize, 0 );
|
m_convertLegacy = new wxButton( m_top_sizer->GetStaticBox(), wxID_ANY, _("Migrate Libraries"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
bSizer51->Add( m_convertLegacy, 0, wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
|
bSizer51->Add( m_convertLegacy, 0, wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -859,7 +859,7 @@
|
||||||
<property name="gripper">0</property>
|
<property name="gripper">0</property>
|
||||||
<property name="hidden">0</property>
|
<property name="hidden">0</property>
|
||||||
<property name="id">wxID_ANY</property>
|
<property name="id">wxID_ANY</property>
|
||||||
<property name="label">Migrate Libraries...</property>
|
<property name="label">Migrate Libraries</property>
|
||||||
<property name="margins"></property>
|
<property name="margins"></property>
|
||||||
<property name="markup">0</property>
|
<property name="markup">0</property>
|
||||||
<property name="max_size"></property>
|
<property name="max_size"></property>
|
||||||
|
|
|
@ -183,8 +183,8 @@ public:
|
||||||
case COL_NICKNAME: return _( "Nickname" );
|
case COL_NICKNAME: return _( "Nickname" );
|
||||||
case COL_URI: return _( "Library Path" );
|
case COL_URI: return _( "Library Path" );
|
||||||
|
|
||||||
// keep this "Plugin Type" text fairly long so column is sized wide enough
|
// keep this "Library Format" text fairly long so column is sized wide enough
|
||||||
case COL_TYPE: return _( "Plugin Type" );
|
case COL_TYPE: return _( "Library Format" );
|
||||||
case COL_OPTIONS: return _( "Options" );
|
case COL_OPTIONS: return _( "Options" );
|
||||||
case COL_DESCR: return _( "Description" );
|
case COL_DESCR: return _( "Description" );
|
||||||
case COL_ENABLED: return _( "Active" );
|
case COL_ENABLED: return _( "Active" );
|
||||||
|
|
Loading…
Reference in New Issue