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
9 ** Copyright (c) 2007 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_GTKMM_RENDER_H
27 #define __SYNFIG_STUDIO_GTKMM_RENDER_H
29 /* === H E A D E R S ======================================================= */
31 #include <gtkmm/dialog.h>
32 #include <gtkmm/tooltips.h>
33 #include <gtkmm/table.h>
34 #include <gtkmm/entry.h>
35 #include <gtkmm/adjustment.h>
36 #include <gtkmm/spinbutton.h>
37 #include <gtkmm/checkbutton.h>
38 #include <gtkmm/tooltips.h>
39 #include <gtkmm/optionmenu.h>
41 #include <synfig/string.h>
42 #include <synfig/targetparam.h>
44 #include <synfigapp/canvasinterface.h>
48 /* === M A C R O S ========================================================= */
50 /* === T Y P E D E F S ===================================================== */
52 /* === C L A S S E S & S T R U C T S ======================================= */
58 class RenderSettings : public Gtk::Dialog
60 Gtk::Tooltips tooltips;
62 etl::handle<synfigapp::CanvasInterface> canvas_interface_;
63 Widget_RendDesc widget_rend_desc;
65 Gtk::Entry entry_filename;
67 Gtk::Adjustment adjustment_quality;
68 Gtk::SpinButton entry_quality;
70 Gtk::Adjustment adjustment_antialias;
71 Gtk::SpinButton entry_antialias;
73 Gtk::CheckButton toggle_single_frame;
75 Gtk::OptionMenu optionmenu_target;
76 Gtk::Menu *menu_target;
78 synfig::String target_name;
80 void set_target(synfig::String name);
82 etl::handle<AsyncRenderer> async_renderer;
84 synfig::TargetParam tparam;
87 RenderSettings(Gtk::Window& parent,etl::handle<synfigapp::CanvasInterface> canvas_interface);
89 void set_entry_filename();
93 void on_rend_desc_changed();
94 void on_single_frame_toggle();
95 void on_choose_pressed();
96 void on_render_pressed();
97 void on_cancel_pressed();
98 void on_targetparam_pressed();
101 }; // END of class RenderSettings
103 }; // END of namespace studio
106 /* === E N D =============================================================== */