mirror of
https://github.com/cookiengineer/audacity
synced 2025-09-18 17:10:55 +02:00
Implement selection from ends of tracks.
This commit is contained in:
parent
99e18a8896
commit
85c36fe7fe
@ -54,6 +54,11 @@ void SelectTimeCommand::PopulateOrExchange(ShuttleGui & S)
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool SelectTimeCommand::Apply(const CommandContext & context){
|
bool SelectTimeCommand::Apply(const CommandContext & context){
|
||||||
|
if( mFromEnd ){
|
||||||
|
double TEnd = context.GetProject()->GetTracks()->GetEndTime();
|
||||||
|
context.GetProject()->mViewInfo.selectedRegion.setTimes(TEnd - mT0, TEnd - mT1);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
context.GetProject()->mViewInfo.selectedRegion.setTimes(mT0, mT1);
|
context.GetProject()->mViewInfo.selectedRegion.setTimes(mT0, mT1);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user