1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-11-03 07:33:49 +01:00

Added missing header declarations for AudacityProjectCommandFunctor.

This commit is contained in:
james.k.crook@gmail.com
2011-04-24 16:02:10 +00:00
parent 21851193de
commit 98fec31a3e
2 changed files with 54 additions and 42 deletions

View File

@@ -571,5 +571,28 @@ class AUDACITY_DLL_API AudacityProject: public wxFrame,
DECLARE_EVENT_TABLE()
};
typedef void (AudacityProject::*audCommandFunction)();
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
{
public:
AudacityProjectCommandFunctor(AudacityProject *project,
audCommandFunction commandFunction);
AudacityProjectCommandFunctor(AudacityProject *project,
audCommandListFunction commandFunction);
AudacityProjectCommandFunctor(AudacityProject *project,
audCommandListFunction commandFunction,
wxArrayInt explicitIndices);
virtual void operator()(int index = 0);
private:
AudacityProject *mProject;
audCommandFunction mCommandFunction;
audCommandListFunction mCommandListFunction;
wxArrayInt mExplicitIndices;
};
#endif