1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-21 14:02:57 +02:00

Move "Help Menu" after "Extra Menu".

This commit is contained in:
James Crook
2018-07-05 19:34:16 +01:00
parent 29ec921c8b
commit d057dfb5d8
3 changed files with 83 additions and 57 deletions

View File

@@ -598,6 +598,20 @@ wxMenuBar * CommandManager::CurrentMenuBar() const
return mMenuBarList.back().menubar;
}
///
/// Swap the last two menu bars in the list,
/// to make the previous menu bar 'current' again.
/// Typically used to switch back and forth
/// between adding to a hidden menu bar and
/// adding to one that is visible,
///
void CommandManager::SwapMenuBars()
{
int l = mMenuBarList.size();
wxASSERT(l >= 2);
std::swap(mMenuBarList[l - 2], mMenuBarList[l - 1]);
}
///
/// This starts a NEW menu

View File

@@ -234,6 +234,7 @@ class AUDACITY_DLL_API CommandManager final : public XMLTagHandler
CommandFlag GetDefaultFlags() const { return mDefaultFlags; }
CommandMask GetDefaultMask() const { return mDefaultMask; }
void SwapMenuBars();
void SetOccultCommands( bool bOccult);
CommandManager * SetLongName( const wxString & name ){
mLongNameForItem = name;