| 537 | } |
| 538 | |
| 539 | void |
| 540 | Settings::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 | |
| 567 | void |
| 568 | Settings::initializeKnobsUserInterface() |
nothing calls this directly
no test coverage detected