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

Method onToggleModes

Components/RMSViewTab.cpp:331–350  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

329}
330
331void
332RMSViewTab::onToggleModes(void)
333{
334
335 this->ui->waveform->setAutoScroll(this->ui->autoScrollButton->isChecked());
336
337 this->ui->resetButton->setEnabled(!this->ui->autoFitButton->isChecked());
338
339 if (this->ui->dbButton->isChecked()) {
340 this->ui->waveform->setVerticalUnits("dB");
341 this->ui->waveform->setRealComponent(false);
342 } else {
343 this->ui->waveform->setVerticalUnits("");
344 this->ui->waveform->setRealComponent(true);
345 }
346
347 this->ui->waveform->refreshData();
348 if (this->ui->autoFitButton->isChecked())
349 this->fitVertical();
350}
351
352void
353RMSViewTab::onResetZoom(void)

Callers 1

RMSViewTabMethod · 0.95

Calls 2

fitVerticalMethod · 0.95
setEnabledMethod · 0.45

Tested by

no test coverage detected