Add Play/Stop button to the Frame Dial.
[synfig.git] / synfig-studio / trunk / src / gtkmm / framedial.h
1 /* === S Y N F I G ========================================================= */
2 /*!     \file zoomdial.h
3 **      \brief Template Header
4 **
5 **      $Id$
6 **
7 **      \legal
8 **      Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley
9 **  Copyright (c) 2008 Chris Moore
10 **  Copyright (c) 2009 Gerco Ballintijn
11 **
12 **      This package is free software; you can redistribute it and/or
13 **      modify it under the terms of the GNU General Public License as
14 **      published by the Free Software Foundation; either version 2 of
15 **      the License, or (at your option) any later version.
16 **
17 **      This package is distributed in the hope that it will be useful,
18 **      but WITHOUT ANY WARRANTY; without even the implied warranty of
19 **      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20 **      General Public License for more details.
21 **      \endlegal
22 */
23 /* ========================================================================= */
24
25 /* === S T A R T =========================================================== */
26
27 #ifndef __SYNFIG_STUDIO_FRAMEDIAL_H
28 #define __SYNFIG_STUDIO_FRAMEDIAL_H
29
30 /* === H E A D E R S ======================================================= */
31
32 #include <gtkmm/tooltips.h>
33 #include <gtkmm/table.h>
34 #include <gtkmm/button.h>
35
36 #include "general.h"
37
38 /* === M A C R O S ========================================================= */
39
40 /* === T Y P E D E F S ===================================================== */
41
42 /* === C L A S S E S & S T R U C T S ======================================= */
43
44 namespace studio
45 {
46
47 class FrameDial : public Gtk::Table
48 {
49         Gtk::Tooltips tooltips;
50
51         Gtk::Button *seek_begin;
52         Gtk::Button *seek_prev_frame;
53         Gtk::Button *play_stop;
54         Gtk::Button *seek_next_frame;
55         Gtk::Button *seek_end;
56
57         Gtk::Button *create_icon(Gtk::IconSize size, const Gtk::BuiltinStockID & stockid,
58                         const char * tooltip);
59
60 public:
61         FrameDial();
62
63         Glib::SignalProxy0<void> signal_seek_begin()            { return seek_begin->signal_clicked(); }
64         Glib::SignalProxy0<void> signal_seek_prev_frame()       { return seek_prev_frame->signal_clicked(); }
65         Glib::SignalProxy0<void> signal_play_stop()                     { return play_stop->signal_clicked(); }
66         Glib::SignalProxy0<void> signal_seek_next_frame()       { return seek_next_frame->signal_clicked(); }
67         Glib::SignalProxy0<void> signal_seek_end()                      { return seek_end->signal_clicked(); }
68
69         Gtk::Button *get_play_button() { return play_stop; }
70
71 }; // END of class FrameDial
72
73 }; // END of namespace studio
74
75
76 /* === E N D =============================================================== */
77
78 #endif