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

Method initializeKnobsDocumentation

Engine/Settings.cpp:539–565  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

537}
538
539void
540Settings::initializeKnobsDocumentation()
541{
542 _documentationPage = AppManager::createKnob<KnobPage>( this, tr("Documentation") );
543
544#ifdef NATRON_DOCUMENTATION_ONLINE
545 _documentationSource = AppManager::createKnob<KnobChoice>( this, tr("Documentation Source") );
546 _documentationSource->setName("documentationSource");
547 _documentationSource->setHintToolTip( tr("Documentation source.") );
548 _documentationSource->appendChoice(ChoiceOption("local",
549 tr("Local").toStdString(),
550 tr("Use the documentation distributed with the software.").toStdString()));
551 _documentationSource->appendChoice(ChoiceOption("online",
552 tr("Online").toStdString(),
553 tr("Use the online version of the documentation (requires an internet connection).").toStdString()));
554 _documentationSource->appendChoice(ChoiceOption("none",
555 tr("None").toStdString(),
556 tr("Disable documentation").toStdString()));
557 _documentationPage->addKnob(_documentationSource);
558#endif
559
560 /// used to store temp port for local webserver
561 _wwwServerPort = AppManager::createKnob<KnobInt>( this, tr("Documentation local port (0=auto)") );
562 _wwwServerPort->setName("webserverPort");
563 _wwwServerPort->setHintToolTip( tr("The port onto which the documentation server will listen to. A value of 0 indicate that the documentation should automatically find a port by itself.") );
564 _documentationPage->addKnob(_wwwServerPort);
565}
566
567void
568Settings::initializeKnobsUserInterface()

Callers

nothing calls this directly

Calls 6

ChoiceOptionFunction · 0.85
appendChoiceMethod · 0.80
toStdStringMethod · 0.80
setNameMethod · 0.45
setHintToolTipMethod · 0.45
addKnobMethod · 0.45

Tested by

no test coverage detected