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

Method GetProject

src/TrackPanel.cpp:374–386  ·  view source on GitHub ↗

Gets the pointer to the AudacityProject that goes with this track panel.

Source from the content-addressed store, hash-verified

372/// Gets the pointer to the AudacityProject that
373/// goes with this track panel.
374AudacityProject * TrackPanel::GetProject() const
375{
376 auto window = GetParent();
377
378 while(window != nullptr)
379 {
380 if(const auto projectWindow = dynamic_cast<ProjectWindow*>(window))
381 return projectWindow->FindProject().get();
382
383 window = window->GetParent();
384 }
385 return nullptr;
386}
387
388void TrackPanel::OnSize( wxSizeEvent &evt )
389{

Callers 7

InitProjectWindowFunction · 0.45
ProcessUIHandleResultMethod · 0.45
DrawMethod · 0.45
DrawMethod · 0.45
PanSliderDrawFunctionFunction · 0.45
VolumeSliderDrawFunctionFunction · 0.45

Calls 4

GetParentFunction · 0.85
getMethod · 0.45
FindProjectMethod · 0.45
GetParentMethod · 0.45

Tested by

no test coverage detected