synfig-studio  1.0.3
dialog_waypoint.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_DIALOG_WAYPOINT_H
26 #define __SYNFIG_GTKMM_DIALOG_WAYPOINT_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/statusbar.h>
38 #include <gtkmm/button.h>
39 #include <gtkmm/progressbar.h>
40 #include <gtkmm/paned.h>
41 #include <gtkmm/treeview.h>
42 #include <gtkmm/treestore.h>
43 #include <gtkmm/adjustment.h>
44 #include <gtkmm/box.h>
45 #include <gtkmm/scrollbar.h>
46 #include <gtkmm/cellrenderer.h>
47 
48 #include <gtkmm/dialog.h>
49 #include <gtkmm/menu.h>
50 
51 
52 #include <synfigapp/value_desc.h>
53 #include <synfig/valuenodes/valuenode_animated.h>
54 #include <synfig/valuenodes/valuenode_dynamiclist.h>
55 #include <synfig/string.h>
56 #include <synfig/time.h>
57 
58 /* === M A C R O S ========================================================= */
59 
60 /* === T Y P E D E F S ===================================================== */
61 
62 
63 /* === C L A S S E S & S T R U C T S ======================================= */
64 
65 namespace studio {
66 
67 class Widget_ValueBase;
68 class Widget_Waypoint;
69 
70 class Dialog_Waypoint : public Gtk::Dialog
71 {
72  Widget_Waypoint *waypointwidget;
73  etl::handle<synfig::Canvas> canvas;
74  synfig::ValueNode_Animated::WaypointList::iterator waypoint;
75  synfigapp::ValueDesc value_desc_;
76 
77  sigc::signal<void> signal_changed_;
78 
79  sigc::signal<void> signal_delete_;
80  void on_ok_pressed();
81  void on_apply_pressed();
82  void on_delete_pressed();
83 
84 public:
85  Dialog_Waypoint(Gtk::Window& parent,etl::handle<synfig::Canvas> canvas);
87 
88  void reset();
89 
90  void set_value_desc(synfigapp::ValueDesc value_desc);
91  synfigapp::ValueDesc get_value_desc()const { return value_desc_; }
92 
93  void set_waypoint(synfig::ValueNode_Animated::Waypoint x);
94  const synfig::ValueNode_Animated::Waypoint &get_waypoint()const;
95 
96  sigc::signal<void> &signal_changed()
97  {return signal_changed_; }
98 
99  sigc::signal<void> &signal_delete()
100  {return signal_delete_; }
101 }; // END of Dialog_Waypoint
102 
103 }; // END of namespace studio
104 
105 /* === E N D =============================================================== */
106 
107 #endif