69 TimelineZoomScale::TimelineZoomScale()
71 , adjustment(
Gtk::Adjustment::create(0.5, 0.0, 1.0, 0.000001))
73 , zoomIn(Stock::ZOOM_IN)
74 , zoomOut(Stock::ZOOM_OUT)
75 , button_step_size(0.03)
78 slider.set_adjustment (adjustment);
79 slider.set_size_request (123,10);
80 slider.set_digits (6);
83 slider.set_inverted (
true);
85 slider.set_draw_value (
false);
88 zoomIn.signal_clicked().
90 zoomOut.signal_clicked().
92 adjustment->signal_value_changed().
96 pack_start (zoomOut,PACK_SHRINK);
97 pack_start (slider,PACK_SHRINK);
98 pack_start (zoomIn,PACK_SHRINK);
119 timelineState = newState;
128 double newValue = adjustment->get_value() - button_step_size;
129 adjustment->set_value(newValue);
136 double newValue = adjustment->get_value() + button_step_size;
137 adjustment->set_value(newValue);
144 zoomSignal.emit (adjustment->get_value());
148 sigc::signal<void, double>
149 TimelineZoomScale::signal_zoom()
158 REQUIRE (timelineState,
"lifecycle error");
159 return timelineState->getViewWindow();
Lumiera GTK UI implementation root.
Widget to control timeline zoom scale.