synfig-studio  1.0.3
widget_waypointmodel.h
Go to the documentation of this file.
1 /* === S Y N F I G ========================================================= */
21 /* ========================================================================= */
22 
23 /* === S T A R T =========================================================== */
24 
25 #ifndef __SYNFIG_GTKMM_WIDGET_WAYPOINTMODEL_H
26 #define __SYNFIG_GTKMM_WIDGET_WAYPOINTMODEL_H
27 
28 /* === H E A D E R S ======================================================= */
29 
30 #include <gtkmm/grid.h>
31 #include <gtkmm/button.h>
32 #include <gtkmm/adjustment.h>
33 #include <gtkmm/box.h>
34 #include <gtkmm/comboboxtext.h>
35 #include <gtkmm/spinbutton.h>
36 #include <gtkmm/checkbutton.h>
37 
38 
39 #include <synfig/waypoint.h>
40 #include <synfig/string.h>
41 #include <synfig/time.h>
42 #include "widgets/widget_enum.h"
43 
44 
45 /* === M A C R O S ========================================================= */
46 
47 /* === T Y P E D E F S ===================================================== */
48 
49 
50 /* === C L A S S E S & S T R U C T S ======================================= */
51 
52 namespace studio {
53 
54 class Widget_Time;
55 class Widget_WaypointModel;
56 
57 class Widget_WaypointModel : public Gtk::Grid
58 {
59  synfig::Waypoint::Model waypoint_model;
60 
61  bool updating;
62 
63  Widget_Enum *before_options,*after_options;
64 
65  Gtk::SpinButton *spin_tension, *spin_continuity, *spin_bias, *spin_temporal_tension;
66  Glib::RefPtr<Gtk::Adjustment> adj_tension, adj_continuity, adj_bias, adj_temporal_tension;
67 
68  Gtk::CheckButton checkbutton_after;
69  Gtk::CheckButton checkbutton_before;
70  Gtk::CheckButton checkbutton_tension;
71  Gtk::CheckButton checkbutton_continuity;
72  Gtk::CheckButton checkbutton_bias;
73  Gtk::CheckButton checkbutton_temporal_tension;
74 
75  void on_change();
76 
77 public:
79 
80  const synfig::Waypoint::Model &get_waypoint_model()const { return waypoint_model; }
81  void set_waypoint_model(const synfig::Waypoint::Model &x);
82  void reset_waypoint_model();
83 }; // END of class Widget_WaypointModel
84 
85 }; // END of namespace studio
86 
87 /* === E N D =============================================================== */
88 
89 #endif