MCPcopy Create free account
hub / github.com/BatchDrake/SigDigger / setGuiConfig

Method setGuiConfig

Components/MainSpectrum.cpp:500–535  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

498}
499
500void
501MainSpectrum::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
537void
538MainSpectrum::updateOverlay(void)

Callers

nothing calls this directly

Calls 5

updateLimitsMethod · 0.95
connectGLWfMethod · 0.95
connectWfMethod · 0.95
setShowFATsMethod · 0.95
setColorConfigMethod · 0.95

Tested by

no test coverage detected