00001
00021
00022
00023
00024
00025 #ifndef __SYNFIG_GTKMM_WIDGET_WAYPOINTMODEL_H
00026 #define __SYNFIG_GTKMM_WIDGET_WAYPOINTMODEL_H
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036 #include <gtkmm/table.h>
00037 #include <gtkmm/button.h>
00038
00039 #include <gtkmm/adjustment.h>
00040 #include <gtkmm/box.h>
00041 #include <gtkmm/combo.h>
00042 #include <gtkmm/optionmenu.h>
00043 #include <gtkmm/spinbutton.h>
00044 #include <gtkmm/checkbutton.h>
00045
00046
00047 #include <synfig/waypoint.h>
00048 #include <synfig/string.h>
00049 #include <synfig/time.h>
00050
00051
00052
00053
00054
00055
00056
00057
00058 namespace studio {
00059
00060 class Widget_Time;
00061 class Widget_WaypointModel;
00062
00063 class Widget_WaypointModel : public Gtk::Table
00064 {
00065 synfig::Waypoint::Model waypoint_model;
00066
00067 bool updating;
00068
00069 Gtk::Combo *in,*out;
00070 Gtk::OptionMenu *before, *after;
00071 Gtk::Menu *before_options,*after_options;
00072
00073 Gtk::SpinButton *spin_tension, *spin_continuity, *spin_bias, *spin_temporal_tension;
00074 Gtk::Adjustment adj_tension, adj_continuity, adj_bias, adj_temporal_tension;
00075
00076 Gtk::CheckButton checkbutton_after;
00077 Gtk::CheckButton checkbutton_before;
00078 Gtk::CheckButton checkbutton_tension;
00079 Gtk::CheckButton checkbutton_continuity;
00080 Gtk::CheckButton checkbutton_bias;
00081 Gtk::CheckButton checkbutton_temporal_tension;
00082
00083 void on_change();
00084
00085 public:
00086 Widget_WaypointModel();
00087 void set_waypoint_model(synfig::Waypoint::Model &x);
00088 const synfig::Waypoint::Model &get_waypoint_model()const { return waypoint_model; }
00089 };
00090
00091 };
00092
00093
00094
00095 #endif