15#ifndef __AUDACITY_SNAP__
16#define __AUDACITY_SNAP__
62 bool noTimeSnap =
false,
71 bool noTimeSnap =
false,
87 static void Draw( wxDC *dc, wxInt64 snap0, wxInt64 snap1 );
92 void CondListAdd(
double t,
const Track *track);
93 double Get(
size_t index);
94 wxInt64 PixelDiff(
double t,
size_t index);
95 size_t Find(
double t,
size_t i0,
size_t i1);
96 size_t Find(
double t);
97 bool SnapToPoints(
Track *currentTrack,
double t,
bool rightEdge,
double *outT);
107 double mEpsilon{ 1 / 44100.0 };
113 bool mSnapToTime{
false };
const int kPixelTolerance
std::vector< SnapPoint > SnapPointArray
std::vector< TranslatableString > TranslatableStrings
The top-level handle to an Audacity project. It serves as a source of events that other objects can b...
ComponentInterfaceSymbol pairs a persistent string identifier used internally with an optional,...
NumericConverter provides the advanced formatting control used in the selection bar of Audacity.
NumericConverter mConverter
const AudacityProject * mProject
SnapPointArray mCandidates
SnapPointArray mSnapPoints
const ZoomInfo * mZoomInfo
SnapPoint(double t_=0.0, const Track *track_=nullptr)
Abstract base class for an object holding data associated with points on a time axis.
A flat linked list of tracks supporting Add, Remove, Clear, and Contains, serialization of the list o...
wxString Find(const FilePath &path)
Services * Get()
Fetch the global instance, or nullptr if none is yet installed.