60 TimelineZoomScale::TimelineZoomScale()
62 , adjustment(
Gtk::Adjustment::create(0.5, 0.0, 1.0, 0.000001))
64 , zoomIn(Stock::ZOOM_IN)
65 , zoomOut(Stock::ZOOM_OUT)
66 , button_step_size(0.03)
69 slider.set_adjustment (adjustment);
70 slider.set_size_request (123,10);
71 slider.set_digits (6);
74 slider.set_inverted (
true);
76 slider.set_draw_value (
false);
79 zoomIn.signal_clicked().
81 zoomOut.signal_clicked().
83 adjustment->signal_value_changed().
87 pack_start (zoomOut,PACK_SHRINK);
88 pack_start (slider,PACK_SHRINK);
89 pack_start (zoomIn,PACK_SHRINK);
110 timelineState = newState;
119 double newValue = adjustment->get_value() - button_step_size;
120 adjustment->set_value(newValue);
127 double newValue = adjustment->get_value() + button_step_size;
128 adjustment->set_value(newValue);
135 zoomSignal.emit (adjustment->get_value());
139 sigc::signal<void, double>
140 TimelineZoomScale::signal_zoom()
149 REQUIRE (timelineState,
"lifecycle error");
150 return timelineState->getViewWindow();
Lumiera GTK UI implementation root.
Widget to control timeline zoom scale.