From cfa8e87931ac6b0a67f475a4e9133d7b23f70ca8 Mon Sep 17 00:00:00 2001 From: Ichthyostega Date: Mon, 23 Mar 2020 04:29:06 +0100 Subject: [PATCH] Relative-Hook: now able to push down time->pixel translation (see #1213) the actual translation is still TODO; we should delegate the calculation to the DisplayManager, which is in focus within the TrackBody, where the coordinate translation hook is now located. --- src/stage/timeline/clip-presenter.cpp | 7 ++++--- src/stage/timeline/clip-presenter.hpp | 4 +++- src/stage/timeline/clip-widget.cpp | 9 ++++++--- src/stage/timeline/clip-widget.hpp | 4 +++- src/stage/timeline/track-presenter.hpp | 21 ++------------------- 5 files changed, 18 insertions(+), 27 deletions(-) diff --git a/src/stage/timeline/clip-presenter.cpp b/src/stage/timeline/clip-presenter.cpp index 59a5b344e..d144c1b7a 100644 --- a/src/stage/timeline/clip-presenter.cpp +++ b/src/stage/timeline/clip-presenter.cpp @@ -68,16 +68,17 @@ namespace timeline { * @param identity referring to the corresponding session::Clip in Steam-Layer. * @param nexus a way to connect this Controller to the UI-Bus. * @param view (abstracted) canvas or display framework to attach this clip to - * @param offsetX offset relative to the start of the track ///////////////////////////////TICKET #1213 : translation time->offset should be built into the ViewHook!!! + * @param startTime (optional) start time point of the clip. + * @note Clip can not be displayed unless startTime is given */ - ClipPresenter::ClipPresenter (ID identity, ctrl::BusTerm& nexus, WidgetHook& view, optional offsetX) + ClipPresenter::ClipPresenter (ID identity, ctrl::BusTerm& nexus, WidgetHook& view, optional