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

Function FindByPath

src/JournalWindowPaths.cpp:116–127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

114}
115
116wxWindow *FindByPath( const Path &path )
117{
118 auto components = wxSplit( path.GET(), PathSeparator, EscapeCharacter );
119 if ( !components.empty() ) {
120 auto iter = components.begin(), end = components.end();
121 auto pWindow = FindByNameAmongPeers( *iter++, wxTopLevelWindows );
122 while ( pWindow && iter != end )
123 pWindow = FindByNameAmongPeers( *iter++, pWindow->GetChildren() );
124 return pWindow;
125 }
126 return nullptr;
127}
128
129}
130

Callers 4

NullaryCommandTypeFunction · 0.85
BooleanCommandTypeFunction · 0.85
NumericalCommandTypeFunction · 0.85
TextualCommandTypeFunction · 0.85

Calls 5

FindByNameAmongPeersFunction · 0.85
GetChildrenMethod · 0.80
emptyMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected