25 #ifndef __SYNFIG_STUDIO_DIALOG_GRADIENT_H
26 #define __SYNFIG_STUDIO_DIALOG_GRADIENT_H
31 #include <gtkmm/adjustment.h>
32 #include <gtkmm/table.h>
33 #include <gtkmm/button.h>
34 #include <gtkmm/dialog.h>
35 #include <gtkmm/drawingarea.h>
36 #include <gtkmm/checkbutton.h>
38 #include <synfig/gamma.h>
39 #include <synfig/time.h>
45 #include <synfig/time.h>
55 namespace Gtk {
class Menu;
class SpinButton; };
58 class CanvasInterface;
63 class Widget_Gradient;
64 class Widget_ColorEdit;
70 Gtk::SpinButton *spinbutton_pos;
72 Glib::RefPtr<Gtk::Adjustment> adjustment_pos;
75 sigc::signal<void,synfig::Gradient> signal_edited_;
77 sigc::connection value_changed_connection;
79 void on_set_default_pressed();
81 void on_cpoint_selected(synfig::Gradient::CPoint x);
82 void on_values_adjusted();
86 Gtk::Button *set_default_button;
92 sigc::signal<void,synfig::Gradient>&
signal_edited() {
return signal_edited_; }
107 void edit(
const synfigapp::ValueDesc &x, etl::handle<synfigapp::CanvasInterface> canvas_interface, synfig::Time time=0);