1 /* === S Y N F I G ========================================================= */
3 ** \brief Template Header
8 ** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley
9 ** Copyright (c) 2008 Chris Moore
11 ** This package is free software; you can redistribute it and/or
12 ** modify it under the terms of the GNU General Public License as
13 ** published by the Free Software Foundation; either version 2 of
14 ** the License, or (at your option) any later version.
16 ** This package is distributed in the hope that it will be useful,
17 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
18 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 ** General Public License for more details.
22 /* ========================================================================= */
24 /* === S T A R T =========================================================== */
26 #ifndef __SYNFIG_STUDIO_ZOOMDIAL_H
27 #define __SYNFIG_STUDIO_ZOOMDIAL_H
29 /* === H E A D E R S ======================================================= */
31 #include <gtkmm/tooltips.h>
32 #include <gtkmm/table.h>
33 #include <gtkmm/button.h>
35 /* === M A C R O S ========================================================= */
37 /* === T Y P E D E F S ===================================================== */
39 /* === C L A S S E S & S T R U C T S ======================================= */
44 class ZoomDial : public Gtk::Table
46 Gtk::Tooltips tooltips;
49 Gtk::Button *zoom_out;
50 Gtk::Button *zoom_fit;
51 Gtk::Button *zoom_norm;
53 Gtk::Button *create_icon(Gtk::IconSize size, const Gtk::BuiltinStockID & stockid,
54 const char * tooltip);
57 ZoomDial(Gtk::IconSize &size);
59 Glib::SignalProxy0<void> signal_zoom_in() { return zoom_in->signal_clicked(); }
60 Glib::SignalProxy0<void> signal_zoom_out() { return zoom_out->signal_clicked(); }
61 Glib::SignalProxy0<void> signal_zoom_fit() { return zoom_fit->signal_clicked(); }
62 Glib::SignalProxy0<void> signal_zoom_norm() { return zoom_norm->signal_clicked(); }
64 }; // END of class ZoomDial
66 }; // END of namespace studio
68 /* === E N D =============================================================== */