Remove .gitignore do nothing is ignored.
[synfig.git] / synfig-studio / trunk / src / gtkmm / zoomdial.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 **
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.
15 **
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.
20 **      \endlegal
21 */
22 /* ========================================================================= */
23
24 /* === S T A R T =========================================================== */
25
26 #ifndef __SYNFIG_STUDIO_ZOOMDIAL_H
27 #define __SYNFIG_STUDIO_ZOOMDIAL_H
28
29 /* === H E A D E R S ======================================================= */
30
31 #include <gtkmm/tooltips.h>
32 #include <gtkmm/table.h>
33 #include <gtkmm/button.h>
34
35 /* === M A C R O S ========================================================= */
36
37 /* === T Y P E D E F S ===================================================== */
38
39 /* === C L A S S E S & S T R U C T S ======================================= */
40
41 namespace studio
42 {
43
44 class ZoomDial : public Gtk::Table
45 {
46         Gtk::Tooltips tooltips;
47
48         Gtk::Button *zoom_in;
49         Gtk::Button *zoom_out;
50         Gtk::Button *zoom_fit;
51         Gtk::Button *zoom_norm;
52
53         Gtk::Button *create_icon(Gtk::IconSize size, const Gtk::BuiltinStockID & stockid,
54                         const char * tooltip);
55
56 public:
57         ZoomDial(Gtk::IconSize &size);
58
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(); }
63
64 }; // END of class ZoomDial
65
66 }; // END of namespace studio
67
68 /* === E N D =============================================================== */
69
70 #endif