| 498 | } |
| 499 | |
| 500 | void |
| 501 | MainSpectrum::setGuiConfig(GuiConfig const &cfg) |
| 502 | { |
| 503 | if (this->noLimits != cfg.noLimits) { |
| 504 | this->noLimits = cfg.noLimits; |
| 505 | this->updateLimits(); |
| 506 | } |
| 507 | |
| 508 | if (this->wf == nullptr && this->glWf == nullptr) { |
| 509 | if (cfg.useGLWaterfall) { |
| 510 | // OpenGL waterfall |
| 511 | this->glWf = new GLWaterfall(this); |
| 512 | this->glWf->setObjectName(QStringLiteral("mainSpectrum")); |
| 513 | this->ui->gridLayout->addWidget(this->glWf, 2, 0, 1, 4); |
| 514 | this->connectGLWf(); |
| 515 | } else { |
| 516 | // Classic waterfall |
| 517 | this->wf = new Waterfall(this); |
| 518 | this->wf->setObjectName(QStringLiteral("mainSpectrum")); |
| 519 | this->ui->gridLayout->addWidget(this->wf, 2, 0, 1, 4); |
| 520 | this->connectWf(); |
| 521 | } |
| 522 | |
| 523 | WATERFALL_CALL(setBookmarkSource(this->bookmarkSource)); |
| 524 | WATERFALL_CALL(setClickResolution(1)); |
| 525 | WATERFALL_CALL(setFilterClickResolution(1)); |
| 526 | |
| 527 | this->setShowFATs(true); |
| 528 | this->setColorConfig(this->lastColorConfig); |
| 529 | } |
| 530 | |
| 531 | if (this->glWf != nullptr) |
| 532 | this->glWf->setMaxBlending(cfg.useMaxBlending); |
| 533 | |
| 534 | WATERFALL_CALL(setUseLBMdrag(cfg.useLMBdrag)); |
| 535 | } |
| 536 | |
| 537 | void |
| 538 | MainSpectrum::updateOverlay(void) |
nothing calls this directly
no test coverage detected