| 1639 | } // onRightClickMenuRequested |
| 1640 | |
| 1641 | void |
| 1642 | DockablePanel::onManageUserParametersActionTriggered() |
| 1643 | { |
| 1644 | KnobHolder* holder = getHolder(); |
| 1645 | if (!holder) { |
| 1646 | return; |
| 1647 | } |
| 1648 | EffectInstance* isEffect = dynamic_cast<EffectInstance*>(holder); |
| 1649 | if (!isEffect) { |
| 1650 | return; |
| 1651 | } |
| 1652 | NodePtr node = isEffect->getNode(); |
| 1653 | if (!node) { |
| 1654 | return; |
| 1655 | } |
| 1656 | // If this is a pyplug, warn that the user is about to break it |
| 1657 | if (node->isPyPlug()) { |
| 1658 | StandardButtons rep = Dialogs::questionDialog(tr("PyPlug").toStdString(), tr("You are about to edit parameters of this node which will " |
| 1659 | "automatically convert this node as a Group. Are you sure " |
| 1660 | "you want to edit it?").toStdString(), false); |
| 1661 | if (rep != eStandardButtonYes) { |
| 1662 | return; |
| 1663 | } |
| 1664 | node->setPyPlugEdited(true); |
| 1665 | |
| 1666 | |
| 1667 | } |
| 1668 | ManageUserParamsDialog dialog(this, this); |
| 1669 | |
| 1670 | ignore_result( dialog.exec() ); |
| 1671 | } |
| 1672 | |
| 1673 | void |
| 1674 | DockablePanel::setKeyOnAllParameters() |
nothing calls this directly
no test coverage detected