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

Method initializeKnobsScriptEditorColors

Engine/Settings.cpp:993–1053  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

991} // Settings::initializeKnobsNodeGraphColors
992
993void
994Settings::initializeKnobsScriptEditorColors()
995{
996 _scriptEditorColorsTab = AppManager::createKnob<KnobPage>( this, tr("Script Editor") );
997 _scriptEditorColorsTab->setParentKnob(_appearanceTab);
998
999 _scriptEditorFontChoice = AppManager::createKnob<KnobChoice>( this, tr("Font") );
1000 _scriptEditorFontChoice->setHintToolTip( tr("List of all fonts available on your system") );
1001 _scriptEditorFontChoice->setName("scriptEditorFont");
1002 _scriptEditorColorsTab->addKnob(_scriptEditorFontChoice);
1003
1004 _scriptEditorFontSize = AppManager::createKnob<KnobInt>( this, tr("Font Size") );
1005 _scriptEditorFontSize->setHintToolTip( tr("The font size") );
1006 _scriptEditorFontSize->setName("scriptEditorFontSize");
1007 _scriptEditorColorsTab->addKnob(_scriptEditorFontSize);
1008
1009 _curLineColor = AppManager::createKnob<KnobColor>(this, tr("Current Line Color"), 3);
1010 _curLineColor->setName("currentLineColor");
1011 _curLineColor->setSimplified(true);
1012 _scriptEditorColorsTab->addKnob(_curLineColor);
1013
1014 _keywordColor = AppManager::createKnob<KnobColor>(this, tr("Keyword Color"), 3);
1015 _keywordColor->setName("keywordColor");
1016 _keywordColor->setSimplified(true);
1017 _scriptEditorColorsTab->addKnob(_keywordColor);
1018
1019 _operatorColor = AppManager::createKnob<KnobColor>(this, tr("Operator Color"), 3);
1020 _operatorColor->setName("operatorColor");
1021 _operatorColor->setSimplified(true);
1022 _scriptEditorColorsTab->addKnob(_operatorColor);
1023
1024 _braceColor = AppManager::createKnob<KnobColor>(this, tr("Brace Color"), 3);
1025 _braceColor->setName("braceColor");
1026 _braceColor->setSimplified(true);
1027 _scriptEditorColorsTab->addKnob(_braceColor);
1028
1029 _defClassColor = AppManager::createKnob<KnobColor>(this, tr("Class Def Color"), 3);
1030 _defClassColor->setName("classDefColor");
1031 _defClassColor->setSimplified(true);
1032 _scriptEditorColorsTab->addKnob(_defClassColor);
1033
1034 _stringsColor = AppManager::createKnob<KnobColor>(this, tr("Strings Color"), 3);
1035 _stringsColor->setName("stringsColor");
1036 _stringsColor->setSimplified(true);
1037 _scriptEditorColorsTab->addKnob(_stringsColor);
1038
1039 _commentsColor = AppManager::createKnob<KnobColor>(this, tr("Comments Color"), 3);
1040 _commentsColor->setName("commentsColor");
1041 _commentsColor->setSimplified(true);
1042 _scriptEditorColorsTab->addKnob(_commentsColor);
1043
1044 _selfColor = AppManager::createKnob<KnobColor>(this, tr("Self Color"), 3);
1045 _selfColor->setName("selfColor");
1046 _selfColor->setSimplified(true);
1047 _scriptEditorColorsTab->addKnob(_selfColor);
1048
1049 _numbersColor = AppManager::createKnob<KnobColor>(this, tr("Numbers Color"), 3);
1050 _numbersColor->setName("numbersColor");

Callers

nothing calls this directly

Calls 5

setParentKnobMethod · 0.80
setSimplifiedMethod · 0.80
setHintToolTipMethod · 0.45
setNameMethod · 0.45
addKnobMethod · 0.45

Tested by

no test coverage detected