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(formats.LookupFormat(
NumericConverterType_TIME(), value.ToWString()));
} },
{ "frequencyformat", [](auto &formats, auto value){
formats.SetFrequencySelectionFormatName(formats.LookupFormat(
NumericConverterType_FREQUENCY(), value.ToWString()));
} },
{ "bandwidthformat", [](auto &formats, auto value){
formats.SetBandwidthSelectionFormatName(formats.LookupFormat(
NumericConverterType_BANDWIDTH(), value.ToWString()));
} },
} }
const NumericConverterType & NumericConverterType_BANDWIDTH()
const NumericConverterType & NumericConverterType_FREQUENCY()
const NumericConverterType & NumericConverterType_TIME()
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 NumericFormatSymbol &format)

Definition at line 129 of file ProjectNumericFormats.cpp.

Referenced by PrefsDialog::PrefsDialog().

◆ entry

Initial value:
{
[](const AudacityProject &project, XMLWriter &xmlFile){
xmlFile.WriteAttr(wxT("selectionformat"),
formats.GetSelectionFormat().Internal());
xmlFile.WriteAttr(wxT("frequencyformat"),
formats.GetFrequencySelectionFormatName().Internal());
xmlFile.WriteAttr(wxT("bandwidthformat"),
formats.GetBandwidthSelectionFormatName().Internal());
}
}
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 117 of file ProjectNumericFormats.cpp.

Referenced by CommandManager::AddGlobalCommand(), CommandManager::AddItem(), MacrosWindow::AddItem(), CommandManager::AddItemList(), MacroCommandsCatalog::ByCommandId(), AttachedVirtualFunction< Tag, Return, This, Arguments >::Call(), CommandManager::Check(), CommandManager::DoRepeatProcess(), CommandManager::Enable(), CommandManager::EnableUsingFlags(), CommandManager::FilterKeyEvent(), ToolBarButtons::ForAllButtons(), CommandManager::FormatLabelForMenu(), CommandManager::FormatLabelWithDisabledAccel(), AVDictionaryWrapper::Get(), anonymous_namespace{ScrubState.cpp}::ScrubQueue::Get(), CommandManager::GetAllCommandData(), CommandManager::GetAllCommandLabels(), CommandManager::GetAllCommandNames(), CommandManager::GetCategories(), CommandManager::GetCategoryFromName(), CommandManager::GetDefaultKeyFromName(), CommandManager::GetEnabled(), CommandManager::GetKeyFromName(), CommandManager::GetLabelFromName(), CommandManager::GetMenuBar(), CommandManager::GetNameFromNumericID(), CommandManager::GetPrefixedLabelFromName(), FileDialog::GTKFilterChanged(), CommandManager::HandleCommandEntry(), CommandManager::HandleMenuID(), CommandManager::HandleTextualCommand(), AVDictionaryWrapper::HasValue(), BuiltinEffectsModule::Initialize(), BuiltinCommandsModule::Initialize(), FLACExportProcessor::MakeMetadata(), CommandManager::Modify(), CommandManager::NewIdentifier(), MacroCommandDialog::PopulateCommandList(), ToolManager::ReadConfig(), CommandParameters::ReadEnum(), anonymous_namespace{NoiseReduction.cpp}::readPrefs(), ToolsToolBar::RegenerateTooltips(), TranscriptionToolBar::RegenerateTooltips(), SettingsWX::Remove(), CommandManager::RemoveDuplicateShortcuts(), ToolManager::Reset(), CommandManager::SetCommandFlags(), FileDialog::SetFileExtension(), CommandManager::SetKeyFromIndex(), CommandManager::SetKeyFromName(), CommandManager::UpdateCheckmarks(), anonymous_namespace{NoiseReduction.cpp}::writePrefs(), and CommandManager::WriteXML().

◆ key

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

Definition at line 20 of file ProjectNumericFormats.cpp.

Referenced by ProjectNumericFormats::Get().