TimelineZoomScale::on_timeline_state_changed method implemented. Other timeline components need fixing now (seems only the ruler is zooming now)

This commit is contained in:
Michael R. Fisher 2011-10-09 20:54:55 -05:00
parent fb28592082
commit 91cc3f90a0

View file

@ -104,7 +104,13 @@ TimelineZoomScale::on_timeline_state_changed (boost::shared_ptr<TimelineState> 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