Audacity  2.2.2
CommandHandler.h
Go to the documentation of this file.
1 /**********************************************************************
2 
3  Audacity - A Digital Audio Editor
4  Copyright 1999-2009 Audacity Team
5  File License: wxWidgets
6 
7  Dan Horgan
8 
9 ******************************************************************//******************************************************************/
15 
16 #ifndef __COMMANDHANDLER__
17 #define __COMMANDHANDLER__
18 
19 #include "../MemoryX.h"
20 class AudacityApp;
21 class AudacityProject;
22 class AppCommandEvent;
23 class CommandContext;
24 
26 {
27  private:
28  std::unique_ptr<CommandContext> mCurrentContext;
29 
30  public:
33 
34  // This should only be used during initialization
35  void SetProject(AudacityProject *proj);
36 
37  // Whenever a command is received, process it.
38  void OnReceiveCommand(AppCommandEvent &event);
39 };
40 
41 #endif /* End of include guard: __COMMANDHANDLER__ */
CommandContext provides addiitonal information to an 'Apply()' command. It provides the project...
AudacityProject provides the main window, with tools and tracks contained within it.
Definition: Project.h:176
std::unique_ptr< CommandContext > mCurrentContext
Contains methods for applying commands that are passed to it.
AudacityApp is the 'main' class for Audacity.
Definition: AudacityApp.h:59
An event 'envelope' for sending Command objects through the wxwidgets event loop. ...
void OnReceiveCommand(AppCommandEvent &event)
void SetProject(AudacityProject *proj)