26 #ifndef __SYNFIG_STUDIO_GTKMM_RENDER_H
27 #define __SYNFIG_STUDIO_GTKMM_RENDER_H
33 #include <gtkmm/dialog.h>
34 #include <gtkmm/tooltip.h>
35 #include <gtkmm/table.h>
36 #include <gtkmm/entry.h>
37 #include <gtkmm/adjustment.h>
38 #include <gtkmm/spinbutton.h>
39 #include <gtkmm/checkbutton.h>
40 #include <gtkmm/comboboxtext.h>
42 #include <synfig/string.h>
43 #include <synfig/targetparam.h>
44 #include <synfig/target.h>
64 etl::handle<synfigapp::CanvasInterface> canvas_interface_;
67 Gtk::Entry entry_filename;
69 Glib::RefPtr<Gtk::Adjustment> adjustment_quality;
70 Gtk::SpinButton entry_quality;
72 Glib::RefPtr<Gtk::Adjustment> adjustment_antialias;
73 Gtk::SpinButton entry_antialias;
75 Gtk::CheckButton toggle_single_frame;
76 Gtk::CheckButton toggle_extract_alpha;
78 Gtk::ComboBoxText comboboxtext_target;
79 Gtk::Button *tparam_button;
81 std::vector<synfig::String> target_names;
82 synfig::String target_name;
83 synfig::String calculated_target_name;
84 std::vector< std::pair<synfig::TargetAlphaMode,synfig::String> > render_passes;
86 void set_target(synfig::String name);
88 etl::handle<AsyncRenderer> async_renderer;
90 synfig::TargetParam tparam;
92 static std::map<synfig::String, Dialog_TargetParam *> dialog_book;
95 RenderSettings(Gtk::Window& parent,etl::handle<synfigapp::CanvasInterface> canvas_interface);
101 {dialog_book[target_name] = dialog;}
104 void on_rend_desc_changed();
105 void on_single_frame_toggle();
106 void on_choose_pressed();
107 void on_render_pressed();
108 void on_cancel_pressed();
109 void on_targetparam_pressed();
110 void submit_next_render_pass();
111 void on_comboboxtext_target_changed();