Audacity 3.2.0
Classes | Functions | Variables
anonymous_namespace{RealtimeEffectPanel.cpp} Namespace Reference

Classes

class  DropHintLine
 
class  HyperLinkCtrlWrapper
 
class  RealtimeEffectControl
 
class  RealtimeEffectPicker
 
class  RealtimeEffectsMenuVisitor
 

Functions

template<typename Visitor >
void VisitRealtimeEffectStateUIs (SampleTrack &track, Visitor &&visitor)
 
void UpdateRealtimeEffectUIData (SampleTrack &track)
 
void ReopenRealtimeEffectUIData (AudacityProject &project, SampleTrack &track)
 
static wxString GetSafeVendor (const PluginDescriptor &descriptor)
 

Variables

AttachedWindows::RegisteredFactory sKey
 

Function Documentation

◆ GetSafeVendor()

static wxString anonymous_namespace{RealtimeEffectPanel.cpp}::GetSafeVendor ( const PluginDescriptor descriptor)
static

Definition at line 553 of file RealtimeEffectPanel.cpp.

554 {
555 if (descriptor.GetVendor().empty())
556 return XO("Unknown").Translation();
557
558 return descriptor.GetVendor();
559 }
XO("Cut/Copy/Paste")
const wxString & GetVendor() const

References PluginDescriptor::GetVendor(), and XO().

Here is the call graph for this function:

◆ ReopenRealtimeEffectUIData()

void anonymous_namespace{RealtimeEffectPanel.cpp}::ReopenRealtimeEffectUIData ( AudacityProject project,
SampleTrack track 
)

Definition at line 126 of file RealtimeEffectPanel.cpp.

127 {
129 track,
130 [&](auto& ui)
131 {
132 if (ui.IsShown())
133 {
134 ui.Hide(&project);
135 ui.Show(project);
136 }
137 });
138 }
void VisitRealtimeEffectStateUIs(SampleTrack &track, Visitor &&visitor)

References VisitRealtimeEffectStateUIs().

Referenced by RealtimeEffectPanel::PrefsListenerHelper::UpdatePrefs().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ UpdateRealtimeEffectUIData()

void anonymous_namespace{RealtimeEffectPanel.cpp}::UpdateRealtimeEffectUIData ( SampleTrack track)

Definition at line 120 of file RealtimeEffectPanel.cpp.

121 {
123 track, [&](auto& ui) { ui.UpdateTrackData(track); });
124 }

References VisitRealtimeEffectStateUIs().

Referenced by RealtimeEffectPanel::RealtimeEffectPanel(), and RealtimeEffectListWindow::SetTrack().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ VisitRealtimeEffectStateUIs()

template<typename Visitor >
void anonymous_namespace{RealtimeEffectPanel.cpp}::VisitRealtimeEffectStateUIs ( SampleTrack track,
Visitor &&  visitor 
)

Definition at line 107 of file RealtimeEffectPanel.cpp.

108 {
109 if (!track.IsLeader())
110 return;
111 auto& effects = RealtimeEffectList::Get(track);
112 effects.Visit(
113 [visitor](auto& effectState, bool)
114 {
115 auto& ui = RealtimeEffectStateUI::Get(effectState);
116 visitor(ui);
117 });
118 }
static RealtimeEffectList & Get(AudacityProject &project)
static RealtimeEffectStateUI & Get(RealtimeEffectState &state)
bool IsLeader() const override
Definition: Track.cpp:291

References RealtimeEffectList::Get(), RealtimeEffectStateUI::Get(), and SampleTrack::IsLeader().

Referenced by RealtimeEffectPanel::RealtimeEffectPanel(), ReopenRealtimeEffectUIData(), and UpdateRealtimeEffectUIData().

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ sKey

AttachedWindows::RegisteredFactory anonymous_namespace{RealtimeEffectPanel.cpp}::sKey
Initial value:
{
[](AudacityProject &project) -> wxWeakRef<wxWindow> {
constexpr auto EffectsPanelMinWidth { 255 };
const auto pProjectWindow = &ProjectWindow::Get(project);
project, pProjectWindow->GetContainerWindow(), wxID_ANY);
effectsPanel->SetMinSize({EffectsPanelMinWidth, -1});
effectsPanel->SetName(_("Realtime effects"));
effectsPanel->SetBackgroundColorIndex(clrMedium);
effectsPanel->Hide();
return effectsPanel;
}
}
#define _(s)
Definition: Internat.h:73
#define safenew
Definition: MemoryX.h:9
const auto project
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 ProjectWindow & Get(AudacityProject &project)

Definition at line 1041 of file RealtimeEffectPanel.cpp.

Referenced by RealtimeEffectPanel::Get().