}
if(clickfound && node)
- signal_waypoint_clicked_cellrenderer()(node,
- stime,
- time_offset,
- 2,
- actual_time+time_offset<stime?Waypoint::SIDE_LEFT:Waypoint::SIDE_RIGHT);
+ signal_waypoint_clicked_cellrenderer()(node, stime, time_offset, 2);
}
break;
Gtk::Adjustment adjustment_;
//! Signal for when the user clicks on a waypoint
- sigc::signal<void, const etl::handle<synfig::Node>&, const synfig::Time&, const synfig::Time&, int, synfig::Waypoint::Side> signal_waypoint_clicked_cellrenderer_;
+ sigc::signal<void, const etl::handle<synfig::Node>&, const synfig::Time&, const synfig::Time&, int> signal_waypoint_clicked_cellrenderer_;
sigc::signal<void, synfig::Waypoint, synfig::ValueNode::Handle> signal_waypoint_changed_;
public:
- sigc::signal<void, const etl::handle<synfig::Node>&, const synfig::Time&, const synfig::Time&, int, synfig::Waypoint::Side> &signal_waypoint_clicked_cellrenderer()
+ sigc::signal<void, const etl::handle<synfig::Node>&, const synfig::Time&, const synfig::Time&, int> &signal_waypoint_clicked_cellrenderer()
{return signal_waypoint_clicked_cellrenderer_; }
sigc::signal<void, synfig::Waypoint, synfig::ValueNode::Handle> &signal_waypoint_changed()
ChildrenTree::on_waypoint_clicked_childrentree(const etl::handle<synfig::Node>& node __attribute__ ((unused)),
const synfig::Time& time __attribute__ ((unused)),
const synfig::Time& time_offset __attribute__ ((unused)),
- int button __attribute__ ((unused)),
- synfig::Waypoint::Side side __attribute__ ((unused)))
+ int button __attribute__ ((unused)))
{
- //! \todo finishme - dragging waypoints causes an assert fail at cellrenderer_timetrack.cpp:803
std::set<synfig::Waypoint, std::less<UniqueID> > waypoint_set;
synfig::waypoint_collect(waypoint_set,time,node);
void on_edited_value(const Glib::ustring&path_string,synfig::ValueBase value);
- void on_waypoint_clicked_childrentree(const etl::handle<synfig::Node>& node,const synfig::Time&,const synfig::Time&,int button,synfig::Waypoint::Side side);
+ void on_waypoint_clicked_childrentree(const etl::handle<synfig::Node>& node,const synfig::Time&,const synfig::Time&,int button);
bool on_tree_event(GdkEvent *event);
// Set up the value-node cell-renderer
cellrenderer_time_track=LayerParamTreeStore::add_cell_renderer_value_node(column);
cellrenderer_time_track->property_mode()=Gtk::CELL_RENDERER_MODE_ACTIVATABLE;
- cellrenderer_time_track->signal_waypoint_clicked_cellrenderer().connect(sigc::mem_fun(*this, &TimeTrackView::on_waypoint_clicked_timetrackview) );
+ cellrenderer_time_track->signal_waypoint_clicked_cellrenderer().connect(sigc::mem_fun(*this, &TimeTrackView::on_waypoint_clicked_timetrackview));
cellrenderer_time_track->signal_waypoint_changed().connect(sigc::mem_fun(*this, &TimeTrackView::on_waypoint_changed) );
column->add_attribute(cellrenderer_time_track->property_value_desc(), model.value_desc);
column->add_attribute(cellrenderer_time_track->property_canvas(), model.canvas);
void
on_waypoint_changed( synfig::Waypoint waypoint , synfig::ValueNode::Handle value_node)
{
+ // is this code used?
+ assert(0);
+
synfigapp::Action::ParamList param_list;
param_list.add("canvas",param_tree_store_->canvas_interface()->get_canvas());
param_list.add("canvas_interface",param_tree_store_->canvas_interface());
on_waypoint_clicked_timetrackview(const etl::handle<synfig::Node>& node,
const synfig::Time& time,
const synfig::Time& time_offset __attribute__ ((unused)),
- int button,
- synfig::Waypoint::Side side)
+ int button)
{
std::set<synfig::Waypoint, std::less<UniqueID> > waypoint_set;
synfig::waypoint_collect(waypoint_set,time,node);
LayerTree::on_waypoint_clicked_layertree(const etl::handle<synfig::Node>& node __attribute__ ((unused)),
const synfig::Time& time __attribute__ ((unused)),
const synfig::Time& time_offset __attribute__ ((unused)),
- int button __attribute__ ((unused)),
- synfig::Waypoint::Side side __attribute__ ((unused)))
+ int button __attribute__ ((unused)))
{
std::set<synfig::Waypoint, std::less<UniqueID> > waypoint_set;
synfig::waypoint_collect(waypoint_set,time,node);
void on_layer_toggle(const Glib::ustring& path_string);
- void on_waypoint_clicked_layertree(const etl::handle<synfig::Node>& node, const synfig::Time&, const synfig::Time&, int button, synfig::Waypoint::Side side);
+ void on_waypoint_clicked_layertree(const etl::handle<synfig::Node>& node, const synfig::Time&, const synfig::Time&, int button);
void on_waypoint_changed( synfig::Waypoint waypoint , synfig::ValueNode::Handle value_node);