source: synfigstudio/trunk/fuentes/src/gui/dials/zoomdial.h @ 481

Last change on this file since 481 was 481, checked in by jrpelegrina, 4 years ago

First release to xenial

File size: 2.1 KB
Line 
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/tooltip.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
41namespace studio
42{
43
44class ZoomDial : public Gtk::Table
45{
46        Gtk::Button *zoom_in;
47        Gtk::Button *zoom_out;
48        Gtk::Button *zoom_fit;
49        Gtk::Button *zoom_norm;
50
51        Gtk::Button *create_icon(Gtk::IconSize size, const Gtk::BuiltinStockID & stockid,
52                        const char * tooltip);
53
54public:
55        ZoomDial(Gtk::IconSize &size);
56
57        Glib::SignalProxy0<void> signal_zoom_in()   { return zoom_in->signal_clicked(); }
58        Glib::SignalProxy0<void> signal_zoom_out()  { return zoom_out->signal_clicked(); }
59        Glib::SignalProxy0<void> signal_zoom_fit()  { return zoom_fit->signal_clicked(); }
60        Glib::SignalProxy0<void> signal_zoom_norm() { return zoom_norm->signal_clicked(); }
61
62}; // END of class ZoomDial
63
64}; // END of namespace studio
65
66/* === E N D =============================================================== */
67
68#endif
Note: See TracBrowser for help on using the repository browser.