synfig-studio  1.0.3
framedial.h
Go to the documentation of this file.
1 /* === S Y N F I G ========================================================= */
24 /* ========================================================================= */
25 
26 /* === S T A R T =========================================================== */
27 
28 #ifndef __SYNFIG_STUDIO_FRAMEDIAL_H
29 #define __SYNFIG_STUDIO_FRAMEDIAL_H
30 
31 /* === H E A D E R S ======================================================= */
32 
33 #include <gtkmm/tooltip.h>
34 #include <gtkmm/table.h>
35 #include <gtkmm/button.h>
36 
37 #include "general.h"
38 
39 /* === M A C R O S ========================================================= */
40 
41 /* === T Y P E D E F S ===================================================== */
42 
43 /* === C L A S S E S & S T R U C T S ======================================= */
44 
45 namespace studio
46 {
47 
48 class FrameDial : public Gtk::Table
49 {
50  Gtk::Button *seek_begin;
51  Gtk::Button *seek_prev_keyframe;
52  Gtk::Button *seek_prev_frame;
53  Gtk::Button *play;
54  Gtk::Button *pause;
55  Gtk::Button *seek_next_frame;
56  Gtk::Button *seek_next_keyframe;
57  Gtk::Button *seek_end;
58 
59  Gtk::Button *create_icon(Gtk::IconSize iconsize, const char * stockid, const char * tooltip);
60 
61 public:
62  FrameDial();
63  Glib::SignalProxy0<void> signal_seek_begin() { return seek_begin->signal_clicked(); }
64  Glib::SignalProxy0<void> signal_seek_prev_keyframe() { return seek_prev_keyframe->signal_clicked(); }
65  Glib::SignalProxy0<void> signal_seek_prev_frame() { return seek_prev_frame->signal_clicked(); }
66  Glib::SignalProxy0<void> signal_play() { return play->signal_clicked(); }
67  Glib::SignalProxy0<void> signal_pause() { return pause->signal_clicked();}
68  Glib::SignalProxy0<void> signal_seek_next_frame() { return seek_next_frame->signal_clicked(); }
69  Glib::SignalProxy0<void> signal_seek_next_keyframe() { return seek_next_keyframe->signal_clicked(); }
70  Glib::SignalProxy0<void> signal_seek_end() { return seek_end->signal_clicked(); }
71 
72  void toggle_play_pause_button(bool is_playing);
73 
74 }; // END of class FrameDial
75 
76 }; // END of namespace studio
77 
78 
79 /* === E N D =============================================================== */
80 
81 #endif