Trim down ever-expanding context menu.
This commit is contained in:
parent
308ab8cafa
commit
7f8faffa3a
|
@ -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 );
|
||||
|
|
|
@ -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 );
|
||||
|
||||
|
|
Loading…
Reference in New Issue