Audacity 3.2.0
|
Functions | |
AUDACITY_DLL_API bool | HandleTextualCommand (const CommandID &Str, const CommandContext &context, CommandFlag flags, bool alwaysEnabled) |
AUDACITY_DLL_API bool | DoAudacityCommand (const PluginID &ID, const CommandContext &context, unsigned flags) |
AUDACITY_DLL_API void | OnAudacityCommand (const CommandContext &ctx) |
bool CommandDispatch::DoAudacityCommand | ( | const PluginID & | ID, |
const CommandContext & | context, | ||
unsigned | flags | ||
) |
DoAudacityCommand() takes a PluginID and executes the associated command.
At the moment flags are used only to indicate whether to prompt for parameters
Definition at line 60 of file CommandDispatch.cpp.
References EffectAndCommandPluginManager::DoAudacityCommand(), PluginManager::Get(), EffectAndCommandPluginManager::Get(), Viewport::Get(), ProjectAudioManager::Get(), PluginManager::GetPlugin(), EffectManager::kConfigured, CommandContext::project, project, Viewport::Redraw(), and ProjectAudioManager::Stop().
Referenced by MacroCommands::ApplyEffectCommand(), and OnAudacityCommand().
bool CommandDispatch::HandleTextualCommand | ( | const CommandID & | Str, |
const CommandContext & | context, | ||
CommandFlag | flags, | ||
bool | alwaysEnabled | ||
) |
Definition at line 28 of file CommandDispatch.cpp.
References CommandManager::CommandFailure, CommandManager::CommandNotFound, CommandManager::CommandSuccess, EffectUI::DoEffect(), PluginManager::Get(), CommandManager::Get(), EffectManager::kConfigured, PluginTypeEffect, and CommandContext::project.
Referenced by MacroCommands::ApplyCommand(), and ToolBarButtons::OnButton().
void CommandDispatch::OnAudacityCommand | ( | const CommandContext & | ctx | ) |
Definition at line 96 of file CommandDispatch.cpp.
References DoAudacityCommand(), PluginManager::Get(), Identifier::GET(), EffectManager::kNone, and CommandContext::parameter.