25 #ifndef __SYNFIG_GTKMM_VALUE_H
26 #define __SYNFIG_GTKMM_VALUE_H
35 #include <gtkmm/adjustment.h>
37 #include <gtkmm/table.h>
39 #include <gtkmm/button.h>
40 #include <gtkmm/label.h>
44 #include <gtkmm/box.h>
45 #include <gtkmm/spinbutton.h>
47 #include <gtkmm/checkbutton.h>
50 #include <gtkmm/combobox.h>
53 #include <synfig/paramdesc.h>
55 #include <synfig/value.h>
56 #include <synfig/canvas.h>
67 class Widget_BoneChooser;
69 class Widget_ColorEdit;
70 class Widget_CanvasChooser;
72 class Widget_Sublayer;
73 class Widget_Filename;
76 class Widget_Distance;
81 synfig::ValueBase value;
84 Gtk::SpinButton *real_widget;
85 Glib::RefPtr<Gtk::Adjustment> real_adjustment;
86 Gtk::SpinButton *integer_widget;
87 Glib::RefPtr<Gtk::Adjustment> integer_adjustment;
88 Gtk::SpinButton *angle_widget;
89 Glib::RefPtr<Gtk::Adjustment> angle_adjustment;
91 Gtk::CheckButton *bool_widget;
100 Gtk::Entry *string_widget;
105 synfig::ParamDesc param_desc;
107 synfig::ParamDesc child_param_desc;
108 etl::handle<synfig::Canvas> canvas;
109 sigc::signal<void> signal_value_changed_;
110 sigc::signal<void> signal_activate_;
119 void set_value(
const synfig::ValueBase &data);
138 void set_canvas(etl::handle<synfig::Canvas> x) { canvas=x; assert(canvas); }