25 #ifndef __SYNFIG_STUDIO_KEYFRAMETREE_H
26 #define __SYNFIG_STUDIO_KEYFRAMETREE_H
30 #include <gtkmm/treeview.h>
31 #include <gtkmm/treestore.h>
35 #include <synfig/keyframe.h>
45 class CellRenderer_Time;
80 Glib::RefPtr<KeyframeTreeStore> keyframe_tree_store_;
86 Gtk::CellRendererText *cell_renderer_description;
88 sigc::signal<void,synfig::Keyframe> signal_edited_;
90 sigc::signal<void,synfig::Keyframe,synfig::Time> signal_edited_time_;
92 sigc::signal<void,synfig::Keyframe,synfig::String> signal_edited_description_;
94 sigc::signal<void, int, Gtk::TreeRow, ColumnID> signal_user_click_;
112 void on_keyframe_toggle(
const Glib::ustring& path_string);
114 void on_edited_time(
const Glib::ustring&path_string,synfig::Time time);
116 void on_edited_time_delta(
const Glib::ustring&path_string,synfig::Time time);
118 void on_edited_description(
const Glib::ustring&path_string,
const Glib::ustring &description);
120 bool on_event(GdkEvent *event);
122 void on_rend_desc_changed();
126 void on_selection_changed();
129 void on_keyframe_selected(synfig::Keyframe,
void* emitter);
130 sigc::connection keyframeselected;
141 void set_model(Glib::RefPtr<KeyframeTreeStore> keyframe_tree_store_);
148 sigc::signal<void,synfig::Keyframe>&
signal_edited() {
return signal_edited_; }
151 sigc::signal<void,synfig::Keyframe,synfig::Time>&
signal_edited_time() {
return signal_edited_time_; }
156 sigc::signal<void,int, Gtk::TreeRow, ColumnID>&
signal_user_click() {
return signal_user_click_; }