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

Can choose by Channel or by Track in Set commands.

This commit is contained in:
James Crook
2018-02-16 20:34:30 +00:00
committed by Paul Licameli
parent 8ab9345268
commit e9e9ee2998
30 changed files with 258 additions and 194 deletions

View File

@@ -153,19 +153,17 @@ bool SelectTracksCommand::Apply(const CommandContext &context)
bool sel = mFirstTrack <= index && index <= last;
if( mMode == 0 ){ // Set
t->SetSelected(sel);
// if (sel)
// context.Status(wxT("Selected track '") + t->GetName() + wxT("'"));
}
else if( mMode == 1 && sel ){ // Add
t->SetSelected(sel);
// context.Status(wxT("Added track '") + t->GetName() + wxT("'"));
}
else if( mMode == 2 && sel ){ // Remove
t->SetSelected(!sel);
// context.Status(wxT("Removed track '") + t->GetName() + wxT("'"));
}
// Do second channel in stereo track too.
if( !t->GetLinked() )
++index;
t = iter.Next();
++index;
}
return true;
}