Audacity 3.2.0
|
Go to the source code of this file.
Classes | |
class | anonymous_namespace{SnapUtils.cpp}::ConstantMultiplierSnapItem |
class | anonymous_namespace{SnapUtils.cpp}::ProjectDependentMultiplierSnapItem |
Namespaces | |
namespace | anonymous_namespace{SnapUtils.cpp} |
Functions | |
SnapMode | ReadSnapMode () |
wxString | DeduceSnapTo () |
Identifier | ReadSnapTo () |
SnapResult | anonymous_namespace{SnapUtils.cpp}::SnapWithMultiplier (double value, double multiplier, bool nearest) |
std::unique_ptr< SnapRegistryItem > | TimeInvariantSnapFunction (const Identifier &functionId, const TranslatableString &label, MultiplierFunctor functor) |
std::unique_ptr< SnapRegistryItem > | TimeInvariantSnapFunction (const Identifier &functionId, const TranslatableString &label, double multiplier) |
Variables | |
const wxString | anonymous_namespace{SnapUtils.cpp}::SnapModeKey = L"/Snap/Mode" |
const wxString | anonymous_namespace{SnapUtils.cpp}::SnapToKey = L"/Snap/To" |
const wxString | anonymous_namespace{SnapUtils.cpp}::OldSnapToKey = L"/SnapTo" |
const wxString | anonymous_namespace{SnapUtils.cpp}::SelectionFormatKey = L"/SelectionFormat" |
const auto | anonymous_namespace{SnapUtils.cpp}::PathStart = L"SnapFunctions" |
StringSetting | SnapToSetting { SnapToKey, "bar_1_8" } |
EnumSetting< SnapMode > | SnapModeSetting |
wxString DeduceSnapTo | ( | ) |
Definition at line 46 of file SnapUtils.cpp.
References Setting< T >::GetDefault(), gPrefs, audacity::BasicSettings::HasEntry(), audacity::BasicSettings::Read(), anonymous_namespace{SnapUtils.cpp}::SelectionFormatKey, and SnapToSetting.
Referenced by ReadSnapTo().
SnapMode ReadSnapMode | ( | ) |
Definition at line 38 of file SnapUtils.cpp.
References gPrefs, audacity::BasicSettings::HasEntry(), anonymous_namespace{SnapUtils.cpp}::OldSnapToKey, audacity::BasicSettings::Read(), anonymous_namespace{SnapUtils.cpp}::SnapModeKey, and SnapModeSetting.
Identifier ReadSnapTo | ( | ) |
Definition at line 90 of file SnapUtils.cpp.
References DeduceSnapTo(), audacity::BasicSettings::Flush(), gPrefs, audacity::BasicSettings::HasEntry(), Setting< T >::Read(), anonymous_namespace{SnapUtils.cpp}::SnapToKey, SnapToSetting, and Setting< T >::Write().
Referenced by anonymous_namespace{SnappingToolBar.cpp}::SnapModePopup::GetStringValue(), anonymous_namespace{SnappingToolBar.cpp}::SnapModePopup::Init(), and anonymous_namespace{SnappingToolBar.cpp}::SnapModePopup::OnPopup().
std::unique_ptr< SnapRegistryItem > TimeInvariantSnapFunction | ( | const Identifier & | functionId, |
const TranslatableString & | label, | ||
double | multiplier | ||
) |
Definition at line 294 of file SnapUtils.cpp.
References label.
std::unique_ptr< SnapRegistryItem > TimeInvariantSnapFunction | ( | const Identifier & | functionId, |
const TranslatableString & | label, | ||
MultiplierFunctor | functor | ||
) |
Definition at line 286 of file SnapUtils.cpp.
References label.
EnumSetting<SnapMode> SnapModeSetting |
Definition at line 31 of file SnapUtils.cpp.
Referenced by anonymous_namespace{PluginMenus.cpp}::OnResetConfig(), ReadSnapMode(), and ProjectSnap::SetSnapMode().
StringSetting SnapToSetting { SnapToKey, "bar_1_8" } |
Definition at line 29 of file SnapUtils.cpp.
Referenced by DeduceSnapTo(), anonymous_namespace{PluginMenus.cpp}::OnResetConfig(), ReadSnapTo(), and ProjectSnap::SetSnapTo().