| 4643 | } |
| 4644 | |
| 4645 | void |
| 4646 | Node::setPyPlugEdited(bool edited) |
| 4647 | { |
| 4648 | { |
| 4649 | QMutexLocker k(&_imp->pyPluginInfoMutex); |
| 4650 | |
| 4651 | _imp->pyPlugInfo.isPyPlug = !edited; |
| 4652 | } |
| 4653 | NodeGroup* isGroup = dynamic_cast<NodeGroup*>(_imp->effect.get()); |
| 4654 | if (isGroup) { |
| 4655 | KnobButtonPtr convertToGroupButton = isGroup->getConvertToGroupButton(); |
| 4656 | KnobButtonPtr exportPyPlugButton = isGroup->getExportAsPyPlugButton(); |
| 4657 | if (convertToGroupButton) { |
| 4658 | convertToGroupButton->setSecret(edited); |
| 4659 | } |
| 4660 | if (exportPyPlugButton) { |
| 4661 | exportPyPlugButton->setSecret(!edited); |
| 4662 | } |
| 4663 | |
| 4664 | } |
| 4665 | } |
| 4666 | |
| 4667 | bool |
| 4668 | Node::isPyPlug() const |
no test coverage detected