1 /* === S Y N F I G ========================================================= */
2 /*! \file dialog_waypoint.h
3 ** \brief Template Header
5 ** $Id: dialog_waypoint.h,v 1.1.1.1 2005/01/07 03:34:36 darco Exp $
8 ** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley
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.
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.
21 /* ========================================================================= */
23 /* === S T A R T =========================================================== */
25 #ifndef __SYNFIG_GTKMM_DIALOG_WAYPOINT_H
26 #define __SYNFIG_GTKMM_DIALOG_WAYPOINT_H
28 /* === H E A D E R S ======================================================= */
31 #include <gtkmm/ruler.h>
32 #include <gtkmm/arrow.h>
33 #include <gtkmm/image.h>
34 #include <gdkmm/pixbufloader.h>
35 #include <gtkmm/viewport.h>
36 #include <gtkmm/adjustment.h>
37 #include <gtkmm/scrolledwindow.h>
38 #include <gtkmm/table.h>
39 #include <gtkmm/statusbar.h>
40 #include <gtkmm/button.h>
41 #include <gtkmm/progressbar.h>
42 #include <atkmm/stateset.h>
43 #include <gtkmm/paned.h>
44 #include <gtkmm/treeview.h>
45 #include <gtkmm/treestore.h>
46 #include <gtkmm/adjustment.h>
47 #include <gtkmm/box.h>
48 #include <gtkmm/scrollbar.h>
49 #include <gtkmm/cellrenderer.h>
51 #include <gtkmm/dialog.h>
52 #include <gtkmm/menu.h>
55 #include <synfigapp/value_desc.h>
56 #include <synfig/valuenode_animated.h>
57 #include <synfig/valuenode_dynamiclist.h>
58 #include <synfig/string.h>
59 #include <synfig/time.h>
61 /* === M A C R O S ========================================================= */
63 /* === T Y P E D E F S ===================================================== */
66 /* === C L A S S E S & S T R U C T S ======================================= */
70 class Widget_ValueBase;
71 class Widget_Waypoint;
73 class Dialog_Waypoint : public Gtk::Dialog
75 Widget_Waypoint *waypointwidget;
76 etl::handle<synfig::Canvas> canvas;
77 synfig::ValueNode_Animated::WaypointList::iterator waypoint;
78 synfigapp::ValueDesc value_desc_;
80 sigc::signal<void> signal_changed_;
82 sigc::signal<void> signal_delete_;
84 void on_apply_pressed();
85 void on_delete_pressed();
88 Dialog_Waypoint(Gtk::Window& parent,etl::handle<synfig::Canvas> canvas);
93 void set_value_desc(synfigapp::ValueDesc value_desc);
94 synfigapp::ValueDesc get_value_desc()const { return value_desc_; }
96 void set_waypoint(synfig::ValueNode_Animated::Waypoint x);
97 const synfig::ValueNode_Animated::Waypoint &get_waypoint()const;
99 sigc::signal<void> &signal_changed()
100 {return signal_changed_; }
102 sigc::signal<void> &signal_delete()
103 {return signal_delete_; }
104 }; // END of Dialog_Waypoint
106 }; // END of namespace studio
108 /* === E N D =============================================================== */