1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-12-15 09:01:12 +01:00

CommandManager.cpp does not depend on EffectManager...

... some code lifted into BatchCommands.cpp to realize this.

It also doesn't depend on PluginManager, but that is not important for breaking
cycles.
This commit is contained in:
Paul Licameli
2019-06-14 00:50:21 -04:00
parent c506536912
commit b84f5b66f0
6 changed files with 69 additions and 35 deletions

View File

@@ -15,10 +15,12 @@
#include <wx/defs.h>
#include "export/Export.h"
#include "commands/CommandFlag.h"
class wxArrayString;
class Effect;
class CommandContext;
class CommandManager;
class AudacityProject;
class wxArrayStringEx;
@@ -57,6 +59,9 @@ class MacroCommands final {
public:
bool ApplyMacro( const MacroCommandsCatalog &catalog,
const wxString & filename = {});
static bool HandleTextualCommand( CommandManager &commandManager,
const CommandID & Str,
const CommandContext & context, CommandFlag flags, bool alwaysEnabled);
bool ApplyCommand( const wxString &friendlyCommand,
const CommandID & command, const wxString & params,
CommandContext const * pContext=NULL );