Group global editors under tools menu.
Also improves some terminology in Remove Unused Pads.
This commit is contained in:
parent
60152bc00e
commit
9ce6c2be80
|
@ -167,7 +167,7 @@
|
|||
<property name="caption"></property>
|
||||
<property name="caption_visible">1</property>
|
||||
<property name="center_pane">0</property>
|
||||
<property name="choices">"&Remove unused layers" "&Keep unused layers"</property>
|
||||
<property name="choices">"&Remove unused layers" "Res&tore unused layers"</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>
|
||||
|
|
|
@ -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 );
|
||||
|
|
|
@ -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 );
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue