1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-05-01 08:09:41 +02:00

Define Track::AdjustPositions()

This commit is contained in:
Paul Licameli 2018-12-24 10:26:21 -05:00
parent e581fa60d9
commit d335276931
2 changed files with 12 additions and 0 deletions

View File

@ -1328,6 +1328,15 @@ bool Track::HandleCommonXMLAttribute(const wxChar *attr, const wxChar *value)
return false;
}
void Track::AdjustPositions()
{
auto pList = mList.lock();
if (pList) {
pList->RecalcPositions(mNode);
pList->ResizingEvent(mNode);
}
}
bool TrackList::HasPendingTracks() const
{
if ( !mPendingUpdates.empty() )

View File

@ -723,6 +723,9 @@ public:
bool IsLeader() const;
bool IsSelectedLeader() const;
// Cause this track and following ones in its TrackList to adjust
void AdjustPositions();
// Serialize, not with tags of its own, but as attributes within a tag.
void WriteCommonXMLAttributes(
XMLWriter &xmlFile, bool includeNameAndSelected = true) const;