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

Method toggleHideInputs

Gui/NodeGraph45.cpp:87–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

85}
86
87void
88NodeGraph::toggleHideInputs()
89{
90 const NodesGuiList& selectedNodes = getSelectedNodes();
91
92 if ( selectedNodes.empty() ) {
93 Dialogs::warningDialog( tr("Hide Inputs").toStdString(), tr("You must select a node first").toStdString() );
94
95 return;
96 }
97
98 bool hidden = !selectedNodes.front()->getNode()->getHideInputsKnobValue();
99
100 for (NodesGuiList::const_iterator it = selectedNodes.begin(); it != selectedNodes.end(); ++it) {
101 (*it)->getNode()->setHideInputsKnobValue(hidden);
102 //(*it)->refreshEdgesVisility();
103 }
104}
105
106NodesGuiList
107NodeGraph::getNodesWithinBackdrop(const NodeGuiPtr& bd) const

Callers

nothing calls this directly

Calls 7

emptyMethod · 0.80
toStdStringMethod · 0.80
getNodeMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected