From 1425847c2f6a4f915c6ae7351428e30ae1259064 Mon Sep 17 00:00:00 2001 From: "james.k.crook@gmail.com" Date: Sun, 24 Apr 2011 17:03:13 +0000 Subject: [PATCH] Fixed external linkage (DLL_API) for CommandManager so that menus become visible externally. --- src/Project.h | 2 +- src/commands/CommandManager.h | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/Project.h b/src/Project.h index 1f1214845..d08b736b1 100644 --- a/src/Project.h +++ b/src/Project.h @@ -576,7 +576,7 @@ typedef void (AudacityProject::*audCommandListFunction)(int); // Previously this was in menus.cpp, and the declaration of the // command functor was not visible anywhere else. -class AudacityProjectCommandFunctor : public CommandFunctor +class AUDACITY_DLL_API AudacityProjectCommandFunctor : public CommandFunctor { public: AudacityProjectCommandFunctor(AudacityProject *project, diff --git a/src/commands/CommandManager.h b/src/commands/CommandManager.h index 36492e5cd..7aa01d4bd 100644 --- a/src/commands/CommandManager.h +++ b/src/commands/CommandManager.h @@ -20,7 +20,7 @@ #include "../AudacityApp.h" #include "../xml/XMLTagHandler.h" -class CommandFunctor +class AUDACITY_DLL_API CommandFunctor { public: CommandFunctor(){}; @@ -90,6 +90,9 @@ class AUDACITY_DLL_API CommandManager: public XMLTagHandler wxMenu* BeginSubMenu(wxString tName); void EndSubMenu(); + void SetToMenu( wxMenu * menu ){ + mCurrentMenu = menu; + }; void InsertItem(wxString name, wxString label, CommandFunctor *callback, wxString after, int checkmark = -1);