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

Method restoreDefaultAppearance

Engine/Settings.cpp:3810–3827  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3808}
3809
3810void
3811Settings::restoreDefaultAppearance()
3812{
3813 std::vector<KnobIPtr> children = _appearanceTab->getChildren();
3814
3815 for (std::size_t i = 0; i < children.size(); ++i) {
3816 KnobColor* isColorKnob = dynamic_cast<KnobColor*>( children[i].get() );
3817 if ( isColorKnob && isColorKnob->isSimplified() ) {
3818 isColorKnob->blockValueChanges();
3819 for (int j = 0; j < isColorKnob->getDimension(); ++j) {
3820 isColorKnob->resetToDefaultValue(j);
3821 }
3822 isColorKnob->unblockValueChanges();
3823 }
3824 }
3825 _defaultAppearanceOutdated = false;
3826 appPTR->reloadStylesheets();
3827}
3828
3829std::string
3830Settings::getUserStyleSheetFilePath() const

Callers 1

loadInternalMethod · 0.80

Calls 9

isSimplifiedMethod · 0.80
blockValueChangesMethod · 0.80
resetToDefaultValueMethod · 0.80
unblockValueChangesMethod · 0.80
getChildrenMethod · 0.45
sizeMethod · 0.45
getMethod · 0.45
getDimensionMethod · 0.45
reloadStylesheetsMethod · 0.45

Tested by

no test coverage detected