1 /* === S Y N F I G ========================================================= */
2 /*! \file gtkmm/render.h
3 ** \brief Template Header
8 ** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley
10 ** This package is free software; you can redistribute it and/or
11 ** modify it under the terms of the GNU General Public License as
12 ** published by the Free Software Foundation; either version 2 of
13 ** the License, or (at your option) any later version.
15 ** This package is distributed in the hope that it will be useful,
16 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
17 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 ** General Public License for more details.
21 /* ========================================================================= */
23 /* === S T A R T =========================================================== */
25 #ifndef __SYNFIG_STUDIO_GTKMM_RENDER_H
26 #define __SYNFIG_STUDIO_GTKMM_RENDER_H
28 /* === H E A D E R S ======================================================= */
30 #include <gtkmm/dialog.h>
31 #include <gtkmm/tooltips.h>
32 #include <gtkmm/table.h>
33 #include <gtkmm/entry.h>
34 #include <gtkmm/adjustment.h>
35 #include <gtkmm/spinbutton.h>
36 #include <gtkmm/checkbutton.h>
37 #include <gtkmm/tooltips.h>
38 #include <gtkmm/optionmenu.h>
40 #include <synfig/string.h>
42 #include <synfigapp/canvasinterface.h>
46 /* === M A C R O S ========================================================= */
48 /* === T Y P E D E F S ===================================================== */
50 /* === C L A S S E S & S T R U C T S ======================================= */
56 class RenderSettings : public Gtk::Dialog
58 Gtk::Tooltips tooltips;
60 etl::handle<synfigapp::CanvasInterface> canvas_interface_;
61 Widget_RendDesc widget_rend_desc;
63 Gtk::Entry entry_filename;
65 Gtk::Adjustment adjustment_quality;
66 Gtk::SpinButton entry_quality;
68 Gtk::Adjustment adjustment_antialias;
69 Gtk::SpinButton entry_antialias;
71 Gtk::CheckButton toggle_single_frame;
73 Gtk::OptionMenu optionmenu_target;
74 Gtk::Menu *menu_target;
76 synfig::String target_name;
78 void set_target(synfig::String name);
80 etl::handle<AsyncRenderer> async_renderer;
83 RenderSettings(Gtk::Window& parent,etl::handle<synfigapp::CanvasInterface> canvas_interface);
88 void on_rend_desc_changed();
89 void on_single_frame_toggle();
90 void on_choose_pressed();
91 void on_render_pressed();
92 void on_cancel_pressed();
95 }; // END of class RenderSettings
97 }; // END of namespace studio
100 /* === E N D =============================================================== */