Audacity 3.2.0
Classes | Typedefs | Functions
WaveTrackShifter.cpp File Reference

headerless file injects method definitions for time shifting of WaveTrack More...

#include "../../../ui/TimeShiftHandle.h"
#include "ViewInfo.h"
#include "WaveClip.h"
#include "WaveTrack.h"
#include "WaveChannelView.h"
#include <cassert>
Include dependency graph for WaveTrackShifter.cpp:

Go to the source code of this file.

Classes

class  WaveTrackShifter
 

Typedefs

using MakeWaveTrackShifter = MakeTrackShifter::Override< WaveTrack >
 

Functions

 DEFINE_ATTACHED_VIRTUAL_OVERRIDE (MakeWaveTrackShifter)
 

Detailed Description

headerless file injects method definitions for time shifting of WaveTrack

Definition in file WaveTrackShifter.cpp.

Typedef Documentation

◆ MakeWaveTrackShifter

Definition at line 234 of file WaveTrackShifter.cpp.

Function Documentation

◆ DEFINE_ATTACHED_VIRTUAL_OVERRIDE()

DEFINE_ATTACHED_VIRTUAL_OVERRIDE ( MakeWaveTrackShifter  )

Definition at line 235 of file WaveTrackShifter.cpp.

235 {
236 return [](WaveTrack &track, AudacityProject&) {
237 assert(track.IsLeader()); // pre of the open method
238 return std::make_unique<WaveTrackShifter>(track);
239 };
240}
The top-level handle to an Audacity project. It serves as a source of events that other objects can b...
Definition: Project.h:90
A Track that contains audio waveform data.
Definition: WaveTrack.h:227
bool IsLeader() const override
Definition: WaveTrack.cpp:2833

References WaveTrack::IsLeader().

Here is the call graph for this function: