MCPcopy Create free account
hub / github.com/NatronGitHub/Natron / DecloneMultipleNodesCommand

Method DecloneMultipleNodesCommand

Gui/NodeGraphUndoRedo.cpp:681–696  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

679}
680
681DecloneMultipleNodesCommand::DecloneMultipleNodesCommand(NodeGraph* graph,
682 const std::list<NodeGuiPtr> & nodes,
683 QUndoCommand *parent)
684 : QUndoCommand(parent)
685 , _nodes()
686 , _graph(graph)
687{
688 for (std::list<NodeGuiPtr> ::const_iterator it = nodes.begin(); it != nodes.end(); ++it) {
689 NodeToDeclone n;
690 n.node = *it;
691 n.master = (*it)->getNode()->getMasterNode();
692 assert( n.master.lock() );
693 _nodes.push_back(n);
694 }
695 setText( tr("Declone node(s)") );
696}
697
698DecloneMultipleNodesCommand::~DecloneMultipleNodesCommand()
699{

Callers

nothing calls this directly

Calls 7

setTextFunction · 0.85
getMasterNodeMethod · 0.80
beginMethod · 0.45
endMethod · 0.45
getNodeMethod · 0.45
lockMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected