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

weaken dependency of TrackPanel.cpp on LabelTrack.h, a bit

This commit is contained in:
Paul Licameli
2015-08-23 19:02:06 -04:00
parent e7b11b8856
commit 439fdc66ff
5 changed files with 20 additions and 4 deletions

View File

@@ -1130,6 +1130,17 @@ double LabelTrack::GetEndTime() const
return end;
}
Track *LabelTrack::Duplicate()
{
return new LabelTrack(*this);
}
void LabelTrack::SetSelected(bool s)
{
Track::SetSelected(s);
if (!s)
Unselect();
}
/// OverGlyph returns 0 if not over a glyph,
/// 1 if over the left-hand glyph, and