| 114 | } |
| 115 | |
| 116 | wxWindow *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 |
no test coverage detected