initial version
[synfig.git] / synfig-studio / trunk / src / gtkmm / render.h
1 /* === S I N F 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 Robert B. Quattlebaum Jr.
9 **
10 **      This software and associated documentation
11 **      are CONFIDENTIAL and PROPRIETARY property of
12 **      the above-mentioned copyright holder.
13 **
14 **      You may not copy, print, publish, or in any
15 **      other way distribute this software without
16 **      a prior written agreement with
17 **      the copyright holder.
18 **      \endlegal
19 */
20 /* ========================================================================= */
21
22 /* === S T A R T =========================================================== */
23
24 #ifndef __SINFG_STUDIO_GTKMM_RENDER_H
25 #define __SINFG_STUDIO_GTKMM_RENDER_H
26
27 /* === H E A D E R S ======================================================= */
28
29 #include <gtkmm/dialog.h>
30 #include <gtkmm/tooltips.h>
31 #include <gtkmm/table.h>
32 #include <gtkmm/entry.h>
33 #include <gtkmm/adjustment.h>
34 #include <gtkmm/spinbutton.h>
35 #include <gtkmm/checkbutton.h>
36 #include <gtkmm/tooltips.h>
37 #include <gtkmm/optionmenu.h>
38
39 #include <sinfg/string.h>
40
41 #include <sinfgapp/canvasinterface.h>
42
43 #include "renddesc.h"
44
45 /* === M A C R O S ========================================================= */
46
47 /* === T Y P E D E F S ===================================================== */
48
49 /* === C L A S S E S & S T R U C T S ======================================= */
50
51 namespace studio
52 {
53 class AsyncRenderer;
54         
55 class RenderSettings : public Gtk::Dialog
56 {
57         Gtk::Tooltips tooltips;
58
59         etl::handle<sinfgapp::CanvasInterface> canvas_interface_;
60         Widget_RendDesc widget_rend_desc;
61
62         Gtk::Entry entry_filename;
63
64         Gtk::Adjustment adjustment_quality;
65         Gtk::SpinButton entry_quality;  
66
67         Gtk::Adjustment adjustment_antialias;
68         Gtk::SpinButton entry_antialias;        
69
70         Gtk::CheckButton toggle_single_frame;
71
72         Gtk::OptionMenu optionmenu_target;
73         Gtk::Menu *menu_target;
74
75         sinfg::String target_name;
76         
77         void set_target(sinfg::String name);
78
79         etl::handle<AsyncRenderer> async_renderer;
80
81 public:
82         RenderSettings(Gtk::Window& parent,etl::handle<sinfgapp::CanvasInterface> canvas_interface);
83         ~RenderSettings();
84
85 private:
86
87         void on_rend_desc_changed();
88         void on_single_frame_toggle();
89         void on_choose_pressed();
90         void on_render_pressed();
91         void on_cancel_pressed();
92         
93         void on_finished();
94 }; // END of class RenderSettings
95         
96 }; // END of namespace studio
97
98
99 /* === E N D =============================================================== */
100
101 #endif