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

Method reflectModificationsState

Gui/KnobGuiValue.cpp:1152–1166  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1150}
1151
1152void
1153KnobGuiValue::reflectModificationsState()
1154{
1155 bool hasModif = _imp->getKnob()->hasModifications();
1156
1157 for (std::size_t i = 0; i < _imp->spinBoxes.size(); ++i) {
1158 _imp->spinBoxes[i].first->setAltered(!hasModif);
1159 if (_imp->spinBoxes[i].second) {
1160 _imp->spinBoxes[i].second->setAltered(!hasModif);
1161 }
1162 }
1163 if (_imp->slider) {
1164 _imp->slider->setAltered(!hasModif);
1165 }
1166}
1167
1168void
1169KnobGuiValue::refreshDimensionName(int dim)

Callers

nothing calls this directly

Calls 4

hasModificationsMethod · 0.80
getKnobMethod · 0.45
sizeMethod · 0.45
setAlteredMethod · 0.45

Tested by

no test coverage detected