1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-08-02 17:09:26 +02:00

Fixed external linkage (DLL_API) for CommandManager so that menus become visible externally.

This commit is contained in:
james.k.crook@gmail.com 2011-04-24 17:03:13 +00:00
parent 98fec31a3e
commit 1425847c2f
2 changed files with 5 additions and 2 deletions

View File

@ -576,7 +576,7 @@ typedef void (AudacityProject::*audCommandListFunction)(int);
// Previously this was in menus.cpp, and the declaration of the // Previously this was in menus.cpp, and the declaration of the
// command functor was not visible anywhere else. // command functor was not visible anywhere else.
class AudacityProjectCommandFunctor : public CommandFunctor class AUDACITY_DLL_API AudacityProjectCommandFunctor : public CommandFunctor
{ {
public: public:
AudacityProjectCommandFunctor(AudacityProject *project, AudacityProjectCommandFunctor(AudacityProject *project,

View File

@ -20,7 +20,7 @@
#include "../AudacityApp.h" #include "../AudacityApp.h"
#include "../xml/XMLTagHandler.h" #include "../xml/XMLTagHandler.h"
class CommandFunctor class AUDACITY_DLL_API CommandFunctor
{ {
public: public:
CommandFunctor(){}; CommandFunctor(){};
@ -90,6 +90,9 @@ class AUDACITY_DLL_API CommandManager: public XMLTagHandler
wxMenu* BeginSubMenu(wxString tName); wxMenu* BeginSubMenu(wxString tName);
void EndSubMenu(); void EndSubMenu();
void SetToMenu( wxMenu * menu ){
mCurrentMenu = menu;
};
void InsertItem(wxString name, wxString label, CommandFunctor *callback, void InsertItem(wxString name, wxString label, CommandFunctor *callback,
wxString after, int checkmark = -1); wxString after, int checkmark = -1);