#include "valuenodereplace.h"
#include <synfigapp/canvasinterface.h>
+#include <synfigapp/general.h>
+
#endif
using namespace std;
ACTION_INIT(Action::ValueNodeReplace);
ACTION_SET_NAME(Action::ValueNodeReplace,"value_node_replace");
-ACTION_SET_LOCAL_NAME(Action::ValueNodeReplace,"Replace ValueNode");
+ACTION_SET_LOCAL_NAME(Action::ValueNodeReplace,N_("Replace ValueNode"));
ACTION_SET_TASK(Action::ValueNodeReplace,"replace");
ACTION_SET_CATEGORY(Action::ValueNodeReplace,Action::CATEGORY_VALUENODE|Action::CATEGORY_DRAG);
ACTION_SET_PRIORITY(Action::ValueNodeReplace,0);
void swap_guid(const ValueNode::Handle& a,const ValueNode::Handle& b)
{
- GUID old_a(a->get_guid());
- a->set_guid(GUID());
+ synfig::GUID old_a(a->get_guid());
+ a->set_guid(synfig::GUID());
- GUID old_b(b->get_guid());
- b->set_guid(GUID());
+ synfig::GUID old_b(b->get_guid());
+ b->set_guid(synfig::GUID());
a->set_guid(old_b);
b->set_guid(old_a);
//src_value_node->parent_set.swap(dest_value_node->parent_set);
+ synfig::info(get_local_name()+_(": ")+strprintf(_("Replaced %d ValueNode instances"),replacements));
+
// Signal that a layer has been inserted
if(get_canvas_interface())
{
//src_value_node->parent_set.swap(dest_value_node->parent_set);
- synfig::info(get_name()+_(": (Undo) ")+strprintf("Replaced %d ValueNode instances",replacements));
+ synfig::info(get_local_name()+_(": (Undo) ")+strprintf(_("Replaced %d ValueNode instances"),replacements));
src_value_node->set_id(String());
src_value_node->set_parent_canvas(0);