| 1415 | const CommandContext& context, const MacroID& Name); |
| 1416 | |
| 1417 | void OnRepeatLastTool(const CommandContext& context) |
| 1418 | { |
| 1419 | auto& commandManager = CommandManager::Get(context.project); |
| 1420 | switch (commandManager.mLastToolRegistration) { |
| 1421 | case CommandManager::repeattypeplugin: |
| 1422 | { |
| 1423 | auto lastEffect = commandManager.mLastTool; |
| 1424 | if (!lastEffect.empty()) |
| 1425 | EffectUI::DoEffect( |
| 1426 | lastEffect, context.project, commandManager.mRepeatToolFlags); |
| 1427 | } |
| 1428 | break; |
| 1429 | case CommandManager::repeattypeunique: |
| 1430 | CommandManager::Get(context.project).DoRepeatProcess(context, |
| 1431 | commandManager.mLastToolRegisteredId); |
| 1432 | break; |
| 1433 | case CommandManager::repeattypeapplymacro: |
| 1434 | OnApplyMacroDirectlyByName(context, commandManager.mLastTool); |
| 1435 | break; |
| 1436 | } |
| 1437 | } |
| 1438 | |
| 1439 | void OnManageMacros(const CommandContext &context ) |
| 1440 | { |
nothing calls this directly
no test coverage detected