Group global editors under tools menu.

Also improves some terminology in Remove Unused Pads.
This commit is contained in:
Jeff Young 2021-01-10 16:37:06 +00:00
parent 60152bc00e
commit 9ce6c2be80
4 changed files with 11 additions and 9 deletions

View File

@ -167,7 +167,7 @@
<property name="caption"></property>
<property name="caption_visible">1</property>
<property name="center_pane">0</property>
<property name="choices">&quot;&amp;Remove unused layers&quot; &quot;&amp;Keep unused layers&quot;</property>
<property name="choices">&quot;&amp;Remove unused layers&quot; &quot;Res&amp;tore unused layers&quot;</property>
<property name="close_button">1</property>
<property name="context_help"></property>
<property name="context_menu">1</property>
@ -199,7 +199,7 @@
<property name="pin_button">1</property>
<property name="pos"></property>
<property name="resize">Resizable</property>
<property name="selection">0</property>
<property name="selection">1</property>
<property name="show">1</property>
<property name="size"></property>
<property name="style">wxRA_SPECIFY_COLS</property>

View File

@ -29,10 +29,10 @@ DIALOG_UNUSED_PAD_LAYERS_BASE::DIALOG_UNUSED_PAD_LAYERS_BASE( wxWindow* parent,
m_rbScope->SetSelection( 0 );
fgSizerProps->Add( m_rbScope, 1, wxEXPAND|wxTOP|wxBOTTOM|wxRIGHT, 5 );
wxString m_rbActionChoices[] = { _("&Remove unused layers"), _("&Keep unused layers") };
wxString m_rbActionChoices[] = { _("&Remove unused layers"), _("Res&tore unused layers") };
int m_rbActionNChoices = sizeof( m_rbActionChoices ) / sizeof( wxString );
m_rbAction = new wxRadioBox( this, wxID_ANY, _("Action"), wxDefaultPosition, wxDefaultSize, m_rbActionNChoices, m_rbActionChoices, 1, wxRA_SPECIFY_COLS );
m_rbAction->SetSelection( 0 );
m_rbAction->SetSelection( 1 );
fgSizerProps->Add( m_rbAction, 1, wxEXPAND|wxTOP|wxBOTTOM|wxRIGHT, 5 );
m_cbSelectedOnly = new wxCheckBox( this, wxID_ANY, _("&Selection only"), wxDefaultPosition, wxDefaultSize, 0 );

View File

@ -220,8 +220,6 @@ void PCB_EDIT_FRAME::ReCreateMenuBar()
editMenu->AppendSeparator();
editMenu->Add( ACTIONS::deleteTool );
editMenu->Add( PCB_ACTIONS::globalDeletions );
editMenu->Add( PCB_ACTIONS::cleanupTracksAndVias );
editMenu->Add( PCB_ACTIONS::cleanupGraphics );
//----- View menu -----------------------------------------------------------
@ -381,7 +379,6 @@ void PCB_EDIT_FRAME::ReCreateMenuBar()
ACTION_MENU* toolsMenu = new ACTION_MENU( false, selTool );
toolsMenu->Add( ACTIONS::updatePcbFromSchematic );
toolsMenu->Add( ACTIONS::updateSchematicFromPcb );
toolsMenu->Add( PCB_ACTIONS::showEeschema );
toolsMenu->AppendSeparator();
@ -389,10 +386,15 @@ void PCB_EDIT_FRAME::ReCreateMenuBar()
toolsMenu->Add( PCB_ACTIONS::updateFootprints );
toolsMenu->AppendSeparator();
toolsMenu->Add( PCB_ACTIONS::boardReannotate );
toolsMenu->Add( PCB_ACTIONS::cleanupTracksAndVias );
toolsMenu->Add( PCB_ACTIONS::removeUnusedPads );
toolsMenu->Add( PCB_ACTIONS::cleanupGraphics );
toolsMenu->Add( PCB_ACTIONS::repairBoard );
toolsMenu->AppendSeparator();
toolsMenu->Add( PCB_ACTIONS::boardReannotate );
toolsMenu->Add( ACTIONS::updateSchematicFromPcb );
#if defined(KICAD_SCRIPTING_WXPYTHON)
toolsMenu->AppendSeparator();
toolsMenu->Add( PCB_ACTIONS::showPythonConsole );

View File

@ -405,7 +405,7 @@ TOOL_ACTION PCB_ACTIONS::updateFootprints( "pcbnew.GlobalEdit.updateFootprints",
TOOL_ACTION PCB_ACTIONS::removeUnusedPads( "pcbnew.GlobalEdit.removeUnusedPads",
AS_GLOBAL, 0, "",
_( "Remove Unused Pads..." ),
_( "Remove or reset the unconnected inner layers on through hole pads and vias" ),
_( "Remove or restore the unconnected inner layers on through hole pads and vias" ),
pads_remove_xpm );
TOOL_ACTION PCB_ACTIONS::changeFootprint( "pcbnew.GlobalEdit.changeFootprint",