mirror of
https://github.com/cookiengineer/audacity
synced 2025-05-01 08:09:41 +02:00
Define Track::AdjustPositions()
This commit is contained in:
parent
e581fa60d9
commit
d335276931
@ -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() )
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user