| 621 | } |
| 622 | |
| 623 | bool BaseGrid::IsDisplayed(const AssDialogue *line) const { |
| 624 | if (!context->project->VideoProvider()) return false; |
| 625 | int frame = context->videoController->GetFrameN(); |
| 626 | return context->project->Timecodes().FrameAtTime(line->Start, agi::vfr::START) <= frame |
| 627 | && context->project->Timecodes().FrameAtTime(line->End, agi::vfr::END) >= frame; |
| 628 | } |
| 629 | |
| 630 | void BaseGrid::OnCharHook(wxKeyEvent &event) { |
| 631 | if (hotkey::check("Subtitle Grid", context, event)) |
nothing calls this directly
no test coverage detected