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

Method HidePanel

src/RealtimeEffectPanel.cpp:1361–1376  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1359}
1360
1361void RealtimeEffectPanel::HidePanel()
1362{
1363 wxWindowUpdateLocker freeze(this);
1364
1365 auto &projectWindow = ProjectWindow::Get(mProject);
1366 const auto pContainerWindow = projectWindow.GetContainerWindow();
1367 const auto pTrackListWindow = projectWindow.GetTrackListWindow();
1368 if (pContainerWindow->GetWindow2() == nullptr)
1369 //only effects panel is present, restore split positions before removing effects panel
1370 //Workaround: ::Replace and ::Initialize do not work here...
1371 pContainerWindow->SplitVertically(this, pTrackListWindow);
1372
1373 pContainerWindow->Unsplit(this);
1374 pTrackListWindow->SetFocus();
1375 projectWindow.Layout();
1376}
1377
1378void RealtimeEffectPanel::SetTrack(const std::shared_ptr<SampleTrack>& track)
1379{

Callers 1

Calls 5

GetFunction · 0.85
GetContainerWindowMethod · 0.80
GetTrackListWindowMethod · 0.80
SetFocusMethod · 0.45
LayoutMethod · 0.45

Tested by

no test coverage detected