25 #ifndef __SYNFIG_GTKMM_CELLRENDERER_VALUE_H
26 #define __SYNFIG_GTKMM_CELLRENDERER_VALUE_H
32 #include <glibmm/property.h>
34 #include <gtkmm/arrow.h>
35 #include <gtkmm/image.h>
36 #include <gdkmm/pixbufloader.h>
37 #include <gtkmm/viewport.h>
38 #include <gtkmm/adjustment.h>
39 #include <gtkmm/scrolledwindow.h>
40 #include <gtkmm/table.h>
41 #include <gtkmm/statusbar.h>
42 #include <gtkmm/button.h>
43 #include <gtkmm/label.h>
44 #include <gtkmm/paned.h>
45 #include <gtkmm/treeview.h>
46 #include <gtkmm/treestore.h>
47 #include <gtkmm/box.h>
48 #include <gtkmm/spinbutton.h>
49 #include <gtkmm/cellrenderer.h>
50 #include <gtkmm/checkbutton.h>
52 #include <gtkmm/colorselection.h>
55 #include <synfig/paramdesc.h>
56 #include <synfig/value.h>
67 class ValueBase_Entry;
71 sigc::signal<void, const Glib::ustring&> signal_secondary_click_;
72 sigc::signal<void, const Glib::ustring&, synfig::ValueBase> signal_edited_;
74 Glib::Property<synfig::ValueBase> property_value_;
75 Glib::Property<etl::handle<synfig::Canvas> > property_canvas_;
76 Glib::Property<synfig::ParamDesc> property_param_desc_;
77 Glib::Property<synfigapp::ValueDesc> property_value_desc_;
78 Glib::Property<synfig::ParamDesc> property_child_param_desc_;
80 void string_edited_(
const Glib::ustring&,
const Glib::ustring&);
82 void gradient_edited(synfig::Gradient gradient, Glib::ustring path);
83 void color_edited(synfig::Color color, Glib::ustring path);
85 bool edit_value_done_called;
88 {
return signal_secondary_click_; }
90 sigc::signal<void, const Glib::ustring&, synfig::ValueBase> &
signal_edited()
91 {
return signal_edited_; }
93 Glib::PropertyProxy<synfig::ValueBase>
property_value() {
return property_value_.get_proxy();}
94 Glib::PropertyProxy<etl::handle<synfig::Canvas> >
property_canvas() {
return property_canvas_.get_proxy();}
95 Glib::PropertyProxy<synfig::ParamDesc>
property_param_desc() {
return property_param_desc_.get_proxy(); }
96 Glib::PropertyProxy<synfigapp::ValueDesc>
property_value_desc() {
return property_value_desc_.get_proxy(); }
100 etl::handle<synfig::Canvas>
get_canvas()
const {
return property_canvas_; }
114 const ::Cairo::RefPtr< ::Cairo::Context>& cr,
116 const Gdk::Rectangle& background_area,
117 const Gdk::Rectangle& cell_area,
118 Gtk::CellRendererState flags);
122 const Glib::ustring& path,
123 const Gdk::Rectangle& background_area,
124 const Gdk::Rectangle& cell_area,
125 Gtk::CellRendererState flags);