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

Method toggleHideInputs

Gui/NodeGraph45.cpp:86–103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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