24 return std::make_shared<ProjectNumericFormats>(
project);
44 , mFrequencySelectionFormatName{
45 gPrefs->Read(
wxT(
"/FrequencySelectionFormatName"),
wxT(
""))
47 , mBandwidthSelectionFormatName{
48 gPrefs->Read(
wxT(
"/BandwidthSelectionFormatName"),
wxT(
""))
139 xmlFile.WriteAttr(
wxT(
"selectionformat"),
140 formats.GetSelectionFormat().GET());
141 xmlFile.WriteAttr(
wxT(
"frequencyformat"),
142 formats.GetFrequencySelectionFormatName().GET());
143 xmlFile.WriteAttr(
wxT(
"bandwidthformat"),
144 formats.GetBandwidthSelectionFormatName().GET());
154 {
"selectionformat", [](
auto &formats,
auto value){
157 {
"frequencyformat", [](
auto &formats,
auto value){
158 formats.SetFrequencySelectionFormatName(value.ToWString());
160 {
"bandwidthformat", [](
auto &formats,
auto value){
161 formats.SetBandwidthSelectionFormatName(value.ToWString());
audacity::BasicSettings * gPrefs
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...
ComponentInterfaceSymbol pairs a persistent string identifier used internally with an optional,...
static FormatterContext ProjectContext(const AudacityProject &project)
An explicitly nonlocalized string, not meant for the user to see.
CallbackReturn Publish(const ProjectNumericFormatsEvent &message)
Send a message to connected callbacks.
Base class for XMLFileWriter and XMLStringWriter that provides the general functionality for creating...
Typically statically constructed.