1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-11-23 17:30:17 +01:00

Define virtual Track::PasteInto to simplfy Paste...

... Also making EditMenus not dependent on TimeTrack
This commit is contained in:
Paul Licameli
2021-01-29 00:25:33 -05:00
parent 8543d2dd30
commit 15313a27f7
10 changed files with 55 additions and 36 deletions

View File

@@ -85,6 +85,13 @@ LabelTrack::LabelTrack(const LabelTrack &orig) :
}
}
Track::Holder LabelTrack::PasteInto( AudacityProject & ) const
{
auto pNewTrack = std::make_shared<LabelTrack>();
pNewTrack->Paste(0.0, this);
return pNewTrack;
}
template<typename IntervalType>
static IntervalType DoMakeInterval(const LabelStruct &label, size_t index)
{