Audacity 3.2.0
Variables
ProjectNumericFormats.cpp File Reference
#include "ProjectNumericFormats.h"
#include "Prefs.h"
#include "Project.h"
#include "NumericConverterFormats.h"
#include "NumericConverterFormatterContext.h"
#include "XMLAttributeValueView.h"
#include "XMLWriter.h"
Include dependency graph for ProjectNumericFormats.cpp:

Go to the source code of this file.

Variables

static const AttachedProjectObjects::RegisteredFactory key
 
static ProjectFileIORegistry::AttributeWriterEntry entry
 
static ProjectFileIORegistry::AttributeReaderEntries entries
 

Variable Documentation

◆ entries

Initial value:
{
{ "selectionformat", [](auto &formats, auto value){
formats.SetSelectionFormat(value.ToWString());
} },
{ "frequencyformat", [](auto &formats, auto value){
formats.SetFrequencySelectionFormatName(value.ToWString());
} },
{ "bandwidthformat", [](auto &formats, auto value){
formats.SetBandwidthSelectionFormatName(value.ToWString());
} },
} }
The top-level handle to an Audacity project. It serves as a source of events that other objects can b...
Definition: Project.h:90
static ProjectNumericFormats & Get(AudacityProject &project)
void SetSelectionFormat(const NumericFormatID &format)

Definition at line 148 of file ProjectNumericFormats.cpp.

◆ entry

Initial value:
{
[](const AudacityProject &project, XMLWriter &xmlFile){
xmlFile.WriteAttr(wxT("selectionformat"),
formats.GetSelectionFormat().GET());
xmlFile.WriteAttr(wxT("frequencyformat"),
formats.GetFrequencySelectionFormatName().GET());
xmlFile.WriteAttr(wxT("bandwidthformat"),
formats.GetBandwidthSelectionFormatName().GET());
}
}
wxT("CloseDown"))
const auto project
Base class for XMLFileWriter and XMLStringWriter that provides the general functionality for creating...
Definition: XMLWriter.h:25

Definition at line 136 of file ProjectNumericFormats.cpp.

◆ key

Initial value:
{
{
return std::make_shared<ProjectNumericFormats>(project);
}
}

Definition at line 20 of file ProjectNumericFormats.cpp.

Referenced by ProjectNumericFormats::Get().