Audacity
3.2.0
src
commands
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
18
class
CommandContext
;
19
20
using
PluginID
= wxString;
21
22
namespace
CommandDispatch
{
23
AUDACITY_DLL_API
bool
HandleTextualCommand
(
24
const
CommandID
& Str,
25
const
CommandContext
& context,
CommandFlag
flags,
bool
alwaysEnabled);
26
27
AUDACITY_DLL_API
bool
DoAudacityCommand
(
28
const
PluginID
& ID,
const
CommandContext
& context,
unsigned
flags );
29
30
AUDACITY_DLL_API
void
OnAudacityCommand
(
const
CommandContext
& ctx);
31
}
32
33
#endif
PluginID
wxString PluginID
Definition:
CommandDispatch.h:20
CommandFlag.h
CommandFlag
std::bitset< NCommandFlags > CommandFlag
Definition:
CommandFlag.h:30
Identifier.h
CommandContext
CommandContext provides additional information to an 'Apply()' command. It provides the project,...
Definition:
CommandContext.h:37
TaggedIdentifier< CommandIdTag, false >
CommandDispatch
Definition:
CommandDispatch.h:22
CommandDispatch::DoAudacityCommand
AUDACITY_DLL_API bool DoAudacityCommand(const PluginID &ID, const CommandContext &context, unsigned flags)
Definition:
CommandDispatch.cpp:60
CommandDispatch::HandleTextualCommand
AUDACITY_DLL_API bool HandleTextualCommand(const CommandID &Str, const CommandContext &context, CommandFlag flags, bool alwaysEnabled)
Definition:
CommandDispatch.cpp:28
CommandDispatch::OnAudacityCommand
AUDACITY_DLL_API void OnAudacityCommand(const CommandContext &ctx)
Definition:
CommandDispatch.cpp:96
Generated by
1.9.3