Fix bugs in previous commit that caused FTBFS in synfig and ETL FTBFS with older...
[synfig.git] / synfig-studio / tags / synfigstudio_0_61_07_rc3 / src / gtkmm / widget_waypoint.h
1 /* === S Y N F I G ========================================================= */
2 /*!     \file widget_waypoint.h
3 **      \brief Template Header
4 **
5 **      $Id$
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_GTKMM_WIDGET_WAYPOINT_H
26 #define __SYNFIG_GTKMM_WIDGET_WAYPOINT_H
27
28 /* === H E A D E R S ======================================================= */
29
30 //#include <gtk/gtk.h>
31 //#include <gtkmm/arrow.h>
32 //#include <gtkmm/image.h>
33 //#include <gdkmm/pixbufloader.h>
34 //#include <gtkmm/viewport.h>
35 #include <gtkmm/adjustment.h>
36 //#include <gtkmm/scrolledwindow.h>
37 #include <gtkmm/table.h>
38 #include <gtkmm/button.h>
39 //#include <gtkmm/progressbar.h>
40 //#include <gtkmm/paned.h>
41 #include <gtkmm/box.h>
42 //#include <gtkmm/scrollbar.h>
43 #include <gtkmm/combo.h>
44 #include <gtkmm/optionmenu.h>
45 #include <gtkmm/spinbutton.h>
46 #include <gtkmm/alignment.h>
47
48 #include <synfigapp/value_desc.h>
49 #include <synfig/waypoint.h>
50 //#include <synfig/valuenode_dynamiclist.h>
51 #include <synfig/string.h>
52 #include <synfig/time.h>
53
54 /* === M A C R O S ========================================================= */
55
56 /* === T Y P E D E F S ===================================================== */
57
58
59 /* === C L A S S E S & S T R U C T S ======================================= */
60
61 namespace studio {
62
63 class Widget_ValueBase;
64 class Widget_Time;
65 class Widget_Waypoint;
66
67 class Widget_Waypoint : public Gtk::Alignment
68 {
69     Widget_ValueBase *value_widget;
70         Gtk::Label *value_node_label;
71         Gtk::Label *label;
72         Widget_Time *time_widget;
73         mutable synfig::Waypoint waypoint;
74         synfig::Canvas::Handle canvas;
75         //Gtk::Adjustment time_adjustment;
76
77         Gtk::Combo *in,*out;
78         Gtk::OptionMenu *before, *after;
79         Gtk::Menu *before_options,*after_options;
80
81         Gtk::SpinButton *spin_tension, *spin_continuity, *spin_bias, *spin_temporal_tension;
82         Gtk::Adjustment adj_tension, adj_continuity, adj_bias, adj_temporal_tension;
83 //      Gtk::ComboDropDownItem item;
84
85 public:
86         Widget_Waypoint(etl::handle<synfig::Canvas> canvas);
87         void set_canvas(synfig::Canvas::Handle x);
88         void set_waypoint(synfig::Waypoint &x);
89         const synfig::Waypoint &get_waypoint()const;
90 }; // END of class Widget_Waypoint
91
92 }; // END of namespace studio
93
94 /* === E N D =============================================================== */
95
96 #endif