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

Method onButtonTriggered

Gui/MultiInstancePanel.cpp:1655–1669  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1653}
1654
1655void
1656MultiInstancePanel::onButtonTriggered(KnobButton* button)
1657{
1658 std::list<Node*> selectedInstances;
1659
1660 getSelectedInstances(&selectedInstances);
1661
1662 ///Forward the button click event to all the selected instances
1663 double time = getApp()->getTimeLine()->currentFrame();
1664 for (std::list<Node*>::iterator it = selectedInstances.begin(); it != selectedInstances.end(); ++it) {
1665 KnobIPtr k = (*it)->getKnobByName( button->getName() );
1666 assert( k && dynamic_cast<KnobButton*>( k.get() ) );
1667 (*it)->getEffectInstance()->onKnobValueChanged_public(k.get(), eValueChangedReasonUserEdited, time, ViewIdx(0), true);
1668 }
1669}
1670
1671bool
1672MultiInstancePanel::onKnobValueChanged(KnobI* k,

Callers

nothing calls this directly

Calls 15

getAppFunction · 0.85
getMainInstanceFunction · 0.85
getNameMethod · 0.80
getEffectInstanceMethod · 0.80
hasViewersConnectedMethod · 0.80
emptyMethod · 0.80
ViewIdxClass · 0.50
currentFrameMethod · 0.45
getTimeLineMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
getKnobByNameMethod · 0.45

Tested by

no test coverage detected