Audacity 3.2.0
CommandDispatch.h
Go to the documentation of this file.
1/**********************************************************************
2
3 Audacity: A Digital Audio Editor
4
5 @file CommandDispatch.h
6 @brief Interpret text as a command or effect name
7
8 Paul Licameli split from BatchCommands.h
9
10**********************************************************************/
11
12#ifndef __AUDACITY_COMMAND_DISPATCH
13#define __AUDACITY_COMMAND_DISPATCH
14
15#include "CommandFlag.h"
16#include "Identifier.h" // for CommandID
17
18class CommandContext;
19
20using PluginID = wxString;
21
22namespace CommandDispatch {
23AUDACITY_DLL_API bool HandleTextualCommand(
24 const CommandID & Str,
25 const CommandContext & context, CommandFlag flags, bool alwaysEnabled);
26
27AUDACITY_DLL_API bool DoAudacityCommand(
28 const PluginID & ID, const CommandContext & context, unsigned flags );
29
30AUDACITY_DLL_API void OnAudacityCommand(const CommandContext & ctx);
31}
32
33#endif
wxString PluginID
std::bitset< NCommandFlags > CommandFlag
Definition: CommandFlag.h:30
CommandContext provides additional information to an 'Apply()' command. It provides the project,...
AUDACITY_DLL_API bool DoAudacityCommand(const PluginID &ID, const CommandContext &context, unsigned flags)
AUDACITY_DLL_API bool HandleTextualCommand(const CommandID &Str, const CommandContext &context, CommandFlag flags, bool alwaysEnabled)
AUDACITY_DLL_API void OnAudacityCommand(const CommandContext &ctx)