grab stable branch
[synfig.git] / synfig-studio / tags / stable / src / gtkmm / dialog_waypoint.h
1 /* === S I N F G =========================================================== */
2 /*!     \file dialog_waypoint.h
3 **      \brief Template Header
4 **
5 **      $Id: dialog_waypoint.h,v 1.1.1.1 2005/01/07 03:34:36 darco Exp $
6 **
7 **      \legal
8 **      Copyright (c) 2002 Robert B. Quattlebaum Jr.
9 **
10 **      This software and associated documentation
11 **      are CONFIDENTIAL and PROPRIETARY property of
12 **      the above-mentioned copyright holder.
13 **
14 **      You may not copy, print, publish, or in any
15 **      other way distribute this software without
16 **      a prior written agreement with
17 **      the copyright holder.
18 **      \endlegal
19 */
20 /* ========================================================================= */
21
22 /* === S T A R T =========================================================== */
23
24 #ifndef __SINFG_GTKMM_DIALOG_WAYPOINT_H
25 #define __SINFG_GTKMM_DIALOG_WAYPOINT_H
26
27 /* === H E A D E R S ======================================================= */
28
29 #include <gtk/gtk.h>
30 #include <gtkmm/ruler.h>
31 #include <gtkmm/arrow.h>
32 #include <gtkmm/image.h>
33 #include <gdkmm/pixbufloader.h>
34 #include <gtkmm/viewport.h>
35 #include <gtkmm/adjustment.h>
36 #include <gtkmm/scrolledwindow.h>
37 #include <gtkmm/table.h>
38 #include <gtkmm/statusbar.h>
39 #include <gtkmm/button.h>
40 #include <gtkmm/progressbar.h>
41 #include <atkmm/stateset.h>
42 #include <gtkmm/paned.h>
43 #include <gtkmm/treeview.h>
44 #include <gtkmm/treestore.h>
45 #include <gtkmm/adjustment.h>
46 #include <gtkmm/box.h>
47 #include <gtkmm/scrollbar.h>
48 #include <gtkmm/cellrenderer.h>
49
50 #include <gtkmm/dialog.h>
51 #include <gtkmm/menu.h>
52
53
54 #include <sinfgapp/value_desc.h>
55 #include <sinfg/valuenode_animated.h>
56 #include <sinfg/valuenode_dynamiclist.h>
57 #include <sinfg/string.h>
58 #include <sinfg/time.h>
59
60 /* === M A C R O S ========================================================= */
61
62 /* === T Y P E D E F S ===================================================== */
63
64
65 /* === C L A S S E S & S T R U C T S ======================================= */
66
67 namespace studio {
68
69 class Widget_ValueBase;
70 class Widget_Waypoint;
71
72 class Dialog_Waypoint : public Gtk::Dialog
73 {
74         Widget_Waypoint *waypointwidget;
75         etl::handle<sinfg::Canvas> canvas;
76         sinfg::ValueNode_Animated::WaypointList::iterator waypoint;
77         sinfgapp::ValueDesc value_desc_;
78                 
79         sigc::signal<void> signal_changed_;
80
81         sigc::signal<void> signal_delete_;
82         void on_ok_pressed();
83         void on_apply_pressed();
84         void on_delete_pressed();
85
86 public:
87         Dialog_Waypoint(Gtk::Window& parent,etl::handle<sinfg::Canvas> canvas);
88         ~Dialog_Waypoint();
89
90     void reset();
91
92         void set_value_desc(sinfgapp::ValueDesc value_desc);
93         sinfgapp::ValueDesc get_value_desc()const { return value_desc_; }
94
95         void set_waypoint(sinfg::ValueNode_Animated::Waypoint x);
96         const sinfg::ValueNode_Animated::Waypoint &get_waypoint()const;
97
98         sigc::signal<void> &signal_changed()
99         {return signal_changed_; }
100
101         sigc::signal<void> &signal_delete()
102         {return signal_delete_; }
103 }; // END of Dialog_Waypoint
104
105 }; // END of namespace studio
106
107 /* === E N D =============================================================== */
108
109 #endif