Lumiera 0.pre.04~rc.1
»edit your freedom«
Loading...
Searching...
No Matches
timeline-zoom-scale.hpp
Go to the documentation of this file.
1/*
2 TIMELINE-ZOOM-SCALE.hpp - widget to control timeline zoom scale
3
4 Copyright (C)
5 2011, Michael R. Fisher <mfisher31@gmail.com>
6
7  **Lumiera** is free software; you can redistribute it and/or modify it
8  under the terms of the GNU General Public License as published by the
9  Free Software Foundation; either version 2 of the License, or (at your
10  option) any later version. See the file COPYING for further details.
11
12*/
13
14
27#ifndef STAGE_WIDGET_TIMELINE_ZOOM_SCALE_H
28#define STAGE_WIDGET_TIMELINE_ZOOM_SCALE_H
29
30#include "stage/gtk-base.hpp"
32
33
34namespace stage {
35namespace widget {
36
38 : public Gtk::HBox
39 {
40 public:
42
43 sigc::signal<void, double> signal_zoom();
44
45 void set_value(double val) { adjustment->set_value(val); }
46
47 void wireTimelineState (/* TODO what to pass here? */);
48
49
50
51 private: /* ===== Event Handlers ===== */
52
56 void on_timeline_state_changed (/* TODO what to pass here? */);
57
61 void on_zoom_in_clicked();
62
67
71 void on_zoom();
72
73 /* Widgets */
74 Glib::RefPtr<Gtk::Adjustment> adjustment;
75 Gtk::HScale slider;
78
79
80 private:
81 sigc::signal<void, double> zoomSignal;
82 const double button_step_size;
83 };
84
85
86}}// namespace stage::widget
87#endif /*STAGE_WIDGET_TIMELINE_ZOOM_SCALE_H*/
void on_zoom()
Event handler for when the adjustment value is changed.
Glib::RefPtr< Gtk::Adjustment > adjustment
void on_zoom_in_clicked()
Event handler for when the zoomIn Button is clicked.
sigc::signal< void, double > signal_zoom()
TimelineZoomScale()
A widget to control the timeline zoom state.
void on_timeline_state_changed()
Update the slider position when the timeline state is changed.
sigc::signal< void, double > zoomSignal
void on_zoom_out_clicked()
Event handler for when the zoomIn Button is clicked.
A set of basic GTK includes for the UI.
Adapter to wrap button widgets intended to serve as tool buttons.
Lumiera GTK UI implementation root.
Definition guifacade.cpp:37