Audacity 3.2.0
Classes | Functions
TrackInfo.cpp File Reference
#include "TrackInfo.h"
#include <wx/app.h>
#include <wx/dc.h>
#include <wx/font.h>
#include <wx/window.h>
#include "AColor.h"
#include "AllThemeResources.h"
#include "PlayableTrack.h"
#include "Prefs.h"
#include "Project.h"
#include "SyncLock.h"
#include "Theme.h"
#include "TrackPanelDrawingContext.h"
#include "UIHandle.h"
#include "ViewInfo.h"
#include "tracks/ui/ChannelView.h"
Include dependency graph for TrackInfo.cpp:

Go to the source code of this file.

Classes

struct  Settings
 

Functions

static Settingssettings ()
 

Function Documentation

◆ settings()

static Settings & settings ( )
static

Definition at line 47 of file TrackInfo.cpp.

48{
49 static Settings theSettings;
50 if ( !theSettings.mInitialized )
51 theSettings.UpdatePrefs();
52 return theSettings;
53}
bool mInitialized
Definition: TrackInfo.cpp:36
void UpdatePrefs() override
Definition: TrackInfo.cpp:38

References Settings::mInitialized, and Settings::UpdatePrefs().

Referenced by MacroCommands::ApplyCommandInBatchMode(), SetTrackVisualsCommand::ApplyInner(), CompressorProcessor::ApplySettingsIfNeeded(), anonymous_namespace{AudioUnitInstance.cpp}::AudioUnitMessage::Assign(), EffectTimeScale::BeginPreview(), anonymous_namespace{VST3Wrapper.cpp}::ComponentHandler::BeginStateChange(), BrushHandle::BrushHandle(), LV2Editor::BuildPlain(), EffectTimeScale::CalcPreviewInputLength(), SpecCache::CalculateOneSpectrum(), EffectBassTreble::CheckWhetherSkipEffect(), EffectCompressor::CheckWhetherSkipEffect(), AudioUnitEffectBase::ChoosePresetKey(), WaveformPrefs::Commit(), LV2Wrapper::ConnectControlPorts(), LV2Wrapper::ConnectPorts(), VST3Wrapper::ConsumeChanges(), EffectStage::Create(), LV2Wrapper::Create(), Effect::Delegate(), EffectUIHost::DoCancel(), EffectUI::DoEffect(), EffectBase::DoEffect(), EffectManager::DoGetEffect(), WaveformVRulerControls::DoHandleWheelRotation(), SpectrumVRulerControls::DoHandleWheelRotation(), EffectChangeSpeed::DoLoadFactoryDefaults(), EffectEqualization::DoLoadFactoryDefaults(), EffectDistortion::DoLoadFactoryPreset(), CapturedParameters< EffectType, Parameters >::DoReset(), ProjectFileManager::DoSave(), CapturedParameters< EffectType, Parameters >::DoSet(), SpectrumVRulerControls::DoUpdateVRuler(), WaveformVRulerControls::DoUpdateVRuler(), anonymous_namespace{SpectrumView.cpp}::DrawClipSpectrum(), anonymous_namespace{WaveformView.cpp}::DrawClipWaveform(), TrackPanel::DrawTracks(), anonymous_namespace{DynamicRangeProcessorTransferFunctionPanel.cpp}::DrawTransferFunction(), EffectPreview(), LV2Ports::EmitPortValues(), CompressorProcessor::EvaluateTransferFunction(), AudioUnitEffectBase::Export(), AudioUnitEffect::ExportPresets(), BasicEffectUIServices::ExportPresets(), VSTEffect::ExportPresets(), VST3Effect::ExportPresets(), AudioUnitWrapper::FetchSettings(), VST3Wrapper::FetchSettings(), AudioUnitEditor::FetchSettingsFromInstance(), VSTEditor::FetchSettingsFromInstance(), VST3Wrapper::Finalize(), SampleHandle::FindSampleEditingLevel(), anonymous_namespace{VST3Wrapper.cpp}::ComponentHandler::FlushCache(), VST3Wrapper::FlushParameters(), anonymous_namespace{BrushHandle.cpp}::FrequencyToPosition(), anonymous_namespace{SelectHandle.cpp}::FrequencyToPosition(), EffectSilence::GenerateTrack(), CapturedParameters< EffectType, Parameters >::Get(), anonymous_namespace{LV2Ports.cpp}::get_value_func(), SpectrogramBounds::GetBounds(), EffectManager::GetCommandDefinition(), anonymous_namespace{CompressorInstance.cpp}::GetDynamicRangeProcessorSettings(), GetEffectStages(), LadspaInstance::GetLatency(), CompressorInstance::GetLatency(), anonymous_namespace{CompressorProcessor.cpp}::GetMakeupGainDb(), CompressorProcessor::GetMaxCompressionDb(), LV2Ports::GetPortValue(), AudioUnitWrapper::GetSettings(), EffectWithSettings< Settings, Base >::GetSettings(), LadspaInstance::GetSettings(), GetSettings(), VSTWrapper::GetSettings(), anonymous_namespace{VST3Wrapper.cpp}::GetSettings(), LadspaEditor::GetSettings(), WaveClipSpectrumCache::GetSpectrogram(), SpecCache::Grow(), EffectDistortion::Instance::HardLimiter(), PluginManager::HasGroup(), CommonChannelView::HitTest(), NoteTrackAffordanceControls::HitTest(), WaveTrackAffordanceControls::HitTest(), SampleHandle::HitTest(), AudioUnitEffectBase::Import(), AudioUnitEffect::ImportPresets(), BasicEffectUIServices::ImportPresets(), VSTEffect::ImportPresets(), VST3Effect::ImportPresets(), VSTEffect::ImportPresetsNC(), RealtimeEffectState::AccessState::Initialize(), VST3Wrapper::Initialize(), LadspaEffectBase::InitializeControls(), anonymous_namespace{EffectManager.cpp}::InitializePreset(), LadspaInstance::InitInstance(), EffectDistortion::Instance::InstanceInit(), EffectReverb::Instance::InstanceInit(), CompressorInstance::InstanceInit(), EffectBassTreble::Instance::InstanceInit(), EffectPhaser::Instance::InstanceInit(), EffectWahwah::Instance::InstanceInit(), CompressorInstance::InstanceProcess(), EffectBassTreble::Instance::InstanceProcess(), EffectDistortion::Instance::InstanceProcess(), EffectPhaser::Instance::InstanceProcess(), EffectReverb::Instance::InstanceProcess(), EffectWahwah::Instance::InstanceProcess(), AudioUnitWrapper::InterpretBlob(), FileHistory::Load(), anonymous_namespace{EffectManager.cpp}::LoadComponent(), Effect::LoadFactoryDefaults(), EffectAmplify::LoadFactoryDefaults(), EffectChangeSpeed::LoadFactoryDefaults(), EffectEqualization::LoadFactoryDefaults(), AudioUnitEffectBase::LoadFactoryPreset(), LV2EffectBase::LoadFactoryPreset(), VSTEffectBase::LoadFactoryPreset(), VST3EffectBase::LoadFactoryPreset(), EffectDistortion::LoadFactoryPreset(), EffectEqualization::LoadFactoryPreset(), EffectReverb::LoadFactoryPreset(), LadspaEffectBase::LoadParameters(), LV2EffectBase::LoadParameters(), AudioUnitWrapper::LoadPreset(), AudioUnitEffectBase::LoadPreset(), VST3EffectBase::LoadPreset(), VST3Wrapper::LoadSettings(), AudioUnitEffectBase::LoadSettings(), Effect::LoadSettings(), LadspaEffectBase::LoadSettings(), LV2EffectBase::LoadSettings(), VSTEffectBase::LoadSettings(), VST3EffectBase::LoadSettings(), NyquistEffect::LoadSettings(), EffectTruncSilence::LoadSettings(), Effect::LoadSettingsFromString(), VST3Wrapper::LoadUserPreset(), AudioUnitEffectBase::LoadUserPreset(), LadspaEffectBase::LoadUserPreset(), LV2EffectBase::LoadUserPreset(), VSTEffectBase::LoadUserPreset(), VST3EffectBase::LoadUserPreset(), RealtimeEffectState::AccessState::MainWrite(), AudioUnitWrapper::MakeBlob(), DynamicRangeProcessorEffectUtils::MakeCompressorEditor(), EffectBassTreble::MakeEditor(), EffectDistortion::MakeEditor(), EffectDtmf::MakeEditor(), EffectEcho::MakeEditor(), EffectPhaser::MakeEditor(), EffectReverb::MakeEditor(), EffectWahwah::MakeEditor(), anonymous_namespace{DynamicRangeProcessorEffectUtils.cpp}::MakeEditor(), anonymous_namespace{DynamicRangeProcessorEditor.cpp}::MakeHistoryPanels(), anonymous_namespace{EffectStage.cpp}::MakeInstances(), DynamicRangeProcessorEffectUtils::MakeLimiterEditor(), LV2Instance::MakeMaster(), AudioUnitInstance::MakeMessage(), VSTInstance::MakeMessage(), VSTWrapper::MakeMessageFS(), AudioUnitEffectBase::MakeSettings(), LV2EffectBase::MakeSettings(), VSTEffectBase::MakeSettings(), LV2Instance::MakeWrapper(), SpecCache::Matches(), anonymous_namespace{AudioUnitInstance.cpp}::AudioUnitMessage::Merge(), AudioUnitEffectBase::MigrateOldConfigFile(), EffectSettingsAccess::ModifySettings(), anonymous_namespace{SelectMenus.cpp}::MoveWhenAudioInactive(), anonymous_namespace{TrackMenus.cpp}::MuteTracks(), VSTEditor::NotifyParameterChanged(), LV2Editor::OnChoice(), VST3Editor::OnClose(), ProjectManager::OnCloseWindow(), EffectUIHost::OnDefaults(), EffectDtmf::Editor::OnDuration(), EffectDtmf::Editor::OnDutyCycle(), EffectUIHost::OnFactoryPreset(), TimeToolBar::OnFormatsChanged(), VST3Editor::OnIdle(), AudioUnitEditor::OnIdle(), VSTEditor::OnIdle(), EffectUIHost::OnImport(), anonymous_namespace{ToolsToolBar.cpp}::OnNextTool(), anonymous_namespace{ToolsToolBar.cpp}::OnPrevTool(), EffectDtmf::Editor::OnSequence(), LV2Editor::OnSlider(), LV2Editor::OnText(), anonymous_namespace{TimerRecordDialog.cpp}::OnTimerRecord(), LV2Editor::OnToggle(), LV2Editor::OnTrigger(), EffectUIHost::OnUserPreset(), anonymous_namespace{VST3Wrapper.cpp}::ComponentHandler::performEdit(), SpecCache::Populate(), EffectDtmf::Editor::PopulateOrExchange(), LV2Effect::PopulateUI(), anonymous_namespace{BrushHandle.cpp}::PositionToFrequency(), anonymous_namespace{SelectHandle.cpp}::PositionToFrequency(), SpectrumPrefs::Preview(), PerTrackEffect::Process(), StatefulPerTrackEffect::Process(), Generator::Process(), NyquistEffect::Process(), EffectTimeScale::Process(), EffectTwoPassSimpleMono::Process(), PerTrackEffect::Instance::Process(), StatefulEffect::Instance::Process(), EffectBassTreble::Instance::ProcessBlock(), CompressorInstance::ProcessBlock(), EffectDistortion::Instance::ProcessBlock(), EffectDtmf::Instance::ProcessBlock(), EffectEcho::Instance::ProcessBlock(), EffectPhaser::Instance::ProcessBlock(), EffectReverb::Instance::ProcessBlock(), StatefulPerTrackEffect::Instance::ProcessBlock(), EffectWahwah::Instance::ProcessBlock(), VST3Wrapper::ProcessBlockStart(), AudioUnitInstance::ProcessInitialize(), StatefulEffectBase::Instance::ProcessInitialize(), LadspaInstance::ProcessInitialize(), LV2Instance::ProcessInitialize(), VSTInstance::ProcessInitialize(), VST3Instance::ProcessInitialize(), EffectBassTreble::Instance::ProcessInitialize(), CompressorInstance::ProcessInitialize(), EffectDistortion::Instance::ProcessInitialize(), EffectDtmf::Instance::ProcessInitialize(), EffectEcho::Instance::ProcessInitialize(), EffectPhaser::Instance::ProcessInitialize(), EffectReverb::Instance::ProcessInitialize(), StatefulPerTrackEffect::Instance::ProcessInitialize(), EffectWahwah::Instance::ProcessInitialize(), PerTrackEffect::ProcessPass(), PerTrackEffect::ProcessTrack(), RealtimeEffectState::AccessState::FromMainSlot::Reader::Reader(), EffectReverb::Instance::RealtimeAddProcessor(), AudioUnitInstance::RealtimeAddProcessor(), StatefulEffectBase::Instance::RealtimeAddProcessor(), LadspaInstance::RealtimeAddProcessor(), LV2Instance::RealtimeAddProcessor(), VSTInstance::RealtimeAddProcessor(), VST3Instance::RealtimeAddProcessor(), EffectBassTreble::Instance::RealtimeAddProcessor(), CompressorInstance::RealtimeAddProcessor(), EffectDistortion::Instance::RealtimeAddProcessor(), EffectPhaser::Instance::RealtimeAddProcessor(), EffectWahwah::Instance::RealtimeAddProcessor(), StatefulEffectBase::Instance::RealtimeFinalize(), VST3Instance::RealtimeFinalize(), AudioUnitInstance::RealtimeInitialize(), StatefulEffectBase::Instance::RealtimeInitialize(), VSTInstance::RealtimeInitialize(), VST3Instance::RealtimeInitialize(), EffectReverb::Instance::RealtimeInitialize(), AudioUnitInstance::RealtimeProcess(), StatefulEffectBase::Instance::RealtimeProcess(), VSTInstance::RealtimeProcess(), EffectBassTreble::Instance::RealtimeProcess(), CompressorInstance::RealtimeProcess(), EffectDistortion::Instance::RealtimeProcess(), EffectPhaser::Instance::RealtimeProcess(), EffectReverb::Instance::RealtimeProcess(), EffectWahwah::Instance::RealtimeProcess(), StatefulEffectBase::Instance::RealtimeProcessEnd(), AudioUnitInstance::RealtimeProcessStart(), VST3Instance::RealtimeProcessStart(), DtmfSettings::Recalculate(), SnapManager::Reinit(), SpectrumPrefs::Rollback(), FileHistory::Save(), LadspaEffectBase::SaveParameters(), LV2EffectBase::SaveParameters(), AudioUnitEffectBase::SavePreset(), VST3Wrapper::SaveSettings(), AudioUnitEffectBase::SaveSettings(), Effect::SaveSettings(), LadspaEffectBase::SaveSettings(), LV2EffectBase::SaveSettings(), VSTEffectBase::SaveSettings(), VST3EffectBase::SaveSettings(), Effect::SaveSettingsAsString(), VST3Wrapper::SaveUserPreset(), AudioUnitEffectBase::SaveUserPreset(), Effect::SaveUserPreset(), LadspaEffectBase::SaveUserPreset(), LV2EffectBase::SaveUserPreset(), VSTEffectBase::SaveUserPreset(), VST3EffectBase::SaveUserPreset(), anonymous_namespace{SelectMenus.cpp}::SeekWhenAudioInactive(), CapturedParameters< EffectType, Parameters >::Set(), SimpleEffectSettingsAccess::Set(), RealtimeEffectState::Access::Set(), anonymous_namespace{LV2Ports.cpp}::set_value_func(), RealtimeEffectState::SetActive(), EffectManager::SetEffectParameters(), LV2Ports::SetPortValue(), TrackInfo::SetTrackInfoFont(), NyquistEffect::ShowHostInterface(), SelectHandle::SnapCenterOnce(), SnappingToolBar::SnappingToolBar(), SpectrumPrefs::SpectrumPrefs(), SelectHandle::StartSnappingFreqSelection(), AudioUnitWrapper::StoreSettings(), VST3Wrapper::StoreSettings(), AudioUnitEditor::StoreSettingsToInstance(), VSTEditor::StoreSettingsToInstance(), LV2Editor::suil_port_write(), RealtimeEffectState::SettingsAndCounter::swap(), TEST_CASE(), TestGroups(), TestRW(), TimeSignatureToolBar::TimeSignatureToolBar(), EffectNoiseReduction::TrackProgress(), EffectUIHost::TransferDataFromWindow(), EffectNoise::TransferDataFromWindow(), EffectSilence::TransferDataFromWindow(), EffectToneGen::TransferDataFromWindow(), EffectEqualization::TransferDataToWindow(), EffectNoise::TransferDataToWindow(), EffectSilence::TransferDataToWindow(), EffectToneGen::TransferDataToWindow(), LV2Editor::UpdateControlPortValue(), EffectBassTreble::Editor::UpdateUI(), EffectDtmf::Editor::UpdateUI(), EffectEcho::Editor::UpdateUI(), EffectPhaser::Editor::UpdateUI(), VST3Editor::UpdateUI(), EffectWahwah::Editor::UpdateUI(), anonymous_namespace{LoadLV2.cpp}::LV2PluginValidator::Validate(), DynamicRangeProcessorEditor::ValidateUI(), AudioUnitEditor::ValidateUI(), EffectBassTreble::Editor::ValidateUI(), EffectDistortion::Editor::ValidateUI(), EffectDtmf::Editor::ValidateUI(), EffectEcho::Editor::ValidateUI(), anonymous_namespace{EqualizationUI.cpp}::EqualizationUIEditor::ValidateUI(), LadspaEditor::ValidateUI(), LV2Editor::ValidateUI(), EffectPhaser::Editor::ValidateUI(), EffectReverb::Editor::ValidateUI(), anonymous_namespace{StatefulEffectUIServices.cpp}::DefaultEffectEditor::ValidateUI(), VSTEditor::ValidateUI(), VST3Editor::ValidateUI(), EffectWahwah::Editor::ValidateUI(), EffectEqualization::ValidateUI(), CapturedParameters< EffectType, Parameters >::Visit(), EffectEqualization::VisitSettings(), Effect::VisitSettings(), NyquistEffect::VisitSettings(), VSTEditor::VSTEditor(), WaveformPrefs::WaveformPrefs(), and EffectNoiseReduction::Worker::Worker().

Here is the call graph for this function: