22 auto result = std::make_shared<ProjectSnap>(
project);
80 return { time,
false };
88 return { time,
false };
114 [](
auto& snapSettings,
auto value)
audacity::BasicSettings * gPrefs
an object holding per-project preferred sample rate
static const AudacityProject::AttachedObjects::RegisteredFactory sKey
static ProjectFileIORegistry::AttributeWriterEntry entry
static ProjectFileIORegistry::AttributeReaderEntries entries
StringSetting SnapToSetting
EnumSetting< SnapMode > SnapModeSetting
The top-level handle to an Audacity project. It serves as a source of events that other objects can b...
Client code makes static instance from a factory of attachments; passes it to Get or Find as a retrie...
An explicitly nonlocalized string, not meant for the user to see.
const wxString & GET() const
Explicit conversion to wxString, meant to be ugly-looking and demanding of a comment why it's correct...
CallbackReturn Publish(const SnapChangedMessage &message)
Send a message to connected callbacks.
Project snapping settings.
void SetSnapMode(SnapMode mode)
const AudacityProject & mProject
SnapResult SnapTime(double time) const
ProjectSnap(const AudacityProject &project)
SnapResult SingleStep(double time, bool upwards) const
void SetSnapTo(Identifier snap)
static ProjectSnap & Get(AudacityProject &project)
Identifier GetSnapTo() const
SnapMode GetSnapMode() const
bool Write(const T &value)
Write value to config and return true if successful.
Base class for XMLFileWriter and XMLStringWriter that provides the general functionality for creating...
virtual bool Flush() noexcept=0
static SnapResult Snap(const Identifier &id, const AudacityProject &project, double time, bool nearest)
static SnapResult SingleStep(const Identifier &id, const AudacityProject &project, double time, bool upwards)
Typically statically constructed.