1 /* === S Y N F I G ========================================================= */
2 /*! \file widget_curves.h
3 ** \brief Template Header
5 ** $Id: widget_curves.h,v 1.1.1.1 2005/01/07 03:34:37 darco Exp $
8 ** Copyright (c) 2002 Robert B. Quattlebaum Jr.
10 ** This software and associated documentation
11 ** are CONFIDENTIAL and PROPRIETARY property of
12 ** the above-mentioned copyright holder.
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.
20 /* ========================================================================= */
22 /* === S T A R T =========================================================== */
24 #ifndef __SYNFIG_STUDIO_WIDGET_CURVES_H
25 #define __SYNFIG_STUDIO_WIDGET_CURVES_H
27 /* === H E A D E R S ======================================================= */
29 #include <gtkmm/box.h>
30 #include <gtkmm/table.h>
31 #include <gtkmm/spinbutton.h>
32 #include <gtkmm/adjustment.h>
33 #include <gtkmm/drawingarea.h>
34 #include <gtkmm/layout.h>
35 #include <synfig/color.h>
36 #include <synfigapp/value_desc.h>
39 /* === M A C R O S ========================================================= */
41 /* === T Y P E D E F S ===================================================== */
43 /* === C L A S S E S & S T R U C T S ======================================= */
47 class Widget_Curves : public Gtk::DrawingArea
52 Gtk::Adjustment* time_adjustment_;
53 Gtk::Adjustment* range_adjustment_;
55 std::list<CurveStruct> curve_list_;
62 void set_value_descs(std::list<synfigapp::ValueDesc> value_descs);
66 Gtk::Adjustment& get_range_adjustment() { return *range_adjustment_; }
67 Gtk::Adjustment& get_time_adjustment() { return *time_adjustment_; }
68 void set_time_adjustment(Gtk::Adjustment&);
71 bool redraw(GdkEventExpose*bleh);
72 bool on_event(GdkEvent *event);
74 }; // END of class Widget_Curves
76 }; // END of namespace studio
78 /* === E N D =============================================================== */