ROUTER_TOOL_MENU: add zoom selection to this menu.

This commit is contained in:
jean-pierre charras 2017-01-20 08:51:12 +01:00
parent d51d53c6b9
commit adb679dc46
2 changed files with 7 additions and 3 deletions

View File

@ -281,7 +281,7 @@ void EDA_DRAW_FRAME::AddMenuZoomAndGrid( wxMenu* MasterMenu )
{
wxMenu* gridMenu = new wxMenu;
AddMenuItem( MasterMenu, gridMenu, ID_POPUP_GRID_SELECT,
_( "Grid Select" ), KiBitmap( grid_select_xpm ) );
_( "Grid select" ), KiBitmap( grid_select_xpm ) );
wxArrayString gridsList;
int icurr = screen->BuildGridsChoiceList( gridsList, g_UserUnit != INCHES );

View File

@ -50,6 +50,7 @@ using namespace std::placeholders;
#include <tools/selection_tool.h>
#include <tools/edit_tool.h>
#include <tools/grid_menu.h>
#include <tools/zoom_menu.h>
#include <ratsnest_data.h>
@ -210,7 +211,7 @@ class ROUTER_TOOL_MENU: public CONTEXT_MENU
{
public:
ROUTER_TOOL_MENU( BOARD* aBoard, PCB_EDIT_FRAME& frame, PNS::ROUTER_MODE aMode ) :
m_gridMenu( &frame )
m_zoomMenu( &frame ), m_gridMenu( &frame )
{
SetTitle( _( "Interactive Router" ) );
Add( ACT_NewTrack );
@ -235,11 +236,14 @@ public:
AppendSeparator();
Add( PNS::TOOL_BASE::ACT_RouterOptions );
Add( &m_gridMenu, _( "Grid" ), false );
AppendSeparator();
Add( &m_zoomMenu, _( "Zoom select" ), false );
Add( &m_gridMenu, _( "Grid select" ), false );
}
private:
CONTEXT_TRACK_WIDTH_MENU m_widthMenu;
ZOOM_MENU m_zoomMenu;
GRID_MENU m_gridMenu;
};