1 /* === S Y N F I G ========================================================= */
2 /*! \file widget_waypoint.h
3 ** \brief Template Header
8 ** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley
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.
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.
21 /* ========================================================================= */
23 /* === S T A R T =========================================================== */
25 #ifndef __SYNFIG_GTKMM_WIDGET_WAYPOINT_H
26 #define __SYNFIG_GTKMM_WIDGET_WAYPOINT_H
28 /* === H E A D E R S ======================================================= */
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>
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>
54 /* === M A C R O S ========================================================= */
56 /* === T Y P E D E F S ===================================================== */
59 /* === C L A S S E S & S T R U C T S ======================================= */
63 class Widget_ValueBase;
65 class Widget_Waypoint;
67 class Widget_Waypoint : public Gtk::Alignment
69 Widget_ValueBase *value_widget;
70 Gtk::Label *value_node_label;
72 Widget_Time *time_widget;
73 mutable synfig::Waypoint waypoint;
74 synfig::Canvas::Handle canvas;
75 //Gtk::Adjustment time_adjustment;
78 Gtk::OptionMenu *before, *after;
79 Gtk::Menu *before_options,*after_options;
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;
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
92 }; // END of namespace studio
94 /* === E N D =============================================================== */