From 2a334a5c5928356d9d24e33a42b5b65d6e35210c Mon Sep 17 00:00:00 2001 From: Eli Date: Mon, 15 Jun 2020 02:55:20 +0100 Subject: [PATCH] Updates wording used in alignment submenu to make the actions clearer when icons are missing. Also reorganises the order of items in the submenu. --- pcbnew/tools/pcb_actions.cpp | 4 ++-- pcbnew/tools/placement_tool.cpp | 8 +++++--- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/pcbnew/tools/pcb_actions.cpp b/pcbnew/tools/pcb_actions.cpp index 426e68b28d..af32549068 100644 --- a/pcbnew/tools/pcb_actions.cpp +++ b/pcbnew/tools/pcb_actions.cpp @@ -959,12 +959,12 @@ TOOL_ACTION PCB_ACTIONS::alignRight( "pcbnew.AlignAndDistribute.alignRight", TOOL_ACTION PCB_ACTIONS::alignCenterX( "pcbnew.AlignAndDistribute.alignCenterX", AS_GLOBAL, 0, "", - _( "Align to Middle" ), + _( "Align to Vertical Center" ), _( "Aligns selected items to the vertical center" ), align_items_middle_xpm ); TOOL_ACTION PCB_ACTIONS::alignCenterY( "pcbnew.AlignAndDistribute.alignCenterY", AS_GLOBAL, 0, "", - _( "Align to Center" ), + _( "Align to Horizontal Center" ), _( "Aligns selected items to the horizontal center" ), align_items_center_xpm ); TOOL_ACTION PCB_ACTIONS::distributeHorizontally( "pcbnew.AlignAndDistribute.distributeHorizontally", diff --git a/pcbnew/tools/placement_tool.cpp b/pcbnew/tools/placement_tool.cpp index 2dd3c5e53c..e64c4669f7 100644 --- a/pcbnew/tools/placement_tool.cpp +++ b/pcbnew/tools/placement_tool.cpp @@ -66,12 +66,14 @@ bool ALIGN_DISTRIBUTE_TOOL::Init() m_placementMenu->SetTitle( _( "Align/Distribute" ) ); // Add all align/distribute commands - m_placementMenu->Add( PCB_ACTIONS::alignTop ); - m_placementMenu->Add( PCB_ACTIONS::alignBottom ); m_placementMenu->Add( PCB_ACTIONS::alignLeft ); - m_placementMenu->Add( PCB_ACTIONS::alignRight ); m_placementMenu->Add( PCB_ACTIONS::alignCenterX ); + m_placementMenu->Add( PCB_ACTIONS::alignRight ); + + m_placementMenu->AppendSeparator(); + m_placementMenu->Add( PCB_ACTIONS::alignTop ); m_placementMenu->Add( PCB_ACTIONS::alignCenterY ); + m_placementMenu->Add( PCB_ACTIONS::alignBottom ); m_placementMenu->AppendSeparator(); m_placementMenu->Add( PCB_ACTIONS::distributeHorizontally );