Audacity 3.2.0
Classes | Namespaces | Typedefs | Functions
TimeShiftHandle.cpp File Reference
#include "TimeShiftHandle.h"
#include "ChannelView.h"
#include "AColor.h"
#include "../../HitTestResult.h"
#include "ProjectAudioIO.h"
#include "ProjectHistory.h"
#include "../../ProjectSettings.h"
#include "../../RefreshCode.h"
#include "Snap.h"
#include "SyncLock.h"
#include "Track.h"
#include "../../TrackArt.h"
#include "../../TrackArtist.h"
#include "../../TrackPanelDrawingContext.h"
#include "../../TrackPanelMouseEvent.h"
#include "UndoManager.h"
#include "ViewInfo.h"
#include "../../../images/Cursors.h"
#include <cassert>
Include dependency graph for TimeShiftHandle.cpp:

Go to the source code of this file.

Classes

struct  anonymous_namespace{TimeShiftHandle.cpp}::TemporaryClipRemover
 

Namespaces

namespace  anonymous_namespace{TimeShiftHandle.cpp}
 

Typedefs

using anonymous_namespace{TimeShiftHandle.cpp}::Correspondence = std::unordered_map< Track *, Track * >
 
using anonymous_namespace{TimeShiftHandle.cpp}::DetachedIntervals = std::unordered_map< Track *, TrackShifter::Intervals >
 

Functions

 DEFINE_ATTACHED_VIRTUAL (MakeTrackShifter)
 
SnapPointArray anonymous_namespace{TimeShiftHandle.cpp}::FindCandidates (const TrackList &tracks, const ClipMoveState::ShifterMap &shifters)
 
void anonymous_namespace{TimeShiftHandle.cpp}::AdjustToSnap (const ViewInfo &viewInfo, wxCoord xx, SnapManager *pSnapManager, bool snapPreferRightEdge, ClipMoveState &state, double &desiredSlideAmount)
 
bool anonymous_namespace{TimeShiftHandle.cpp}::FindCorrespondence (Correspondence &correspondence, TrackList &trackList, Track &capturedTrack, Track &track, ClipMoveState &state)
 
bool anonymous_namespace{TimeShiftHandle.cpp}::CheckFit (ClipMoveState &state, const Correspondence &correspondence, const DetachedIntervals &intervals, double tolerance, double &desiredSlideAmount)
 
void anonymous_namespace{TimeShiftHandle.cpp}::MigrationFailure ()
 

Function Documentation

◆ DEFINE_ATTACHED_VIRTUAL()

DEFINE_ATTACHED_VIRTUAL ( MakeTrackShifter  )

Definition at line 268 of file TimeShiftHandle.cpp.

268 {
269 return [](Track &track, AudacityProject&) {
270 return std::make_unique<CoarseTrackShifter>(track);
271 };
272}
The top-level handle to an Audacity project. It serves as a source of events that other objects can b...
Definition: Project.h:90
Abstract base class for an object holding data associated with points on a time axis.
Definition: Track.h:110