00001
00021
00022
00023
00024
00025 #ifndef __SYNFIG_GTKMM_WIDGET_WAYPOINT_H
00026 #define __SYNFIG_GTKMM_WIDGET_WAYPOINT_H
00027
00028
00029
00030
00031
00032
00033
00034
00035 #include <gtkmm/adjustment.h>
00036
00037 #include <gtkmm/table.h>
00038 #include <gtkmm/button.h>
00039
00040
00041 #include <gtkmm/box.h>
00042
00043 #include <gtkmm/combo.h>
00044 #include <gtkmm/optionmenu.h>
00045 #include <gtkmm/spinbutton.h>
00046 #include <gtkmm/alignment.h>
00047
00048 #include <synfigapp/value_desc.h>
00049 #include <synfig/waypoint.h>
00050
00051 #include <synfig/string.h>
00052 #include <synfig/time.h>
00053
00054
00055
00056
00057
00058
00059
00060
00061 namespace studio {
00062
00063 class Widget_ValueBase;
00064 class Widget_Time;
00065 class Widget_Waypoint;
00066
00067 class Widget_Waypoint : public Gtk::Alignment
00068 {
00069 Widget_ValueBase *value_widget;
00070 Gtk::Label *value_node_label;
00071 Gtk::Label *label;
00072 Widget_Time *time_widget;
00073 mutable synfig::Waypoint waypoint;
00074 synfig::Canvas::Handle canvas;
00075
00076
00077 Gtk::Combo *in,*out;
00078 Gtk::OptionMenu *before, *after;
00079 Gtk::Menu *before_options,*after_options;
00080
00081 Gtk::SpinButton *spin_tension, *spin_continuity, *spin_bias, *spin_temporal_tension;
00082 Gtk::Adjustment adj_tension, adj_continuity, adj_bias, adj_temporal_tension;
00083
00084
00085 public:
00086 Widget_Waypoint(etl::handle<synfig::Canvas> canvas);
00087 void set_canvas(synfig::Canvas::Handle x);
00088 void set_waypoint(synfig::Waypoint &x);
00089 const synfig::Waypoint &get_waypoint()const;
00090 };
00091
00092 };
00093
00094
00095
00096 #endif