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

Method onMakeAbsoluteTriggered

Gui/KnobGuiFile.cpp:406–417  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

404}
405
406void
407KnobGuiFile::onMakeAbsoluteTriggered()
408{
409 KnobFilePtr knob = _knob.lock();
410
411 if ( knob->getHolder() && knob->getHolder()->getApp() ) {
412 std::string oldValue = knob->getValue();
413 std::string newValue = oldValue;
414 knob->getHolder()->getApp()->getProject()->canonicalizePath(newValue);
415 pushUndoCommand( new KnobUndoCommand<std::string>( shared_from_this(), oldValue, newValue ) );
416 }
417}
418
419void
420KnobGuiFile::onMakeRelativeTriggered()

Callers

nothing calls this directly

Calls 7

pushUndoCommandFunction · 0.85
canonicalizePathMethod · 0.80
getProjectMethod · 0.80
lockMethod · 0.45
getHolderMethod · 0.45
getAppMethod · 0.45
getValueMethod · 0.45

Tested by

no test coverage detected