|
Audacity
3.0.3
|
Go to the documentation of this file.
22 #ifndef __AUDACITY_ODWAVETRACKTASKQUEUE__
23 #define __AUDACITY_ODWAVETRACKTASKQUEUE__
27 #include "../Internat.h"
46 void AddWaveTrack(
const std::shared_ptr< WaveTrack > &track);
53 const std::shared_ptr<Track> &newTrack);
70 void AddTask(std::unique_ptr<ODTask> &&mtask);
103 std::vector< std::weak_ptr< WaveTrack > >
mTracks;
107 std::vector<std::unique_ptr<ODTask>>
mTasks;
Holds a msgid for the translation catalog; may also bind format arguments.
A Track that contains audio waveform data.
ODTask * GetTask(size_t x)
returns a ODTask at position x
std::vector< std::unique_ptr< ODTask > > mTasks
the list of tasks associated with the tracks. This class owns these tasks.
ODTask * GetFrontTask()
Schedules the front task for immediate execution.
int GetNumWaveTracks()
returns the number of wavetracks in this queue.
void FillTipForWaveTrack(const WaveTrack *t, TranslatableString &tip)
fills in the status bar message for a given track
void AddTask(std::unique_ptr< ODTask > &&mtask)
Add a task to the queue.
virtual ~ODWaveTrackTaskQueue()
bool IsFrontTaskComplete()
std::vector< std::weak_ptr< WaveTrack > > mTracks
the list of tracks associated with this queue.
bool ContainsWaveTrack(const WaveTrack *track)
returns true if the argument is in the WaveTrack list.
void ReplaceWaveTrack(Track *oldTrack, const std::shared_ptr< Track > &newTrack)
replaces all instances of a WaveTrack within this task with another.
void MakeWaveTrackIndependent(const std::shared_ptr< WaveTrack > &track)
void RemoveFrontTask()
Removes and deletes the front task from the list.
bool CanMergeWith(ODWaveTrackTaskQueue *otherQueue)
returns whether or not this queue's task list and another's can merge together, as when we make two m...
A class representing a modular task to be used with the On-Demand structures.
A class representing a modular task to be used with the On-Demand structures.
void MergeWaveTrack(const std::shared_ptr< WaveTrack > &track)
ODWaveTrackTaskQueue()
Constructs an ODWaveTrackTaskQueue.
Abstract base class for an object holding data associated with points on a time axis.
int GetNumTasks()
returns the number of ODTasks in this queue
TranslatableString mTipMsg
void AddWaveTrack(const std::shared_ptr< WaveTrack > &track)
Adds a track to the associated list.
void DemandTrackUpdate(WaveTrack *track, double seconds)
changes the tasks associated with this Waveform to process the task from a different point in the tra...