timeline: show transition tool overlay

This commit is contained in:
itsmattkc
2021-07-20 20:07:44 -07:00
parent a0719701cf
commit 841e9086bc
6 changed files with 145 additions and 42 deletions
@@ -1076,6 +1076,8 @@ void TimelineWidget::ViewTimestampChanged(int64_t ts)
void TimelineWidget::ToolChanged()
{
HideSnaps();
SetViewBeamCursor(TimelineCoordinate(0, Track::kNone, -1));
SetViewTransitionOverlay(nullptr, nullptr);
}
void TimelineWidget::SetViewWaveformsEnabled(bool e)
@@ -1147,6 +1149,13 @@ void TimelineWidget::SetViewBeamCursor(const TimelineCoordinate &coord)
}
}
void TimelineWidget::SetViewTransitionOverlay(ClipBlock *out, ClipBlock *in)
{
foreach (TimelineAndTrackView* tview, views_) {
tview->view()->SetTransitionOverlay(out, in);
}
}
void TimelineWidget::SetBlockLinksSelected(Block* block, bool selected)
{
foreach (Block* link, block->block_links()) {