25 #ifndef __SYNFIG_STUDIO_CANVASTREESTORE_H
26 #define __SYNFIG_STUDIO_CANVASTREESTORE_H
30 #include <gtkmm/treestore.h>
32 #include <gdkmm/pixbuf.h>
34 #include <gtkmm/treeview.h>
44 class CellRenderer_TimeTrack;
45 class CellRenderer_ValueBase;
56 #define COLUMNID_NAME COLUMNID_ID
66 class Model :
public Gtk::TreeModel::ColumnRecord
69 Gtk::TreeModelColumn<Glib::RefPtr<Gdk::Pixbuf> >
icon;
70 Gtk::TreeModelColumn<Glib::ustring>
label;
71 Gtk::TreeModelColumn<Glib::ustring>
name;
72 Gtk::TreeModelColumn<Glib::ustring>
id;
74 Gtk::TreeModelColumn<synfig::Canvas::Handle>
canvas;
77 Gtk::TreeModelColumn<synfig::ValueNode::Handle>
value_node;
79 Gtk::TreeModelColumn<synfig::ValueBase>
value;
80 Gtk::TreeModelColumn<Glib::ustring>
type;
92 Gtk::TreeModelColumn<Glib::ustring>
tooltip;
142 etl::loose_handle<synfigapp::CanvasInterface> canvas_interface_;
152 virtual void get_value_vfunc (
const Gtk::TreeModel::iterator& iter,
int column, Glib::ValueBase& value)
const;
166 CanvasTreeStore(etl::loose_handle<synfigapp::CanvasInterface> canvas_interface_);
169 etl::loose_handle<synfigapp::CanvasInterface>
canvas_interface() {
return canvas_interface_; }
170 etl::loose_handle<const synfigapp::CanvasInterface>
canvas_interface()
const {
return canvas_interface_; }
172 virtual void rebuild_row(Gtk::TreeModel::Row &row,
bool do_children=
true);
174 virtual void refresh_row(Gtk::TreeModel::Row &row,
bool do_children=
true);