1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-22 06:22:58 +02:00

No more functor objects; all command handler functions take same args

This commit is contained in:
Paul Licameli
2017-08-19 10:15:32 -04:00
parent 77c392d29c
commit ab6de1181d
16 changed files with 596 additions and 681 deletions

View File

@@ -61,12 +61,14 @@ bool SelectCommand::Apply(CommandExecutionContext context)
if (mode.IsSameAs(wxT("None")))
{
// select none
context.GetProject()->OnSelectNone();
auto project = context.GetProject();
project->OnSelectNone(*project);
}
else if (mode.IsSameAs(wxT("All")))
{
// select all
context.GetProject()->OnSelectAll();
auto project = context.GetProject();
project->OnSelectAll(*project);
}
else if (mode.IsSameAs(wxT("Range")))
{