Audacity 3.2.0
Classes | Functions | Variables
anonymous_namespace{BeatsNumericConverterFormatter.cpp} Namespace Reference

Classes

class  BeatsFormatter
 
class  BeatsNumericConverterFormatterFactory
 

Functions

constexpr size_t Get10Pow (size_t pow)
 
auto BuildBeatsGroup (bool timeFormat)
 

Variables

const auto BarString = XO("bar")
 
const auto BeatString = XO("beat")
 
NumericConverterItemRegistrator beatsTime
 
NumericConverterItemRegistrator beatsDuration
 

Function Documentation

◆ BuildBeatsGroup()

auto anonymous_namespace{BeatsNumericConverterFormatter.cpp}::BuildBeatsGroup ( bool  timeFormat)

Definition at line 386 of file BeatsNumericConverterFormatter.cpp.

387{
389 timeFormat ? "beatsTime" : "beatsDuration",
392 /* i18n-hint: "bar" and "beat" are musical notation elements. */
393 "beats", XO("bar:beat"),
394 std::make_unique<BeatsNumericConverterFormatterFactory>(0, timeFormat)),
396 /* i18n-hint: "bar" and "beat" are musical notation elements. "tick"
397 corresponds to a 16th note. */
398 "beats16", XO("bar:beat:tick"),
399 std::make_unique<BeatsNumericConverterFormatterFactory>(16, timeFormat)));
400}
XO("Cut/Copy/Paste")
constexpr auto NumericConverterFormatterGroup
constexpr auto NumericConverterFormatterItem
const NumericConverterType & NumericConverterType_DURATION()
const NumericConverterType & NumericConverterType_TIME()

References NumericConverterFormatterGroup, NumericConverterFormatterItem, NumericConverterType_DURATION(), NumericConverterType_TIME(), and XO().

Here is the call graph for this function:

◆ Get10Pow()

constexpr size_t anonymous_namespace{BeatsNumericConverterFormatter.cpp}::Get10Pow ( size_t  pow)
constexpr

Definition at line 30 of file BeatsNumericConverterFormatter.cpp.

31{
32 return pow > 0 ? 10 * Get10Pow(pow - 1) : 1;
33}

References Get10Pow().

Referenced by anonymous_namespace{BeatsNumericConverterFormatter.cpp}::BeatsFormatter::CheckField(), and Get10Pow().

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ BarString

const auto anonymous_namespace{BeatsNumericConverterFormatter.cpp}::BarString = XO("bar")

◆ beatsDuration

NumericConverterItemRegistrator anonymous_namespace{BeatsNumericConverterFormatter.cpp}::beatsDuration

◆ beatsTime

NumericConverterItemRegistrator anonymous_namespace{BeatsNumericConverterFormatter.cpp}::beatsTime
Initial value:
{
Registry::Placement { "parsed", { Registry::OrderingHint::After, L"parsedTime" } }
}

Definition at line 402 of file BeatsNumericConverterFormatter.cpp.

◆ BeatString

const auto anonymous_namespace{BeatsNumericConverterFormatter.cpp}::BeatString = XO("beat")