Fix bugs in previous commit that caused FTBFS in synfig and ETL FTBFS with older...
[synfig.git] / synfig-studio / tags / synfigstudio_0_61_07 / src / gtkmm / widget_waypointmodel.h
1 /* === S Y N F I G ========================================================= */
2 /*!     \file widget_waypointmodel.h
3 **      \brief Template Header
4 **
5 **      $Id$
6 **
7 **      \legal
8 **      Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley
9 **
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.
14 **
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.
19 **      \endlegal
20 */
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 <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/scrolledwindow.h>
36 #include <gtkmm/table.h>
37 #include <gtkmm/button.h>
38 //#include <gtkmm/progressbar.h>
39 #include <gtkmm/adjustment.h>
40 #include <gtkmm/box.h>
41 #include <gtkmm/combo.h>
42 #include <gtkmm/optionmenu.h>
43 #include <gtkmm/spinbutton.h>
44 #include <gtkmm/checkbutton.h>
45
46
47 #include <synfig/waypoint.h>
48 #include <synfig/string.h>
49 #include <synfig/time.h>
50
51 /* === M A C R O S ========================================================= */
52
53 /* === T Y P E D E F S ===================================================== */
54
55
56 /* === C L A S S E S & S T R U C T S ======================================= */
57
58 namespace studio {
59
60 class Widget_Time;
61 class Widget_WaypointModel;
62
63 class Widget_WaypointModel : public Gtk::Table
64 {
65         synfig::Waypoint::Model waypoint_model;
66
67         bool updating;
68
69         Gtk::Combo *in,*out;
70         Gtk::OptionMenu *before, *after;
71         Gtk::Menu *before_options,*after_options;
72
73         Gtk::SpinButton *spin_tension, *spin_continuity, *spin_bias, *spin_temporal_tension;
74         Gtk::Adjustment adj_tension, adj_continuity, adj_bias, adj_temporal_tension;
75
76         Gtk::CheckButton checkbutton_after;
77         Gtk::CheckButton checkbutton_before;
78         Gtk::CheckButton checkbutton_tension;
79         Gtk::CheckButton checkbutton_continuity;
80         Gtk::CheckButton checkbutton_bias;
81         Gtk::CheckButton checkbutton_temporal_tension;
82
83         void on_change();
84
85 public:
86         Widget_WaypointModel();
87         void set_waypoint_model(synfig::Waypoint::Model &x);
88         const synfig::Waypoint::Model &get_waypoint_model()const { return waypoint_model; }
89 }; // END of class Widget_WaypointModel
90
91 }; // END of namespace studio
92
93 /* === E N D =============================================================== */
94
95 #endif