Fix bugs in previous commit that caused FTBFS in synfig and ETL FTBFS with older...
[synfig.git] / synfig-studio / tags / synfigstudio_0_61_04 / synfig-studio / src / gtkmm / render.h
1 /* === S Y N F I G ========================================================= */
2 /*!     \file render.h
3 **      \brief Template Header
4 **
5 **      $Id: render.h,v 1.2 2005/01/10 08:13:44 darco Exp $
6 **
7 **      \legal
8 **      Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley
9 **
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.
14 **
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.
19 **      \endlegal
20 */
21 /* ========================================================================= */
22
23 /* === S T A R T =========================================================== */
24
25 #ifndef __SYNFIG_STUDIO_GTKMM_RENDER_H
26 #define __SYNFIG_STUDIO_GTKMM_RENDER_H
27
28 /* === H E A D E R S ======================================================= */
29
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>
39
40 #include <synfig/string.h>
41
42 #include <synfigapp/canvasinterface.h>
43
44 #include "renddesc.h"
45
46 /* === M A C R O S ========================================================= */
47
48 /* === T Y P E D E F S ===================================================== */
49
50 /* === C L A S S E S & S T R U C T S ======================================= */
51
52 namespace studio
53 {
54 class AsyncRenderer;
55         
56 class RenderSettings : public Gtk::Dialog
57 {
58         Gtk::Tooltips tooltips;
59
60         etl::handle<synfigapp::CanvasInterface> canvas_interface_;
61         Widget_RendDesc widget_rend_desc;
62
63         Gtk::Entry entry_filename;
64
65         Gtk::Adjustment adjustment_quality;
66         Gtk::SpinButton entry_quality;  
67
68         Gtk::Adjustment adjustment_antialias;
69         Gtk::SpinButton entry_antialias;        
70
71         Gtk::CheckButton toggle_single_frame;
72
73         Gtk::OptionMenu optionmenu_target;
74         Gtk::Menu *menu_target;
75
76         synfig::String target_name;
77         
78         void set_target(synfig::String name);
79
80         etl::handle<AsyncRenderer> async_renderer;
81
82 public:
83         RenderSettings(Gtk::Window& parent,etl::handle<synfigapp::CanvasInterface> canvas_interface);
84         ~RenderSettings();
85
86 private:
87
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();
93         
94         void on_finished();
95 }; // END of class RenderSettings
96         
97 }; // END of namespace studio
98
99
100 /* === E N D =============================================================== */
101
102 #endif