From 91cc3f90a0d9c15d85192d778ca4bb8f3d36d74e Mon Sep 17 00:00:00 2001 From: "Michael R. Fisher" Date: Sun, 9 Oct 2011 20:54:55 -0500 Subject: [PATCH] TimelineZoomScale::on_timeline_state_changed method implemented. Other timeline components need fixing now (seems only the ruler is zooming now) --- src/gui/widgets/timeline/timeline-zoom-scale.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/gui/widgets/timeline/timeline-zoom-scale.cpp b/src/gui/widgets/timeline/timeline-zoom-scale.cpp index 8d084b525..ff5374fa4 100644 --- a/src/gui/widgets/timeline/timeline-zoom-scale.cpp +++ b/src/gui/widgets/timeline/timeline-zoom-scale.cpp @@ -104,7 +104,13 @@ TimelineZoomScale::on_timeline_state_changed (boost::shared_ptr n REQUIRE (newState); timelineState = newState; - UNIMPLEMENTED ("react on the timeline state change"); ///////////////////////////TODO + int64_t current_scale = + timelineState->get_view_window().get_time_scale(); + + double new_relative_scale = + (double) current_scale / (double) TimelineWidget::MaxScale; + + adjustment.set_value(new_relative_scale); } void