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:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user