Put Place & Inspect menus in standard order.
This commit is contained in:
parent
4fcfd266e0
commit
d094934cf4
|
@ -172,8 +172,7 @@ wxMenuItem* ACTION_MENU::Add( const TOOL_ACTION& aAction, bool aIsCheckmarkEntry
|
||||||
|
|
||||||
m_toolActions[getMenuId( aAction )] = &aAction;
|
m_toolActions[getMenuId( aAction )] = &aAction;
|
||||||
|
|
||||||
wxMenuItem* i = Append( item );
|
return Append( item );
|
||||||
return i;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -138,12 +138,6 @@ void PL_EDITOR_FRAME::ReCreateMenuBar()
|
||||||
|
|
||||||
viewMenu->Resolve();
|
viewMenu->Resolve();
|
||||||
|
|
||||||
//-- Inspector menu -------------------------------------------------------
|
|
||||||
//
|
|
||||||
CONDITIONAL_MENU* inspectorMenu = new CONDITIONAL_MENU( false, selTool );
|
|
||||||
inspectorMenu->AddItem( PL_ACTIONS::showInspector, SELECTION_CONDITIONS::ShowAlways );
|
|
||||||
inspectorMenu->Resolve();
|
|
||||||
|
|
||||||
//-- Place menu -------------------------------------------------------
|
//-- Place menu -------------------------------------------------------
|
||||||
//
|
//
|
||||||
CONDITIONAL_MENU* placeMenu = new CONDITIONAL_MENU( false, selTool );
|
CONDITIONAL_MENU* placeMenu = new CONDITIONAL_MENU( false, selTool );
|
||||||
|
@ -158,6 +152,13 @@ void PL_EDITOR_FRAME::ReCreateMenuBar()
|
||||||
|
|
||||||
placeMenu->Resolve();
|
placeMenu->Resolve();
|
||||||
|
|
||||||
|
//-- Inspector menu -------------------------------------------------------
|
||||||
|
//
|
||||||
|
CONDITIONAL_MENU* inspectorMenu = new CONDITIONAL_MENU( false, selTool );
|
||||||
|
inspectorMenu->AddItem( PL_ACTIONS::showInspector, SELECTION_CONDITIONS::ShowAlways );
|
||||||
|
|
||||||
|
inspectorMenu->Resolve();
|
||||||
|
|
||||||
//-- Preferences menu --------------------------------------------------
|
//-- Preferences menu --------------------------------------------------
|
||||||
//
|
//
|
||||||
CONDITIONAL_MENU* preferencesMenu = new CONDITIONAL_MENU( false, selTool );
|
CONDITIONAL_MENU* preferencesMenu = new CONDITIONAL_MENU( false, selTool );
|
||||||
|
@ -177,8 +178,8 @@ void PL_EDITOR_FRAME::ReCreateMenuBar()
|
||||||
menuBar->Append( fileMenu, _( "&File" ) );
|
menuBar->Append( fileMenu, _( "&File" ) );
|
||||||
menuBar->Append( editMenu, _( "&Edit" ) );
|
menuBar->Append( editMenu, _( "&Edit" ) );
|
||||||
menuBar->Append( viewMenu, _( "&View" ) );
|
menuBar->Append( viewMenu, _( "&View" ) );
|
||||||
menuBar->Append( inspectorMenu, _( "&Inspect" ) );
|
|
||||||
menuBar->Append( placeMenu, _( "&Place" ) );
|
menuBar->Append( placeMenu, _( "&Place" ) );
|
||||||
|
menuBar->Append( inspectorMenu, _( "&Inspect" ) );
|
||||||
menuBar->Append( preferencesMenu, _( "P&references" ) );
|
menuBar->Append( preferencesMenu, _( "P&references" ) );
|
||||||
AddStandardHelpMenu( menuBar );
|
AddStandardHelpMenu( menuBar );
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue