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

Method checkAllReadersModificationDate

Gui/GuiAppInstance.cpp:1644–1669  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1642}
1643
1644bool
1645GuiAppInstance::checkAllReadersModificationDate(bool errorAndWarn)
1646{
1647 NodesList allNodes;
1648 SequenceTime time = getProject()->getCurrentTime();
1649
1650 getProject()->getNodes_recursive(allNodes, true);
1651 bool changed = false;
1652 for (NodesList::iterator it = allNodes.begin(); it != allNodes.end(); ++it) {
1653 if ( (*it)->getEffectInstance()->isReader() ) {
1654 KnobIPtr fileKnobI = (*it)->getKnobByName(kOfxImageEffectFileParamName);
1655 if (!fileKnobI) {
1656 continue;
1657 }
1658 KnobGuiIPtr knobUi_i = fileKnobI->getKnobGuiPointer();
1659 KnobGuiFile* isFileKnob = dynamic_cast<KnobGuiFile*>( knobUi_i.get() );
1660
1661 if (!isFileKnob) {
1662 continue;
1663 }
1664 changed |= isFileKnob->checkFileModificationAndWarn(time, errorAndWarn);
1665 }
1666 }
1667
1668 return changed;
1669}
1670
1671void
1672GuiAppInstance::reloadScriptEditorFonts()

Callers 4

startPauseMethod · 0.80
startBackwardMethod · 0.80
refreshMethod · 0.80

Calls 10

getNodes_recursiveMethod · 0.80
getEffectInstanceMethod · 0.80
getKnobGuiPointerMethod · 0.80
getCurrentTimeMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
isReaderMethod · 0.45
getKnobByNameMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected