-** This software and associated documentation
-** are CONFIDENTIAL and PROPRIETARY property of
-** the above-mentioned copyright holder.
+** This package is free software; you can redistribute it and/or
+** modify it under the terms of the GNU General Public License as
+** published by the Free Software Foundation; either version 2 of
+** the License, or (at your option) any later version.
-** You may not copy, print, publish, or in any
-** other way distribute this software without
-** a prior written agreement with
-** the copyright holder.
+** This package is distributed in the hope that it will be useful,
+** but WITHOUT ANY WARRANTY; without even the implied warranty of
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+** General Public License for more details.
Action::ValueDescDisconnect::get_param_vocab()
{
ParamVocab ret(Action::CanvasSpecific::get_param_vocab());
Action::ValueDescDisconnect::get_param_vocab()
{
ParamVocab ret(Action::CanvasSpecific::get_param_vocab());
ret.push_back(ParamDesc("value_desc",Param::TYPE_VALUEDESC)
.set_local_name(_("ValueDesc"))
);
ret.push_back(ParamDesc("value_desc",Param::TYPE_VALUEDESC)
.set_local_name(_("ValueDesc"))
);
{
ValueDesc value_desc(x.find("value_desc")->second.get_value_desc());
if(!value_desc.parent_is_canvas() && value_desc.is_value_node() && value_desc.get_value_node()->rcount()>1)
{
ValueDesc value_desc(x.find("value_desc")->second.get_value_desc());
if(!value_desc.parent_is_canvas() && value_desc.is_value_node() && value_desc.get_value_node()->rcount()>1)
ValueNode::Handle src_value_node;
src_value_node=ValueNode_Const::create((*value_desc.get_value_node())(time));
Action::Handle action(ValueNodeReplace::create());
ValueNode::Handle src_value_node;
src_value_node=ValueNode_Const::create((*value_desc.get_value_node())(time));
Action::Handle action(ValueNodeReplace::create());
action->set_param("canvas",get_canvas());
action->set_param("canvas_interface",get_canvas_interface());
action->set_param("src",src_value_node);
action->set_param("dest",value_desc.get_value_node());
action->set_param("canvas",get_canvas());
action->set_param("canvas_interface",get_canvas_interface());
action->set_param("src",src_value_node);
action->set_param("dest",value_desc.get_value_node());
}
else
if(value_desc.parent_is_linkable_value_node())
{
Action::Handle action(ValueNodeLinkDisconnect::create());
}
else
if(value_desc.parent_is_linkable_value_node())
{
Action::Handle action(ValueNodeLinkDisconnect::create());
action->set_param("canvas",get_canvas());
action->set_param("canvas_interface",get_canvas_interface());
action->set_param("parent_value_node",value_desc.get_parent_value_node());
action->set_param("index",value_desc.get_index());
action->set_param("time",time);
action->set_param("canvas",get_canvas());
action->set_param("canvas_interface",get_canvas_interface());
action->set_param("parent_value_node",value_desc.get_parent_value_node());
action->set_param("index",value_desc.get_index());
action->set_param("time",time);
action->set_param("canvas",get_canvas());
action->set_param("canvas_interface",get_canvas_interface());
action->set_param("layer",value_desc.get_layer());
action->set_param("param",value_desc.get_param_name());
action->set_param("time",time);
action->set_param("canvas",get_canvas());
action->set_param("canvas_interface",get_canvas_interface());
action->set_param("layer",value_desc.get_layer());
action->set_param("param",value_desc.get_param_name());
action->set_param("time",time);