1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-11-28 16:20:12 +01:00

Fix build of Nyquist Workbench

This commit is contained in:
Leland Lucius
2016-10-01 14:05:53 -05:00
parent 921b769b52
commit 2ab0c13101
4 changed files with 39 additions and 26 deletions

View File

@@ -581,6 +581,16 @@ wxMenu * CommandManager::CurrentMenu() const
return tmpCurrentSubMenu;
}
void CommandManager::SetCurrentMenu(wxMenu * menu)
{
mCurrentMenu.reset(menu);
}
void CommandManager::ClearCurrentMenu()
{
mCurrentMenu.release();
}
///
/// Add a menu item to the current menu. When the user selects it, the
/// given functor will be called

View File

@@ -198,6 +198,8 @@ class AUDACITY_DLL_API CommandManager final : public XMLTagHandler
void Enable(const wxString &name, bool enabled);
void Check(const wxString &name, bool checked);
void Modify(const wxString &name, const wxString &newLabel);
void SetCurrentMenu(wxMenu * menu);
void ClearCurrentMenu();
//
// Modifying accelerators