mirror of
https://github.com/cookiengineer/audacity
synced 2025-08-02 08:59:28 +02:00
Fixed external linkage (DLL_API) for CommandManager so that menus become visible externally.
This commit is contained in:
parent
98fec31a3e
commit
1425847c2f
@ -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,
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user