16#ifndef __AUDACITY_NUMERIC_CONVERTER__
17#define __AUDACITY_NUMERIC_CONVERTER__
41 virtual void ValueToControls();
42 virtual void ValueToControls(
double rawValue,
bool nearest =
true);
46 virtual void ControlsToValue();
61 void SetValue(
double newValue);
62 void SetMinValue(
double minValue);
64 void SetMaxValue(
double maxValue);
72 void Adjust(
int steps,
int dir,
int focusedDigit);
74 void Increment(
int focusedDigit = -1);
75 void Decrement(
int focusedDigit = -1);
78 bool UpdateFormatter();
79 virtual void OnFormatUpdated();
89 double mInvalidValue { -1 };
91 std::unique_ptr<NumericConverterFormatter>
104 int GetSafeFocusedDigit(
int focusedDigit)
const noexcept;
ComponentInterfaceSymbol pairs a persistent string identifier used internally with an optional,...
A context in which formatter operates.
An explicitly nonlocalized string, not meant for the user to see.
NumericConverter provides the advanced formatting control used in the selection bar of Audacity.
NumericConverterType mType
NumericFormatSymbol mFormatSymbol
std::vector< wxString > mFieldValueStrings
FormatterContext mContext
std::unique_ptr< NumericConverterFormatter > mFormatter
TranslatableString mCustomFormat
Observer::Subscription mFormatUpdatedSubscription
A move-only handle representing a connection to a Publisher.
Holds a msgid for the translation catalog; may also bind format arguments.