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

Method onMultipleKeySet

Gui/KnobGui20.cpp:70–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68}
69
70void
71KnobGui::onMultipleKeySet(const std::list<double>& keys,
72 ViewSpec /*view*/,
73 int /*dimension*/,
74 int reason)
75{
76 if ( (ValueChangedReasonEnum)reason != eValueChangedReasonUserEdited ) {
77 KnobIPtr knob = getKnob();
78 if ( !knob->getIsSecret() && ( knob->isDeclaredByPlugin() || knob->isUserKnob() ) ) {
79 std::list<SequenceTime> intKeys;
80 for (std::list<double>::const_iterator it = keys.begin(); it != keys.end(); ++it) {
81 intKeys.push_back(*it);
82 }
83 knob->getHolder()->getApp()->addMultipleKeyframeIndicatorsAdded(intKeys, true);
84 }
85 }
86
87 updateCurveEditorKeyframes();
88}
89
90void
91KnobGui::onMultipleKeyRemoved(const std::list<double>& keys,

Callers

nothing calls this directly

Calls 10

getIsSecretMethod · 0.80
isDeclaredByPluginMethod · 0.80
getKnobFunction · 0.70
isUserKnobMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
push_backMethod · 0.45
getAppMethod · 0.45
getHolderMethod · 0.45

Tested by

no test coverage detected