//! ValueBasenode Changed
sigc::signal<void, etl::handle<ValueNode> > signal_value_node_changed_;
+ sigc::signal<void, etl::handle<ValueNode> > signal_value_node_renamed_;
+
sigc::signal<void, etl::handle<ValueNode>, etl::handle<ValueNode> > signal_value_node_child_added_;
sigc::signal<void, etl::handle<ValueNode>, etl::handle<ValueNode> > signal_value_node_child_removed_;
sigc::signal<void, etl::handle<ValueNode> >& signal_value_node_changed() { return signal_value_node_changed_; }
+ sigc::signal<void, etl::handle<ValueNode> >& signal_value_node_renamed() { return signal_value_node_renamed_; }
+
//! Dirty
sigc::signal<void>& signal_dirty() { return signal_changed(); }
// Connect all the signals
canvas_interface()->signal_value_node_changed().connect(sigc::mem_fun(*this,&studio::ChildrenTreeStore::on_value_node_changed));
+ canvas_interface()->signal_value_node_renamed().connect(sigc::mem_fun(*this,&studio::ChildrenTreeStore::on_value_node_renamed));
canvas_interface()->signal_value_node_added().connect(sigc::mem_fun(*this,&studio::ChildrenTreeStore::on_value_node_added));
canvas_interface()->signal_value_node_deleted().connect(sigc::mem_fun(*this,&studio::ChildrenTreeStore::on_value_node_deleted));
canvas_interface()->signal_value_node_replaced().connect(sigc::mem_fun(*this,&studio::ChildrenTreeStore::on_value_node_replaced));
}
void
+ChildrenTreeStore::on_value_node_renamed(etl::handle<ValueNode> value_node)
+{
+ rebuild_value_nodes();
+}
+
+void
ChildrenTreeStore::on_value_node_replaced(synfig::ValueNode::Handle replaced_value_node,synfig::ValueNode::Handle /*new_value_node*/)
{
changed_connection.disconnect();
void on_value_node_added(synfig::ValueNode::Handle value_node);
void on_value_node_deleted(synfig::ValueNode::Handle value_node);
void on_value_node_changed(synfig::ValueNode::Handle value_node);
+ void on_value_node_renamed(synfig::ValueNode::Handle value_node);
void on_value_node_replaced(synfig::ValueNode::Handle replaced_value_node,synfig::ValueNode::Handle new_value_node);
void on_canvas_added(synfig::Canvas::Handle canvas);
void on_canvas_removed(synfig::Canvas::Handle canvas);
queued=false;
// Connect all the signals
canvas_interface()->signal_value_node_changed().connect(sigc::mem_fun(*this,&studio::LayerParamTreeStore::on_value_node_changed));
+ canvas_interface()->signal_value_node_renamed().connect(sigc::mem_fun(*this,&studio::LayerParamTreeStore::on_value_node_renamed));
canvas_interface()->signal_value_node_added().connect(sigc::mem_fun(*this,&studio::LayerParamTreeStore::on_value_node_added));
canvas_interface()->signal_value_node_deleted().connect(sigc::mem_fun(*this,&studio::LayerParamTreeStore::on_value_node_deleted));
canvas_interface()->signal_value_node_replaced().connect(sigc::mem_fun(*this,&studio::LayerParamTreeStore::on_value_node_replaced));
}
void
+LayerParamTreeStore::on_value_node_renamed(synfig::ValueNode::Handle /*value_node*/)
+{
+ rebuild();
+}
+
+void
LayerParamTreeStore::on_value_node_replaced(synfig::ValueNode::Handle /*replaced_value_node*/,synfig::ValueNode::Handle /*new_value_node*/)
{
queue_rebuild();
void on_value_node_added(synfig::ValueNode::Handle value_node);
void on_value_node_deleted(synfig::ValueNode::Handle value_node);
virtual void on_value_node_changed(synfig::ValueNode::Handle value_node);
+ virtual void on_value_node_renamed(synfig::ValueNode::Handle value_node);
void on_value_node_replaced(synfig::ValueNode::Handle replaced_value_node,synfig::ValueNode::Handle new_value_node);
void on_layer_param_changed(synfig::Layer::Handle handle,synfig::String param_name);
if(get_canvas_interface())
{
- get_canvas_interface()->signal_value_node_changed()(value_node);
+ get_canvas_interface()->signal_value_node_renamed()(value_node);
}
}
if(get_canvas_interface())
{
- get_canvas_interface()->signal_value_node_changed()(value_node);
+ get_canvas_interface()->signal_value_node_renamed()(value_node);
}
}
sigc::signal<void,synfig::ValueNode::Handle> signal_value_node_added_;
sigc::signal<void,synfig::ValueNode::Handle> signal_value_node_deleted_;
- sigc::signal<void,synfig::ValueNode::Handle> signal_value_node_changed_;
sigc::signal<void,synfig::ValueNode::Handle,synfig::ValueNode::Handle> signal_value_node_replaced_;
sigc::signal<void,synfig::Keyframe> signal_keyframe_added_;
//! Signal called when a ValueNode has been changed
sigc::signal<void,etl::handle<synfig::ValueNode> >& signal_value_node_changed() { return get_canvas()->signal_value_node_changed(); }
- //sigc::signal<void,etl::handle<synfig::ValueNode> >& signal_value_node_changed() { return signal_value_node_changed_; }
+
+ //! Signal called when a ValueNode has been renamed
+ sigc::signal<void,etl::handle<synfig::ValueNode> >& signal_value_node_renamed() { return get_canvas()->signal_value_node_renamed(); }
//! Signal called when the mode has changed
sigc::signal<void,Mode> signal_mode_changed() { return signal_mode_changed_; }