| 977 | } |
| 978 | |
| 979 | void |
| 980 | TimeWindow::setData(std::vector<SUCOMPLEX> const &data, qreal fs, qreal bw) |
| 981 | { |
| 982 | if (this->fs != fs) { |
| 983 | this->fs = fs; |
| 984 | this->ui->costasBwSpin->setValue(this->fs / 200); |
| 985 | this->ui->pllCutOffSpin->setValue(this->fs / 200); |
| 986 | } |
| 987 | |
| 988 | if (!sufeq(this->bw, bw, 1e-6)) { |
| 989 | this->bw = bw; |
| 990 | this->ui->costasArmBwSpin->setValue(bw / 100); |
| 991 | } |
| 992 | |
| 993 | this->ui->syncFreqSpin->setMinimum(-this->fs / 2); |
| 994 | this->ui->syncFreqSpin->setMaximum(this->fs / 2); |
| 995 | this->ui->realWaveform->setSampleRate(fs); |
| 996 | this->ui->imagWaveform->setSampleRate(fs); |
| 997 | |
| 998 | this->data = &data; |
| 999 | |
| 1000 | this->setDisplayData(&data); |
| 1001 | this->onCarrierSlidersChanged(); |
| 1002 | } |
| 1003 | |
| 1004 | void |
| 1005 | TimeWindow::adjustButtonToSize(QPushButton *button, QString text) |
no test coverage detected