if(!action->is_ready())
{
- uim->error(action->get_name()+": "+_("Action is not ready."));
+ uim->error(action->get_local_name()+": "+_("Action is not ready."));
return false;
}
if(!undoable_action)
{
if(uim->yes_no(
- action->get_name(),
+ action->get_local_name(),
_("This action cannot be undone! Are you sure you want to continue?"),
UIInterface::RESPONSE_NO
) == UIInterface::RESPONSE_NO
try { action->perform(); }
catch(Action::Error err)
{
- uim->task(action->get_name()+' '+_("Failed"));
+ uim->task(action->get_local_name()+' '+_("Failed"));
inuse=false;
if(err.get_type()!=Action::Error::TYPE_UNABLE)
{
if(err.get_desc().empty())
- uim->error(action->get_name()+": "+strprintf("%d",err.get_type()));
+ uim->error(action->get_local_name()+": "+strprintf("%d",err.get_type()));
else
- uim->error(action->get_name()+": "+err.get_desc());
+ uim->error(action->get_local_name()+": "+err.get_desc());
}
// If action failed for whatever reason, just return false and do
}
catch(std::exception err)
{
- uim->task(action->get_name()+' '+_("Failed"));
+ uim->task(action->get_local_name()+' '+_("Failed"));
inuse=false;
- uim->error(action->get_name()+": "+err.what());
+ uim->error(action->get_local_name()+": "+err.what());
// If action failed for whatever reason, just return false and do
// not add the action onto the list
}
catch(...)
{
- uim->task(action->get_name()+' '+_("Failed"));
+ uim->task(action->get_local_name()+' '+_("Failed"));
inuse=false;
// If action failed for whatever reason, just return false and do
inuse=false;
- uim->task(action->get_name()+' '+_("Successful"));
+ uim->task(action->get_local_name()+' '+_("Successful"));
// If the action has "dirtied" the preview, signal it.
if(0)if(canvas_specific && canvas_specific->is_dirty())
if(err.get_type()!=Action::Error::TYPE_UNABLE)
{
if(err.get_desc().empty())
- uim->error(action->get_name()+_(" (Undo): ")+strprintf("%d",err.get_type()));
+ uim->error(action->get_local_name()+_(" (Undo): ")+strprintf("%d",err.get_type()));
else
- uim->error(action->get_name()+_(" (Undo): ")+err.get_desc());
+ uim->error(action->get_local_name()+_(" (Undo): ")+err.get_desc());
}
return false;
if(!undo_(uim))
{
- uim->error(undo_action_stack_.front()->get_name()+": "+_("Failed to undo."));
+ uim->error(undo_action_stack_.front()->get_local_name()+": "+_("Failed to undo."));
inuse=false;
return false;
}
if(err.get_type()!=Action::Error::TYPE_UNABLE)
{
if(err.get_desc().empty())
- uim->error(action->get_name()+_(" (Redo): ")+strprintf("%d",err.get_type()));
+ uim->error(action->get_local_name()+_(" (Redo): ")+strprintf("%d",err.get_type()));
else
- uim->error(action->get_name()+_(" (Redo): ")+err.get_desc());
+ uim->error(action->get_local_name()+_(" (Redo): ")+err.get_desc());
}
return false;
if(!redo_(uim))
{
- uim->error(redo_action_stack_.front()->get_name()+": "+_("Failed to redo."));
+ uim->error(redo_action_stack_.front()->get_local_name()+": "+_("Failed to redo."));
inuse=false;
return false;
}
//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);