5a45f3e551543c0b897df73b5a3a054e29e91ed9
[synfig.git] / synfig-studio / tags / stable / src / gtkmm / widget_waypoint.h
1 /* === S I N F G =========================================================== */
2 /*!     \file dialog_waypoint.h
3 **      \brief Template Header
4 **
5 **      $Id: widget_waypoint.h,v 1.1.1.1 2005/01/07 03:34:37 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_GTKMM_WIDGET_WAYPOINT_H
25 #define __SINFG_GTKMM_WIDGET_WAYPOINT_H
26
27 /* === H E A D E R S ======================================================= */
28
29 //#include <gtk/gtk.h>
30 //#include <gtkmm/arrow.h>
31 //#include <gtkmm/image.h>
32 //#include <gdkmm/pixbufloader.h>
33 //#include <gtkmm/viewport.h>
34 #include <gtkmm/adjustment.h>
35 //#include <gtkmm/scrolledwindow.h>
36 #include <gtkmm/table.h>
37 #include <gtkmm/button.h>
38 //#include <gtkmm/progressbar.h>
39 //#include <atkmm/stateset.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
47
48 #include <sinfgapp/value_desc.h>
49 #include <sinfg/waypoint.h>
50 //#include <sinfg/valuenode_dynamiclist.h>
51 #include <sinfg/string.h>
52 #include <sinfg/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::Table
68 {
69     Widget_ValueBase *value_widget;
70         Gtk::Label *value_node_label;
71         Gtk::Label *label;
72         Widget_Time *time_widget;
73         mutable sinfg::Waypoint waypoint;
74         sinfg::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<sinfg::Canvas> canvas);
87         void set_canvas(sinfg::Canvas::Handle x);
88         void set_waypoint(sinfg::Waypoint &x);
89         const sinfg::Waypoint &get_waypoint()const;
90 }; // END of class Widget_Waypoint
91
92 }; // END of namespace studio
93
94 /* === E N D =============================================================== */
95
96 #endif