| 329 | } |
| 330 | |
| 331 | void |
| 332 | RMSViewTab::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 | |
| 352 | void |
| 353 | RMSViewTab::onResetZoom(void) |
no test coverage detected