1 /* === S Y N F I G ========================================================= */
2 /*! \file resolutiondial.h
3 ** \brief Template Header
8 ** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley
9 ** Copyright (c) 2008 Chris Moore
10 ** Copyright (c) 2009 Gerco Ballintijn
11 ** Copyright (c) 2009 Carlos Lopez
13 ** This package is free software; you can redistribute it and/or
14 ** modify it under the terms of the GNU General Public License as
15 ** published by the Free Software Foundation; either version 2 of
16 ** the License, or (at your option) any later version.
18 ** This package is distributed in the hope that it will be useful,
19 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
20 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
21 ** General Public License for more details.
24 /* ========================================================================= */
26 /* === S T A R T =========================================================== */
28 #ifndef __SYNFIG_STUDIO_RESOLUTIONDIAL_H
29 #define __SYNFIG_STUDIO_RESOLUTIONDIAL_H
31 /* === H E A D E R S ======================================================= */
33 #include <gtkmm/tooltips.h>
34 #include <gtkmm/table.h>
35 #include <gtkmm/checkbutton.h>
36 #include "duckmatic.h"
41 /* === M A C R O S ========================================================= */
43 /* === T Y P E D E F S ===================================================== */
45 /* === C L A S S E S & S T R U C T S ======================================= */
50 class ResolutionDial : public Gtk::Table
52 Gtk::Tooltips tooltips;
54 Gtk::Button *increase_resolution;
55 Gtk::Button *decrease_resolution;
56 Gtk::CheckButton *use_low_resolution;
58 Gtk::Button *create_icon(Gtk::IconSize size, const Gtk::StockID & stockid, const char * tooltip);
59 Gtk::CheckButton *create_check(const char *text, const char *tooltip);
63 ResolutionDial(Gtk::IconSize & size);
65 void update_lowres(bool flag);
66 Glib::SignalProxy0<void> signal_increase_resolution() { return increase_resolution->signal_clicked(); }
67 Glib::SignalProxy0<void> signal_decrease_resolution() { return decrease_resolution->signal_clicked(); }
68 Glib::SignalProxy0<void> signal_use_low_resolution() { return use_low_resolution-> signal_toggled(); }
70 }; // END of class ResolutionDial
72 }; // END of namespace studio
75 /* === E N D =============================================================== */