| 1551 | } |
| 1552 | |
| 1553 | std::vector<wxRect> TrackPanel::FindRulerRects(const Channel &target) |
| 1554 | { |
| 1555 | std::vector<wxRect> results; |
| 1556 | VisitCells( [&](const wxRect &rect, TrackPanelCell &visited) { |
| 1557 | if (auto pRuler = dynamic_cast<const ChannelVRulerControls*>(&visited)) |
| 1558 | if (auto pView = pRuler->GetChannelView()) |
| 1559 | if (pView->FindChannel().get() == &target) |
| 1560 | results.push_back(rect); |
| 1561 | } ); |
| 1562 | return results; |
| 1563 | } |
| 1564 | |
| 1565 | std::shared_ptr<TrackPanelCell> TrackPanel::GetFocusedCell() |
| 1566 | { |
no test coverage detected