MCPcopy Create free account
hub / github.com/audacity/audacity / ToggleUi

Function ToggleUi

src/RealtimeEffectPanel.cpp:61–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59{
60
61 void ToggleUi(
62 AudacityProject& project, RealtimeEffectState& state, wxString sourceName)
63 {
64 const auto ID = state.GetID();
65 const auto effectPlugin = EffectManager::Get().GetEffect(ID);
66
67 if (effectPlugin == nullptr)
68 return;
69
70 auto& effectStateUI = RealtimeEffectStateUI::Get(state);
71
72 effectStateUI.SetTargetName(sourceName);
73 effectStateUI.Toggle(project);
74 }
75
76 using namespace MenuRegistry;
77 class RealtimeEffectsMenuVisitor final : public Visitor<Traits> {

Callers 2

OnChangeButtonClickedMethod · 0.85
OnAddEffectClickedMethod · 0.85

Calls 5

GetFunction · 0.85
SetTargetNameMethod · 0.80
GetIDMethod · 0.45
GetEffectMethod · 0.45
ToggleMethod · 0.45

Tested by

no test coverage detected