bool Action::ValueNodeRename::set_param(const synfig::String& name, const Action::Param ¶m) { if(name=="value_node" && param.get_type()==Param::TYPE_VALUENODE) { value_node=param.get_value_node(); if(value_node && !value_node->is_exported()) { synfig::error("Action::ValueNodeRename::set_param(): ValueBase node not exported!"); value_node=0; } return (bool)value_node; } if(name=="name" && param.get_type()==Param::TYPE_STRING) { new_name=param.get_string(); return true; } return Action::CanvasSpecific::set_param(name,param); }
bool Action::CanvasNameSet::set_param(const synfig::String& name, const Action::Param ¶m) { if(name=="name" && param.get_type()==Param::TYPE_STRING) { new_name=param.get_string(); return true; } return Action::CanvasSpecific::set_param(name,param); }
bool Action::CanvasMetadataErase::set_param(const synfig::String& name, const Action::Param ¶m) { if(name=="key" && param.get_type()==Param::TYPE_STRING) { key=param.get_string(); return true; } return Action::CanvasSpecific::set_param(name,param); }
bool Action::CanvasDescriptionSet::set_param(const synfig::String& description, const Action::Param ¶m) { if(description=="description" && param.get_type()==Param::TYPE_STRING) { new_description=param.get_string(); return true; } return Action::CanvasSpecific::set_param(description,param); }
bool Action::CanvasIdSet::set_param(const synfig::String& id, const Action::Param ¶m) { if(id=="id" && param.get_type()==Param::TYPE_STRING) { new_id=param.get_string(); return true; } return Action::CanvasSpecific::set_param(id,param); }
bool Action::LayerSetDesc::set_param(const synfig::String& name, const Action::Param ¶m) { if(name=="layer" && param.get_type()==Param::TYPE_LAYER) { layer=param.get_layer(); return true; } if(name=="new_description" && param.get_type()==Param::TYPE_STRING) { new_description=param.get_string(); return true; } return Action::CanvasSpecific::set_param(name,param); }
bool Action::LayerEncapsulate::set_param(const synfig::String& name, const Action::Param ¶m) { if(name=="layer" && param.get_type()==Param::TYPE_LAYER) { layers.push_back(param.get_layer()); return true; } if(name=="description" && param.get_type()==Param::TYPE_STRING) { description = param.get_string(); return true; } if(name=="children_lock" && param.get_type()==Param::TYPE_BOOL) { children_lock = param.get_bool(); return true; } return Action::CanvasSpecific::set_param(name,param); }
bool Action::ValueDescConnect::set_param(const synfig::String& name, const Action::Param ¶m) { if(name=="dest" && param.get_type()==Param::TYPE_VALUEDESC) { value_desc=param.get_value_desc(); return true; } if(name=="src" && param.get_type()==Param::TYPE_VALUENODE) { value_node=param.get_value_node(); return true; } if(!value_node_name.empty() && !value_node && name=="canvas" && param.get_type()==Param::TYPE_CANVAS) { value_node=param.get_canvas()->find_value_node(value_node_name, false); } if(name=="src_name" && param.get_type()==Param::TYPE_STRING) { value_node_name=param.get_string(); if(get_canvas()) { value_node=get_canvas()->find_value_node(value_node_name, false); if(!value_node) return false; } return true; } return Action::CanvasSpecific::set_param(name,param); }