| 1653 | } |
| 1654 | |
| 1655 | void |
| 1656 | MultiInstancePanel::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 | |
| 1671 | bool |
| 1672 | MultiInstancePanel::onKnobValueChanged(KnobI* k, |
nothing calls this directly
no test coverage detected