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

Method setValueFromID

Engine/KnobTypes.cpp:917–936  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

915} // KnobChoice::getHintToolTipFull
916
917KnobHelper::ValueChangedReturnCodeEnum
918KnobChoice::setValueFromID(const std::string & value,
919 int dimension,
920 bool turnOffAutoKeying)
921{
922 int i;
923 {
924 QMutexLocker k(&_entriesMutex);
925 i = choiceMatch(value, _entries, &_currentEntry);
926 }
927 if (i >= 0) {
928 return setValue(i, ViewIdx(0), dimension, turnOffAutoKeying);
929 }
930 /*{
931 QMutexLocker k(&_entriesMutex);
932 _currentEntryLabel = value;
933 }
934 return setValue(-1, ViewIdx(0), dimension, turnOffAutoKeying);*/
935 return eValueChangedReturnCodeNothingChanged;
936}
937
938void
939KnobChoice::setDefaultValueFromIDWithoutApplying(const std::string & value,

Callers 6

setMethod · 0.80
addUserComponentsMethod · 0.80
makeStrokeMethod · 0.80
createNodesMethod · 0.80
rotoKnobChangedMethod · 0.80
loadMethod · 0.80

Calls 2

setValueFunction · 0.85
ViewIdxClass · 0.70

Tested by

no test coverage detected