Audacity 3.2.0
|
#include "Callable.h"
#include "Prefs.h"
#include "Registry.h"
#include <functional>
#include <string_view>
Go to the source code of this file.
Classes | |
struct | SnapResult |
struct | SnapRegistryTraits |
struct | SnapRegistryGroupData |
struct | SnapRegistryGroup |
struct | SnapRegistryItem |
struct | SnapFunctionsRegistry |
struct | SnapFunctionSuperGroup |
Typedefs | |
using | SnapRegistryVisitor = Registry::VisitorFunctions< SnapRegistryTraits > |
using | MultiplierFunctor = std::function< double(const AudacityProject &)> |
using | SnapRegistryItemRegistrator = Registry::RegisteredItem< SnapFunctionsRegistry > |
Enumerations | |
enum class | SnapMode { SNAP_OFF , SNAP_NEAREST , SNAP_PRIOR } |
Functions | |
SNAPPING_API SnapMode | ReadSnapMode () |
SNAPPING_API Identifier | ReadSnapTo () |
std::unique_ptr< SnapRegistryItem > | TimeInvariantSnapFunction (const Identifier &functionId, const TranslatableString &label, double multiplier) |
std::unique_ptr< SnapRegistryItem > | TimeInvariantSnapFunction (const Identifier &functionId, const TranslatableString &label, MultiplierFunctor functor) |
Variables | |
SNAPPING_API StringSetting | SnapToSetting |
SNAPPING_API EnumSetting< SnapMode > | SnapModeSetting |
constexpr auto | SnapFunctionGroup |
constexpr auto | SnapFunctionItems |
using MultiplierFunctor = std::function<double(const AudacityProject&)> |
Definition at line 92 of file SnapUtils.h.
Definition at line 114 of file SnapUtils.h.
Definition at line 56 of file SnapUtils.h.
|
strong |
Audacity: A Digital Audio Editor
Dmitry Vedenko
Enumerator | |
---|---|
SNAP_OFF | |
SNAP_NEAREST | |
SNAP_PRIOR |
Definition at line 20 of file SnapUtils.h.
SNAPPING_API 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.
SNAPPING_API 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.
|
constexpr |
Definition at line 98 of file SnapUtils.h.
|
constexpr |
Definition at line 123 of file SnapUtils.h.
|
extern |
Definition at line 31 of file SnapUtils.cpp.
Referenced by anonymous_namespace{PluginMenus.cpp}::OnResetConfig(), ReadSnapMode(), and ProjectSnap::SetSnapMode().
|
extern |
Definition at line 29 of file SnapUtils.cpp.
Referenced by DeduceSnapTo(), anonymous_namespace{PluginMenus.cpp}::OnResetConfig(), ReadSnapTo(), and ProjectSnap::SetSnapTo().