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

Method onManageUserParametersActionTriggered

Gui/DockablePanel.cpp:1641–1671  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1639} // onRightClickMenuRequested
1640
1641void
1642DockablePanel::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
1673void
1674DockablePanel::setKeyOnAllParameters()

Callers

nothing calls this directly

Calls 6

ignore_resultFunction · 0.85
isPyPlugMethod · 0.80
toStdStringMethod · 0.80
setPyPlugEditedMethod · 0.80
getNodeMethod · 0.45
execMethod · 0.45

Tested by

no test coverage detected