Trim down ever-expanding context menu.

This commit is contained in:
Jeff Young 2020-12-01 00:27:33 +00:00
parent 308ab8cafa
commit 7f8faffa3a
2 changed files with 2 additions and 10 deletions

View File

@ -438,14 +438,6 @@ void EDA_DRAW_FRAME::AddStandardSubMenus( TOOL_MENU& aToolMenu )
COMMON_TOOLS* commonTools = m_toolManager->GetTool<COMMON_TOOLS>();
CONDITIONAL_MENU& aMenu = aToolMenu.GetMenu();
aMenu.AddSeparator( 1000 );
aMenu.AddItem( ACTIONS::zoomCenter, SELECTION_CONDITIONS::ShowAlways, 1000 );
aMenu.AddItem( ACTIONS::zoomIn, SELECTION_CONDITIONS::ShowAlways, 1000 );
aMenu.AddItem( ACTIONS::zoomOut, SELECTION_CONDITIONS::ShowAlways, 1000 );
aMenu.AddItem( ACTIONS::zoomFitScreen, SELECTION_CONDITIONS::ShowAlways, 1000 );
if( IsType( FRAME_SCH ) || IsType( FRAME_PCB_EDITOR ) )
aMenu.AddItem( ACTIONS::zoomFitObjects, SELECTION_CONDITIONS::ShowAlways, 1000 );
aMenu.AddSeparator( 1000 );
auto zoomMenu = std::make_shared<ZOOM_MENU>( this );

View File

@ -50,7 +50,7 @@ void CVPCB_MAINFRAME::ReCreateMenuBar()
fileMenu->AppendSeparator();
fileMenu->AddClose( _( "Assign Footprints" ) );
//-- Preferences menu -----------------------------------------------
//-- Edit menu -----------------------------------------------------------
//
ACTION_MENU* editMenu = new ACTION_MENU( false, tool );
@ -62,7 +62,7 @@ void CVPCB_MAINFRAME::ReCreateMenuBar()
editMenu->Add( ACTIONS::copy );
editMenu->Add( ACTIONS::paste );
//-- Preferences menu -----------------------------------------------
//-- Preferences menu ----------------------------------------------------
//
ACTION_MENU* prefsMenu = new ACTION_MENU( false, tool );